mm.physics.gaussian.number_cov¶
- mrmustard.physics.gaussian.number_cov(cov, means)[source]¶
Returns the photon number covariance matrix 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 matrixmeans (
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 covariance matrix
- Return type:
Matrix
code/api/mrmustard.physics.gaussian.number_cov
Download Python script
Download Notebook
View on GitHub