mm.physics.gaussian.number_means

mrmustard.physics.gaussian.number_means(cov, means)[source]

Returns the photon number means vector given a Wigner covariance matrix and a means vector.

Parameters:
  • cov (ndarray[Tuple[int, int], Union[TypeVar(R, float16, float32, float64), TypeVar(C, complex64, complex128), TypeVar(Z, int16, int32, int64), TypeVar(N, uint16, uint32, uint64)]]) – the Wigner covariance matrix

  • means (ndarray[Tuple[int], Union[TypeVar(R, float16, float32, float64), TypeVar(C, complex64, complex128), TypeVar(Z, int16, int32, int64), TypeVar(N, uint16, uint32, uint64)]]) – the Wigner means vector

Returns:

the photon number means vector

Return type:

Vector