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
Adds Torontonian sampling support to the Gaussian backend #152
Conversation
Codecov Report
@@ Coverage Diff @@
## master #152 +/- ##
=========================================
Coverage ? 97.59%
=========================================
Files ? 36
Lines ? 5325
Branches ? 0
=========================================
Hits ? 5197
Misses ? 128
Partials ? 0
Continue to review full report at Codecov.
|
"""Tests that make use of the Fock basis representation.""" | ||
|
||
def measure_threshold_gaussian_warning(self, setup_backend): | ||
"""Tests that Threshold measurements are not implemented when shots != 1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the right docstring?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nop
Co-Authored-By: Tom Bromley <49409390+trbromley@users.noreply.github.com>
… in the gaussian backend
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addresses @josh146 comments
@josh146 any idea what this |
Co-Authored-By: Josh Izaac <josh146@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice addition!
I also like how most of these changes are relatively simple, relying on calls to hafnan ahem I mean "The Walrus"
Gave a couple minor suggestions before approval
Co-Authored-By: Nathan Killoran <co9olguy@users.noreply.github.com>
…er zero or one in all the modes
All looks good from my end now @nquesada |
As one last commit before merging, can you update the changelog, adding a one-to-two sentence description of the PR to the relevant section, and also link back to the PR. |
Co-Authored-By: Josh Izaac <josh146@gmail.com>
Description of the Change:
Adds threshold (torontonian) sampling to the capabilities of the Gaussian backend.
Benefits:
Threshold samples can be generated directly instead of doing PNR and then threshold by hand. Should give significant saving in time and it is useful for apps upstream.
Possible Drawbacks:
Related GitHub Issues: