-
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.
* Add equivalence-library rules between `rzz` and `cp` These gates are locally equivalence (as are all the Ising-interaction gates), and this simple additional rule lets things like QFT, which are defined by Qiskit's default constructor in terms of `cp`, get converted into `rzz` or `rzx`. One `ControlledGate` test needed a case removing, because the underlying control mechanism now works correctly. * Rewrite release note
- Loading branch information
1 parent
734560e
commit 3aa58cc
Showing
3 changed files
with
60 additions
and
1 deletion.
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
17 changes: 17 additions & 0 deletions
17
releasenotes/notes/cphase-rzz-equivalence-e8afc37b71a74366.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,17 @@ | ||
--- | ||
features_circuits: | ||
- | | ||
The standard equivalence library (:data:`.SessionEquivalenceLibrary`) now has rules that can | ||
directly convert between Qiskit's standard-library 2q continuous Ising-type interactions (e.g. | ||
:class:`.CPhaseGate`, :class:`.RZZGate`, :class:`.RZXGate`, and so on) using local equivalence | ||
relations. Previously, several of these conversions would go via a 2-CX form, which resulted | ||
in less efficient circuit generation. | ||
.. note:: | ||
In general, the :class:`.BasisTranslator` is not guaranteed to find the "best" equivalence | ||
relation for a given :class:`.Target`, but will always find an equivalence if one exists. We | ||
rely on more expensive resynthesis and gate-optimization passes in the transpiler to improve | ||
the output. These passes are currently not as effective for basis sets with a continuously | ||
parametrized two-qubit interaction as they are for discrete super-controlled two-qubit | ||
interactions. |
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