mm.physics.bargmann.wigner_to_bargmann_rho

mrmustard.physics.bargmann.wigner_to_bargmann_rho(cov, means)[source]

Converts the wigner representation in terms of covariance matrix and mean vector into the Bargmann A,B,C triple for a density matrix (i.e. for M modes, A has shape 2M x 2M and B has shape 2M). The order of the rows/columns of A and B corresponds to a density matrix with the usual ordering of the indices.

Note that here A and B are defined with respect to the literature.