forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not unroll gates in basis in
add_control
(Qiskit#13475)
* Do not unroll gates in basis * add tests * review comments * Add reno
- Loading branch information
Showing
3 changed files
with
149 additions
and
98 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed a bug in :meth:`.RZGate.control` for more than 1 control qubit, which used | ||
an unnecessarily expensive decomposition. | ||
Fixed `#13473 <https://github.com/Qiskit/qiskit/issues/13473>`__. | ||
upgrade_circuits: | ||
- | | ||
The generic control method for gates now avoids attempting to translate gates | ||
into a supported basis, if the gate is already supported. This can slightly change the | ||
synthesis of the controlled gate, although it should not increase the two-qubit gate count. |
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