Repo Added
|
Files
871
|
Badge
README BADGES
|
push
github
Check target gates are parameterized in optimize1qgatesdecomposition (#15141) This commit updates the Optimize1qGatesDecomposition transpiler pass to check the defined operation in the target to ensure it's a valid gate to use for the decomposition. Previously the pass would just use the gate name for each qubit and treat that as a basis gate list. However this ignored the extra details that the target provides as a target gate can match the name but not be valid for use in synthesis. This commit fixes that oversight by checking the gates directly and ensuring they're valid for use in the decomposition. This commit is a backport of 83b762d31 (PR #15131) from main, but since the code had migrated on main since when 1.4 branched this had to be done manually. Fixes #14743
12 of 12 new or added lines in 1 file covered. (100.0%)
24 existing lines in 3 files now uncovered.77337 of 87380 relevant lines covered (88.51%)
354968.9 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|