XanaduAI / thewalrus

A library for the calculation of hafnians, Hermite polynomials and Gaussian boson sampling.
https://the-walrus.readthedocs.io
Apache License 2.0
99 stars 54 forks source link

Adds the warning #388

Closed nquesada closed 2 months ago

nquesada commented 2 months ago

Adds a warning in the function density_matrix_single_mode when there values in the diagonal of the density matrix that are far from non-negative.