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.
Support target and basis gates in Unroll3qOrMore transpiler pass
This commit adds two new constructor arguments to the Unroll3qOrMore transpiler pass, target and basis_gates, which are used to specify a backend target and basis gate list respectively. If these are specified the pass will not decompose any multiqubit operations present in the circuit if they are in the target or basis_gates list. Fixes Qiskit#5518 Related to Qiskit#7812 Part of Qiskit#7113
- Loading branch information
Showing
7 changed files
with
87 additions
and
8 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
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
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,10 @@ | ||
--- | ||
features: | ||
- | | ||
The constructor for the :class:`~.Unroll3qOrMore` transpiler pass has | ||
two new optional keyword arguments, ``target`` and ``basis`` gates. These | ||
options enable you to specify the :class:`~.Target` or supported basis | ||
gates respectively to describe the target backend. If any of the operations | ||
in the circuit are in the ``target`` or ``basis_gates`` those will not | ||
be unrolled by the pass as the target device has native support for the | ||
operation. |
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