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

Autocutoffs not being respected #250

Open
1 task done
elib20 opened this issue Jun 26, 2023 · 1 comment
Open
1 task done

Autocutoffs not being respected #250

elib20 opened this issue Jun 26, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@elib20
Copy link
Contributor

elib20 commented Jun 26, 2023

Before posting a bug report

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

Expected behavior

I expect the cutoffs to be [10,10] in the first print statement, but they come out as [3,2].

This is obviously a problem when the BSgate is applied, since it keeps those same cutoffs.

from mrmustard import settings
from mrmustard.lab import *

settings.AUTOCUTOFF_MIN_CUTOFF = 10

print((Fock(2)&Fock(1)).cutoffs)

print(((Fock(2)&Fock(1)) >> BSgate(np.pi/4)).cutoffs)

Actual behavior

See above.

Reproduces how often

Every time.

System information

Mr Mustard: a differentiable bridge between phase space and Fock space.
Copyright 2021 Xanadu Quantum Technologies Inc.

Python version:            3.10.11
Platform info:             Windows-10-10.0.19045-SP0
Installation path:         N/A
Mr Mustard version:        0.5.0-dev
Numpy version:             1.23.5
Numba version:             0.56.4
Scipy version:             1.10.1
The Walrus version:        0.20.0
TensorFlow version:        2.10.0

Source code

No response

Tracebacks

No response

Additional information

No response

@elib20 elib20 added the bug Something isn't working label Jun 26, 2023
@ziofil
Copy link
Collaborator

ziofil commented Apr 8, 2024

See #118 (comment)

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

2 participants