-
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
…7675) * fix a bug in expectation value. Handle Pauli phases. * extend the test to include Pauli expectation vals with phases. * add release notes * add more 1-qubit and 2-qubit tests for exp_val=-1,i,-i * more ddt * Fix typo in error message * Add comment on phase Co-authored-by: Ikko Hamamura <ikkoham@users.noreply.github.com> Co-authored-by: Luciano Bello <bel@zurich.ibm.com> Co-authored-by: Jake Lishman <jake@binhbar.com> Co-authored-by: Jake Lishman <jake.lishman@ibm.com> (cherry picked from commit 6da136c) Co-authored-by: Shelly Garion <46566946+ShellyGarion@users.noreply.github.com>
- Loading branch information
1 parent
6069e5c
commit 4c9df00
Showing
3 changed files
with
296 additions
and
234 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
5 changes: 5 additions & 0 deletions
5
releasenotes/notes/fix_stabilizerstate_expval-2556c5ee916f5327.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,5 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fix a bug in :class:`~qiskit.quantum_info.StabilizerState` expectation value calculation, | ||
that occured when the Pauli operator has a non-trivial phase. |
Oops, something went wrong.