We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When concatenating a Fock and a Gaussian state its modes should be consecutive, meaning the following code
from mrmustard.lab import TMSV, Fock, SqueezedVacuum state_fock = TMSV(r=-0.5,phi=0,modes=[0,1]) & Fock([1,2,3],modes=[2,3,4]) state_fock.modes
should produce the output [0, 1, 2, 3, 4]. Similarly, concatenating two gaussian state
[0, 1, 2, 3, 4]
state_guassian = TMSV(r=-0.5,phi=0,modes=[0,1]) & SqueezedVacuum(r=[1.0]*3,phi=[0.0]*3,modes=[2,3,4]) state_guassian.modes
should produce [0, 1, 2, 3, 4] as well.
in the first case modes come out to be [0, 1, 4, 5, 6] whereas in the second they are [0, 1, 2, 3, 4] as expected.
[0, 1, 4, 5, 6]
always
not relevant
No response
The text was updated successfully, but these errors were encountered:
Oh 🤔 well spotted
Sorry, something went wrong.
No branches or pull requests
Before posting a bug report
Expected behavior
When concatenating a Fock and a Gaussian state its modes should be consecutive, meaning the following code
should produce the output
[0, 1, 2, 3, 4]
. Similarly, concatenating two gaussian stateshould produce
[0, 1, 2, 3, 4]
as well.Actual behavior
in the first case modes come out to be
[0, 1, 4, 5, 6]
whereas in the second they are[0, 1, 2, 3, 4]
as expected.Reproduces how often
always
System information
Source code
from mrmustard.lab import TMSV, Fock, SqueezedVacuum state_fock = TMSV(r=-0.5,phi=0,modes=[0,1]) & Fock([1,2,3],modes=[2,3,4]) state_fock.modes
Tracebacks
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: