forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt commutation checker to abstract circuits (Qiskit#11948)
* Update commutation_checker.py * reno * new tests * Update commutation_checker.py * remove Operator resolution in commutation pre-check * Update releasenotes/notes/abstract-commutation-analysis-3518129e91a33599.yaml Co-authored-by: Matthew Treinish <[email protected]> --------- Co-authored-by: Matthew Treinish <[email protected]>
- Loading branch information
1 parent
c126b45
commit b5ce0a7
Showing
3 changed files
with
130 additions
and
51 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
12 changes: 12 additions & 0 deletions
12
releasenotes/notes/abstract-commutation-analysis-3518129e91a33599.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,12 @@ | ||
--- | ||
features: | ||
- | | ||
Extended the commutation analysis performed by :class:`.CommutationChecker` to only operate on | ||
hardware circuits to also work with abstract circuits, i.e. each operation in | ||
the input quantum circuit is now checked for its matrix representation before proceeding to the | ||
analysis. In addition, the operation is now checked for its ability to be cached in the session | ||
commutation library. For example, this now enables computing whether :class:`.AnnotatedOperation` | ||
commute. This enables transpiler passes that rely on :class:`.CommutationChecker` internally, | ||
such as :class:`.CommutativeCancellation`, during earlier stages of a default transpilation pipeline | ||
(prior to basis translation). | ||
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