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

probability vectors do not update upon cutoff increase #238

Open
1 task done
ziofil opened this issue Apr 21, 2023 · 0 comments
Open
1 task done

probability vectors do not update upon cutoff increase #238

ziofil opened this issue Apr 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ziofil
Copy link
Collaborator

ziofil commented Apr 21, 2023

Before posting a bug report

  • I have searched exisisting GitHub issues to make sure the issue does not already exist.

Expected behavior

Length of probabilities equals cutoff

Actual behavior

the first cutoff sets the length once and for all

Reproduces how often

100%

System information

Python version:            3.9.16
Platform info:             Linux-5.15.49-linuxkit-aarch64-with-glibc2.31
Installation path:         /workspaces/MrMustard/mrmustard
Mr Mustard version:        0.5.0-dev
Numpy version:             1.23.5
Numba version:             0.56.4
Scipy version:             1.8.0
The Walrus version:        0.19.0
TensorFlow version:        2.10.1

Source code

from mrmustard.lab import *

fock_state = State(ket=Gaussian(1).ket())

print(len(fock_state.fock_probabilities([4])))   # prints 4
print(len(fock_state.fock_probabilities([8])))   # prints 4 again

Tracebacks

No response

Additional information

No response

@ziofil ziofil added the bug Something isn't working label Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant