mm.physics.gaussian.loss_XYd¶
- mrmustard.physics.gaussian.loss_XYd(transmissivity, nbar)[source]¶
Returns the
X
,Y
matrices and thed
vector for the noisy loss (attenuator) channel.\[X = math.sqrt(transmissivity) Y = (1-transmissivity) * (2 * nbar + 1) * hbar / 2\]Reference: Alessio Serafini - Quantum Continuous Variables (5.77, p. 108)
- Parameters:
transmissivity (float) – value of the transmissivity, must be between 0 and 1
nbar (float) – photon number expectation value in the environment (0 for pure loss channel)
- Returns:
the
X
,Y
matrices and thed
vector for the noisy loss channel- Return type:
Tuple[Matrix, Matrix, None]
code/api/mrmustard.physics.gaussian.loss_XYd
Download Python script
Download Notebook
View on GitHub