-
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 `assume_unitary` kwarg to `Operator.power` This is approximately a 3x performance improvement over the generalised `fractional_matrix_power` method, but only works for unitary matrices. * review comments
- Loading branch information
1 parent
4fd2a4e
commit 3cbab95
Showing
4 changed files
with
57 additions
and
13 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
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/operator-power-assume-unitary-0a2f97ea9de91b49.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,6 @@ | ||
--- | ||
features_quantum_info: | ||
- | | ||
Added a new argument ``assume_unitary`` to :meth:`qiskit.quantum_info.Operator.power`. | ||
When ``True``, we use a faster method based on Schur's decomposition to raise an | ||
``Operator`` to a fractional power. |
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