This repository was archived by the owner on Jan 16, 2026. It is now read-only.
Conversation
- Adds a parameter, alpha, to specify peak spacing of the GKP state - Modifies both fock and bosonic backends
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ 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 in Codecov by Sentry.
🚀 New features to boost your workflow:
|
ilan-tz
reviewed
Dec 21, 2021
Collaborator
ilan-tz
left a comment
There was a problem hiding this comment.
Nicely done! Good thinking to add more flexibility in choice of GKP state for the user.
Co-Authored-By: ilan-tz <57886357+ilan-tz@users.noreply.github.com>
elib20
commented
Dec 21, 2021
elib20
commented
Dec 22, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: