-
Notifications
You must be signed in to change notification settings - Fork 191
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
Rectangular gkp #668
base: master
Are you sure you want to change the base?
Rectangular gkp #668
Conversation
- Adds a parameter, alpha, to specify peak spacing of the GKP state - Modifies both fock and bosonic backends
Codecov Report
@@ Coverage Diff @@
## master #668 +/- ##
=======================================
Coverage 98.29% 98.29%
=======================================
Files 75 75
Lines 9029 9035 +6
=======================================
+ Hits 8875 8881 +6
Misses 154 154
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.
Nicely done! Good thinking to add more flexibility in choice of GKP state for the user.
Co-Authored-By: ilan-tz <[email protected]>
Context: Currently, strawberryfields only supports square lattice GKP states. The simplest more general type of GKP states are rectangular lattice GKP states (instead of peak spacing by sqrt(pi) in q quadrature, it's sqrt(alpha*sqrt(pi)). This allows for, e.g. GKP sensor states.
Description of the Change: Adds the ability to initialize rectangular GKP states to the bosonic and fock backends.
Benefits: Wider class of states to simulate.
Possible Drawbacks:
Related GitHub Issues: