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.
Adds BasisTanslator, UnrollCustomDefinitions to default levels. (Qisk…
…it#4446) * Add Rz->RX,RY, U3->RX,RY, CX->RXX to StandardEquivalenceLibrary. Updates BasisTranslator-Unroller compatability test test_basis_translator.TestUnrollerCompatibility.test_unroll_all_instructions to verify the generated circuit is equivalent (with snapshot, measure instructions removed) as the circuit transpiled by the BasisTranslator is no longer gate-for-gate equal with that of the Unroller. * Fix free param calculation in standard gates to_matrix test. Previous code mis-calculated the number of available free parameters from the gate signature, resulting in creation of gates like XGate(label=0.1). These would cause errors if the circuits containing these gates were drawn. * Remove definition for C3XGate, C4XGate due to name conflict with MCXGate. * Add UnrollCustomDefinitions and BasisTranslator into default levels. * Add CX to CZ, to iSwap decompositions. * Support block collection for non-CX two-qubit gates. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
0622fa0
commit 63a995c
Showing
16 changed files
with
340 additions
and
158 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
Oops, something went wrong.