push
github
Don't run ElidePermutation if routing is disabled (#13184) (#13194) * Don't run ElidePermutation if routing is disabled We have a routing plugin named "none" which is used to assert that no routing should be performed (it errors if there is routing required). We were previously running the ElidePermutations pass in this case which is not the expected or correct behavior because it causes the same kind of permutation as routing and would eliminate and swap gates in the circuit. As the typical use case for routing_method='none' is when you've already routed a circuit (or constructed it by hand to match the connectivity constraints) we shouldn't be doing this. This commit fixes this behavior so if the routing_method is set to "none" we no longer run the ElidePermutations pass. Fixes #13144 * Move release note to the correct location (cherry picked from commit 9a896d3ae) Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
2 of 2 new or added lines in 1 file covered. (100.0%)
19 existing lines in 3 files now uncovered.66876 of 74508 relevant lines covered (89.76%)
215893.47 hits per line