-
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.
Browse files
Browse the repository at this point in the history
* Defines the inverse of the global phase The inverse of UCGate is defined by simply inverting the existing decomposition, but the inverse of the global phase was missing. * Tests the UCGate.inverse() function * Lint * Seed for building the matrices * Replace `unitary_simulator` by using `qiskit.quantum_info.Operator`. Co-authored-by: Julien Gacon <gaconju@gmail.com> * Import `Operator` class * Release notes * Lint * Test the phase of isometry decomposition * Removes the `prelude` from the release notes file * Replaces `matrix_equal` with `np.allclose` Co-authored-by: Julien Gacon <gaconju@gmail.com> (cherry picked from commit 82c85d8) Co-authored-by: Israel F. Araujo <israelferrazaraujo@hotmail.com> Co-authored-by: Jake Lishman <jake.lishman@ibm.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
5a3738d
commit 1d5dce6
Showing
4 changed files
with
31 additions
and
4 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
9 changes: 9 additions & 0 deletions
9
releasenotes/notes/bugfix-ucgate-inverse-global_phase-c9655c13c22e5cf4.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,9 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixes the :meth:`.UCGate.inverse` method which previously did not invert the | ||
global phase. | ||
- | | ||
Fixes the global phase problem of the isometry decomposition. Refer to | ||
`#4687 <https://github.com/Qiskit/qiskit-terra/issues/4687>` for more | ||
details. |
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