XanaduAI / MrMustard

A differentiable bridge between phase space and Fock space
https://mrmustard.readthedocs.io/
Apache License 2.0
78 stars 27 forks source link

The circuit drawer displays parameters incorrectly #344

Closed SamFerracin closed 8 months ago

SamFerracin commented 9 months ago

Before posting a bug report

Expected behavior

Dgate(1.0)[2] >> Sgate([1., -1]) The circuit drawer should represent the Sgates as S(1.0, 0.0) and S(-1.0, 0.0)

Actual behavior

The circuit drawer displays both the Sgates as S(r, 0.0)

Reproduces how often

always

System information

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

Python version:            3.9.18
Platform info:             Linux-5.15.0-92-generic-x86_64-with-glibc2.31
Installation path:         /home/samuele.ferracin/git/MrMustard/mrmustard
Mr Mustard version:        0.7.0.dev0
Numpy version:             1.23.5
Numba version:             0.56.4
Scipy version:             1.12.0
The Walrus version:        0.19.0
TensorFlow version:        2.14.0

Source code

No response

Tracebacks

No response

Additional information

No response

SamFerracin commented 8 months ago

Solved on lab_dev

SamFerracin commented 8 months ago

Solved on lab_dev