sf.physics.gaussian.partition_cov¶
- mrmustard.physics.gaussian.partition_cov(cov, Amodes)[source]¶
Partitions the covariance matrix into the
AandBsubsystems and the AB coherence block.- Parameters:
cov (Matrix) – the covariance matrix
Amodes (Sequence[int]) – the modes of system
A
- Returns:
the cov of
A, the cov ofBand the AB block- Return type:
Tuple[Matrix, Matrix, Matrix]
code/api/mrmustard.physics.gaussian.partition_cov
Download Python script
Download Notebook
View on GitHub