-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* fix an unchecked condition in self_inverse inversecancellation * add release note for the bug in inversecancellation * reformat reverse_cancellation.py to follow the standards * update fix-inverse-cancellation release note * add a test for InverseCancellation with self-inverse * fix a typo in test_inverse_cancellation.py Co-authored-by: Matthew Treinish <[email protected]> * Update qiskit/transpiler/passes/optimization/inverse_cancellation.py * Update releasenotes/notes/fix-inverse-cancellation-self-inverse-e09a5553331e1b0b.yaml * Revert "Update qiskit/transpiler/passes/optimization/inverse_cancellation.py" This had a logical error in it and doesn't work. This reverts commit 0048e8e. --------- Co-authored-by: Matthew Treinish <[email protected]> (cherry picked from commit 8509d94) Co-authored-by: Seyed Sajad Kahani <[email protected]>
- Loading branch information
1 parent
150c534
commit 77e08e1
Showing
3 changed files
with
25 additions
and
6 deletions.
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
8 changes: 8 additions & 0 deletions
8
releasenotes/notes/fix-inverse-cancellation-self-inverse-e09a5553331e1b0b.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,8 @@ | ||
--- | ||
|
||
fixes: | ||
- | | ||
Fixed an issue in the :class:`.InverseCancellation` transpiler pass where in some cases it | ||
would incorrectly cancel a self-inverse parameterized gate even if the parameter value | ||
didn't match. | ||
Fixed `#11815 <https://github.com/Qiskit/qiskit/issues/11815>`__ |
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