sf.physics.gaussian.compose_channels_XYd¶
- mrmustard.physics.gaussian.compose_channels_XYd(X1, Y1, d1, X2, Y2, d2)[source]¶
Returns the combined
X
,Y
, andd
for two CPTP channels.- Parameters:
X1 (Matrix) – the
X
matrix of the first CPTP channelY1 (Matrix) – the
Y
matrix of the first CPTP channeld1 (Vector) – the displacement vector of the first CPTP channel
X2 (Matrix) – the
X
matrix of the second CPTP channelY2 (Matrix) – the
Y
matrix of the second CPTP channeld2 (Vector) – the displacement vector of the second CPTP channel
- Returns:
the combined
X
,Y
, andd
matrices- Return type:
Tuple[Matrix, Matrix, Vector]
code/api/mrmustard.physics.gaussian.compose_channels_XYd
Download Python script
Download Notebook
View on GitHub