-
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 global_phase to QuantumCircuit class (#4565)
* minor commit * rz agrees with u1 * synthesis tests pass * passing tests except open controlled random unitary * resolve most errors in test_unroller * passing tests * move global phase change to circuit_to_gate * add missing to_matrix to [most] gates * revert base gate of c3x * definition changed to circuit some multi-qubit controlled gate tests are still failing. * resolve c_if register conversion * revert removal of _define in standard gates * linting * resolve qreg bug in transpiler * simplify unroller passes a bit * linting * resolve doc forward ref * linting * update u3 cx equivalence_library * put phase back into gate class definitions This is allowed now that gate definitions are circuits. * added checks for circuit inverse, compose, and state.evolve. * passing tests * linting * revert phase accurate one_qubit_decompose for future pr. * linting * Update test/python/circuit/test_gate_definitions.py Co-authored-by: Luciano Bello <luciano.bello@ibm.com> * add release notes * revert equiv test _self._gate_classes can't be accessed from @DaTa and putting it into the class level, like done in other tests, causes gate code to be "tested" outside of tests. * update release notes * Update qiskit/circuit/quantumcircuit.py Co-authored-by: Ali Javadi-Abhari <ajavadia@users.noreply.github.com> * don't unroll global phase to single qubit gates * typeo * linting * linting * update cx_global_phase test * minor linting * Update releasenotes/notes/add_quantumcircuit_phase-5006d1e930348d2e.yaml * Update releasenotes/notes/add_quantumcircuit_phase-5006d1e930348d2e.yaml Co-authored-by: Luciano Bello <luciano.bello@ibm.com> Co-authored-by: Ali Javadi-Abhari <ajavadia@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
127b5ab
commit 8f717d9
Showing
37 changed files
with
860 additions
and
358 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
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.