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

MPS::Improve the heuristics for choosing the algorithm in sample_measure #994

Merged
merged 6 commits into from
Oct 15, 2020

Conversation

merav-aharoni
Copy link
Contributor

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

Summary

Rewrote sample_measure in MPS so that it chooses between two algorithms - sample_measure_using_probabilities and sample_measure_using_apply_measure, depending on number of qubits, shots, and maximum bond dimension of the state.

Closes #944

Details and comments

The new heuristics was obtained experimentally. The user can override the heuristics by setting their preferred algorithm as a backend option.
See issue #944.

… two algorithms. The heuristics were determined experimentally
Copy link
Member

@chriseclectic chriseclectic 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 chriseclectic added this to the Aer 0.7 milestone Oct 15, 2020
@chriseclectic chriseclectic changed the title [WIP] MPS::Improve the heuristics for choosing the algorithm in sample_measure MPS::Improve the heuristics for choosing the algorithm in sample_measure Oct 15, 2020
@chriseclectic chriseclectic merged commit d64c06d into Qiskit:master Oct 15, 2020
@chriseclectic chriseclectic added the Changelog: New Feature Include in the Added section of the changelog label Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: New Feature Include in the Added section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Re-examine the threshold deciding which algorithm to use for sample_measure in MPS
2 participants