unitaryfund / pennylane-qrack

The PennyLane-Qrack plugin integrates the Qrack quantum computing framework with PennyLane's quantum machine learning capabilities.
https://pennylane-qrack.readthedocs.io/
Apache License 2.0
3 stars 0 forks source link

Single-shot optimization #10

Closed WrathfulSpatula closed 3 weeks ago

WrathfulSpatula commented 3 weeks ago

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 commented 3 weeks ago

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.)