mm.physics.gaussian.thermal_cov

mrmustard.physics.gaussian.thermal_cov(nbar)[source]

Returns the real covariance matrix and real means vector of a thermal state.

The dimension depends on the dimensions of nbar.

Parameters:

nbar (vector) – average number of photons per mode

Returns:

thermal state covariance matrix or means vector

Return type:

Matrix, Vector