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

Fixing the number of clicks when a Gaussian state is measured with threshold detectors #100

Closed
nquesada opened this issue Dec 17, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request python sampling

Comments

@nquesada
Copy link
Collaborator

In Appendix A.3. of https://arxiv.org/pdf/1902.00462.pdf a formula is provided for fixing the mean number of clicks of a Gaussian state when measured with threshold detectors.
It would be good to add this feature into The Walrus.

@nquesada
Copy link
Collaborator Author

We can also now do torontonian sampling specifying the mean of number of clicks. For this we have two options:

Option 1: Change the function torontonian_sample_graph(A, n_mean, samples=1, max_photons=30, pool=False) from quantum so that the argument n_mean becomes n_clicks specifying the mean number of clicks instead of the mean photon number.

Option 2: Write a new function that does torontonian sampling from a graph and takes as argument n_clicks.

I prefer option 1 but it would require some reworking in the sf apps. What do @trbromley and @josh146 think?

@nquesada
Copy link
Collaborator Author

Addressed in #136

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python sampling
Projects
None yet
Development

No branches or pull requests

4 participants