-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fix behavior of HLS plugins after preserve_order=False
#14539
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
Conversation
|
One or more of the following people are relevant to this code:
|
Pull Request Test Coverage Report for Build 15467749371Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the fix! I am wondering how this bug was discovered in the first place.
|
@alexanderivrii I was drafting an exercise for a workshop trying different synthesis strategies and I noticed that |
(cherry picked from commit 2982004)
|
Is this affecting 1.4? |
|
@Mergifyio backport stable/1.4 |
✅ Backports have been created
|
(cherry picked from commit 2982004) # Conflicts: # qiskit/transpiler/passes/synthesis/hls_plugins.py
Summary
The HLS plugins for
PauliEvolutionGateswere modifying the original circuit'sgate.synthesis.preserve_orderattribute, which would result in an unexpected behavior of the pass manager when run multiple times. The bug can be fixed by restoring the property in the plugin after it being used in.synthesize.Details and comments