-
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.
Fix
PauliEvolutionGate
(using product formulas) for all-identity Pa…
…uli terms (#13634) * fix PauliEvo for all identities * fix rustiq Co-authored-by: Alexander Ivrii <[email protected]> * fix docs * regression test 13644 --------- Co-authored-by: Alexander Ivrii <[email protected]> (cherry picked from commit b98e0d0)
- Loading branch information
1 parent
c68c835
commit e1135e3
Showing
7 changed files
with
80 additions
and
21 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
8 changes: 8 additions & 0 deletions
8
releasenotes/notes/fix-pauli-evo-all-identity-b129acd854d8c391.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,8 @@ | ||
--- | ||
fixes: | ||
- | | ||
The :class:`.PauliEvolutionGate`, if used with a product formula synthesis (this is the default), | ||
did not correctly handle all-identity terms in the operator. The all-identity term | ||
should introduce a global phase equal to ``-evolution_time``, but was off by a factor of 2 | ||
and could break for parameterized times. This behavior is now fixed. | ||
Fixed `#13625 <https://github.com/Qiskit/qiskit/issues/13625>`__. |
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