-
Notifications
You must be signed in to change notification settings - Fork 56
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
Brute force samplers #152
Brute force samplers #152
Conversation
Codecov Report
@@ Coverage Diff @@
## master #152 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 12 12
Lines 887 924 +37
=========================================
+ Hits 887 924 +37
Continue to review full report at Codecov.
|
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.
Looks great @nquesada! Just a few minor aesthetic/pylint things and docstring changes I suggested. 🙂
Co-Authored-By: Theodor <theodor@xanadu.ai>
Co-Authored-By: Theodor <theodor@xanadu.ai>
Co-Authored-By: Theodor <theodor@xanadu.ai>
Co-Authored-By: Theodor <theodor@xanadu.ai>
Co-Authored-By: Theodor <theodor@xanadu.ai>
Co-Authored-By: Theodor <theodor@xanadu.ai>
Co-Authored-By: Theodor <theodor@xanadu.ai>
Co-Authored-By: Theodor <theodor@xanadu.ai>
Co-Authored-By: Theodor <theodor@xanadu.ai>
Co-Authored-By: Theodor <theodor@xanadu.ai>
Co-Authored-By: Theodor <theodor@xanadu.ai>
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.
Awesome new features @nquesada
Co-Authored-By: Josh Izaac <josh146@gmail.com>
Adds a number of methods for calculating the photon number distributions.
Adds the ability to calculate the photon number distribution of a pure state or mixed state using
generate_probabilities
.Allows to update the photon number distirbution when undergoing loss by using
update_probabilities_with_loss
.Adds a brute force sampler
photon_number_sampler
that given a (multi-)mode photon number distribution generates photon number samples.