mm.physics.gaussian.purity

mrmustard.physics.gaussian.purity(cov)[source]

Returns the purity of the state with the given covariance matrix.

Parameters:

cov (Matrix) – the covariance matrix

Returns:

the purity

Return type:

float