-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transpiler eliminates classical condition for optimization_level 3 #6016
Comments
From a quick look through the transpiler the consolidate blocks pass is eliminating the condition on the gate in that circuit. This will only be an issue with optimization level 3 (or if you use the |
I looked into this briefly and I'm fairly sure this isn't a However, when re-inserting Steps to remediate:
|
@kdk. I did a quick dive into this and I think there is more to it. It's true that The problem is in In regards to And though there might be other issues with If you'd like me to make the changes to load the condition in |
Information
What is the current behavior?
Circuits with feed-forward logic are incorrectly transpiled for optimization levels >0
Steps to reproduce the problem
What is the expected behavior?
The condition on the last h gate is preserved when transpiler optimization level 3 is run. Looking through the output of the callback function it is dropped by the consolidate blocks pass
Suggested solutions
Examine consolidate blocks section of transpiler (identified by @mtreinish )
The text was updated successfully, but these errors were encountered: