sf.physics.gaussian.partition_cov

mrmustard.physics.gaussian.partition_cov(cov, Amodes)[source]

Partitions the covariance matrix into the A and B subsystems 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 of B and the AB block

Return type:

Tuple[Matrix, Matrix, Matrix]