-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Corrected qubits ordering in MPS::sample_measure_using_probabilities. (…
- Loading branch information
1 parent
d3fee1e
commit d3b927a
Showing
4 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
releasenotes/notes/sample_measure-bug-4ce3a1a6553e4900.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,10 @@ | ||
--- | ||
|
||
fixes: | ||
- | | ||
When invoking MPS::sample_measure, we need to first sort the qubits to the | ||
default ordering because this is the assumption in qasm_controller.This is | ||
done by invoking the method move_all_qubits_to_sorted_ordering. It was | ||
correct in sample_measure_using_apply_measure, but missing in | ||
sample_measure_using_probabilities. | ||
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