Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrected qubits ordering in MPS::sample_measure_using_probabilities. #1011

Merged
merged 6 commits into from
Nov 3, 2020

Conversation

merav-aharoni
Copy link
Contributor

@merav-aharoni merav-aharoni commented Oct 28, 2020

Summary

Bug was reported in issue #997. The error was in the ordering of the qubits in sample_measure_using_probabilities.

Details and comments

The correction is to order the qubits before invoking sample_measure_using_probabilities, because the input qubits are always ordered in advance in qasm_controller.py. See ordering also in apply_measure.

@merav-aharoni merav-aharoni changed the title [WIP] Corrected qubits ordering in MPS::sample_measure_using_probabilities. Corrected qubits ordering in MPS::sample_measure_using_probabilities. Oct 28, 2020
@chriseclectic chriseclectic added the Changelog: Bugfix Include in the Fixed section of the changelog label Oct 28, 2020
vvilpas
vvilpas previously approved these changes Oct 30, 2020
Copy link
Contributor

@vvilpas vvilpas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@chriseclectic
Copy link
Member

@merav-aharoni Can you add a release note for the bugfix?

@chriseclectic chriseclectic added the stable-backport-potential The issue or PR might be minimal and/or import enough to backport to stable label Oct 30, 2020
@vvilpas vvilpas merged commit d3b927a into Qiskit:master Nov 3, 2020
chriseclectic pushed a commit to chriseclectic/qiskit-aer that referenced this pull request Nov 12, 2020
@merav-aharoni merav-aharoni deleted the issue997 branch April 8, 2021 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the Fixed section of the changelog stable-backport-potential The issue or PR might be minimal and/or import enough to backport to stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants