-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Fix InverseCancellation
to run in classical blocks
#13454
Merged
mtreinish
merged 8 commits into
Qiskit:main
from
haimeng-zhang:haimeng-inverse-cancellation
Nov 26, 2024
+59
−0
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ee76878
Fix an issue that `InverseCancellation` does not run in classical blo…
haimeng-zhang 303fd9f
Merge branch 'main' into haimeng-inverse-cancellation
haimeng-zhang 546a532
Merge branch 'main' into haimeng-inverse-cancellation
haimeng-zhang 08ca45c
Merge branch 'Qiskit:main' into haimeng-inverse-cancellation
haimeng-zhang 95d2905
Add test functions for pass running in classical blocks.
haimeng-zhang 6f1a46f
Reformat test function file
haimeng-zhang 27d5ade
Merge branch 'Qiskit:main' into haimeng-inverse-cancellation
haimeng-zhang dd4f1c5
Add a release note
haimeng-zhang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
releasenotes/notes/fix-inverse-cancellation-c7f4debcde4a705a.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fixes: | ||
- | | ||
The transpilation pass :class`.InverseCancellation` now runs inside of flow controlled blocks. Previously, it ignores the pairs of gates in classical blocks that can be cancelled. Refer to `#13437 <https://github.com/Qiskit/qiskit/issues/13437>` for more details. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'd probably word this as "recurse into control flow blocks in the circuit". But we can also do this as part of the release prep PR #13447
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.
Thank you for the suggestion! Is there a way that I can still fix this, either in this PR or the release prep PR #13447?
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.
If you have a suggested alternative wording you can let @raynelfss know, I asked him to just update the text as part of the other release note editing he's working on in #13447.
In general we're not too picky about the exact release note content in PR reviews and as there are always a fair amount of edits needed before we can publish them. So it's simple for whoever is driving a given release to just copy-edit the text of a release note all at once in that final PR for a release.