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

Single-shot optimization #10

Merged
merged 2 commits into from
Jun 12, 2024
Merged

Single-shot optimization #10

merged 2 commits into from
Jun 12, 2024

Conversation

WrathfulSpatula
Copy link
Collaborator

MAll() is much faster for generating a single measurement sample than MultiShotMeasure(). (Since the methods changed here occur at the ends of circuits, there's no reason not to "collapse" the state.)

@WrathfulSpatula
Copy link
Collaborator Author

WrathfulSpatula commented Jun 12, 2024

By the way, here's what comparison against Qulacs could look like, only after this PR.

Screenshot from 2024-06-12 13-50-18

(@nathanshammah, was this your general idea for benchmarks? Because these can even go in the tutorial, as well.)

pennylane_qrack/qrack_device.py Show resolved Hide resolved
pennylane_qrack/qrack_device.py Outdated Show resolved Hide resolved
@WrathfulSpatula WrathfulSpatula merged commit de039bf into master Jun 12, 2024
1 of 4 checks passed
@WrathfulSpatula WrathfulSpatula deleted the single-shot branch June 12, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants