forked from Qiskit/qiskit-aer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed MPS expectation value when qubits are not given in ascending or…
…der (Qiskit#603) * added support for computing expectation value pauli when qubits are not in ascending order * in expectation_value_pauli, moved the reverse_qubits to before the sort * update MPS expectation value snapshots * added support for expectation value matrix when the qubits are not ordered in ascending order * rewrote the function move_qubits_to_new_position * changed name of method and parameters, to suit functionality * updated documentation accordingly Co-authored-by: yaelbh <[email protected]> (cherry picked from commit 0d010b3)
- Loading branch information
1 parent
e30ea21
commit 0e9d02c
Showing
4 changed files
with
281 additions
and
96 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
Oops, something went wrong.