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

PNRDetector example in the intro page failed #526

Open
1 task done
sylviemonet opened this issue Nov 21, 2024 · 0 comments
Open
1 task done

PNRDetector example in the intro page failed #526

sylviemonet opened this issue Nov 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sylviemonet
Copy link
Contributor

Before posting a bug report

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

Expected behavior

results = Gaussian(2) << PNRDetector(efficiency = 0.9, modes = [0]) results[0] # unnormalized dm of mode 1 conditioned on measuring 0 in mode 0 results[1] # unnormalized dm of mode 1 conditioned on measuring 1 in mode 0 results[2] # unnormalized dm of mode 1 conditioned on measuring 2 in mode 0

Actual behavior

NotImplementedError: Function convolution not implemented for backend numpy.

Reproduces how often

Everytime

System information

Python version:            3.11.10
Platform info:             macOS-14.2.1-arm64-arm-64bit
Installation path:         
/Users/yuanyao/miniforge3/envs/mrmustard/lib/python3.11/site-packages/mrmustard
Mr Mustard version:        0.7.3
Numpy version:             1.26.4
Numba version:             0.59.1
Scipy version:             1.14.1
The Walrus version:        0.19.0
TensorFlow version:        2.15.0

Source code

`results = Gaussian(2) << PNRDetector(efficiency = 0.9, modes = [0])
results[0]  # unnormalized dm of mode 1 conditioned on measuring 0 in mode 0
results[1]  # unnormalized dm of mode 1 conditioned on measuring 1 in mode 0
results[2]  # unnormalized dm of mode 1 conditioned on measuring 2 in mode 0`

Tracebacks

No response

Additional information

I started a new virtual env (only with python=3.11 and pip install mrmustard and pip install Jupyter) and try to test all examples in the intro page.
@sylviemonet sylviemonet added the bug Something isn't working label Nov 21, 2024
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