XanaduAI / MrMustard

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

Make Mrmustard independent of SF #61

Closed nquesada closed 2 years ago

nquesada commented 2 years ago

Currently MrMustard depends on Strawberry Fields. The dependency is only for using the Wigner function plotting capabilities of SF, which are in turn just borrowed from qutip. It would be nice to remove this very onerous requirement and make MrM independent of SF. Ideally one can simply take this method

https://github.com/XanaduAI/strawberryfields/blob/2c27f1c1ebe4bc53866dbe0420c9a6bafda5aeb4/strawberryfields/backends/states.py#L725

and turn it into a standalone function in the utils/graphics.py module.

This would simplify the installation of MrM and since both MrM and SF might require different versions of TF avoid potentially dependency entanglements.

ziofil commented 2 years ago

done