push
github
Fix handling of control flow instructions in convert_to_target() (#11877) (#11884) This commit fixes an issue in the convert_to_target() function where it wasn't looking for control flow instructions in the proper location. Typically the control flow instructions are put in the supported_instructions field of the BackendConfiguration, but the convert_to_target() function was ignoring this field. This commit updates the function to check supported_instructions for the control flow instructions. It doesn't more broadly look at the supported_instructions field, because on other backends this field is used to list the supported pulse instructions which might have name conflicts with other instructions and cause issues building a target. Fixes #11872 (cherry picked from commit 65ab96508) Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
3 of 3 new or added lines in 1 file covered. (100.0%)
10 existing lines in 2 files now uncovered.58907 of 65973 relevant lines covered (89.29%)
187429.44 hits per line