-
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.
Fix InverseCancellation pass to handle gates of different names. (#7383…
…) (#7384) As reported in GH-7378, the InverseCancellation optimization pass previously assumed that inverse gate pairs would always share a common name, but this is not universally true. This commit updates the pass to search for runs containing any of the gate names in the gates_to_cancel list, instead of only the first. Co-authored-by: Bruno Schmitt <bruno.schmitt@epfl.ch> Co-authored-by: Bruno Schmitt <bruno.schmitt@epfl.ch> (cherry picked from commit d9ab98f) Co-authored-by: Kevin Krsulich <kevin.krsulich@ibm.com>
- Loading branch information
1 parent
73024df
commit bd7791e
Showing
2 changed files
with
14 additions
and
2 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
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