XanaduAI / MrMustard

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

Incorrect Typing in mrmustard.physics.triples #416

Open JacobHast opened 2 weeks ago

JacobHast commented 2 weeks ago

Before posting a bug report

Expected behavior

The Abc triples defined in mrmustard.physics.triples uses Union for the outputs, I believe this should be Tuple instead

Actual behavior

Use Tuple

Reproduces how often

100%

System information

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

Python version:            3.9.19
Platform info:             Windows-10-10.0.19045-SP0
Installation path:         
c:\Users\jacob\miniconda3\envs\mrmustard_dev\lib\site-packages\mrmustard
Mr Mustard version:        0.7.3
Numpy version:             1.26.4
Numba version:             0.59.1
Scipy version:             1.13.1
The Walrus version:        0.19.0
TensorFlow version:        2.16.1

Source code

No response

Tracebacks

No response

Additional information

No response

ziofil commented 1 week ago

haha yep! ^^'