Open p51lee opened 3 months ago
Thanks for the report. I was just looking into this and made #12128 to point out a few more things I'd spotted in OptimizeSwapBeforeMeasure
, but as I was doing that, I found a bunch more places where the pass really doesn't seem to have the correct behaviour. There's changes coming in Rustworkx 0.15 that should let us do this efficiently rather more soundly - at the moment, I'm a bit worried that there's more soundness holes in OptimizeSwapBeforeMeasure
.
This issue also affects 0.46
Environment
What is happening?
qiskit.transpile
withoptimization_level=3
fails to transpile this circuit:How can we reproduce the issue?
To reproduce the issue, execute the following code:
Running this code results in
ValueError
:What should happen?
The circuit should be transpiled without any errors.
Any suggestions?
No response