Skip to content

GaussianLoss ​

Thermal-loss channel: fixed points, sqrt(T) scaling, explicit xi plane

7/7 passed in 2ms

TestWhat it doesResult
test_coherent_scalingPure loss scales a coherent amplitude by sqrt(T): T = 0.36 sends (1.2, -0.4) to (0.72, -0.24).✅ pass
test_excess_noise_physicalThermal loss at positive xi yields a bona fide state and physical() agrees.✅ pass
test_identity_channelthermal_loss with T = 1 and xi = 0 is the identity channel.✅ pass
test_loss_toward_vacuumPure loss pulls both variances toward the vacuum 1/2, from either side.✅ pass
test_ref_validationAn unknown ref raises ValueError and an omitted one TypeError; the plane is never defaulted.✅ pass
test_reference_planexi = 0.02 at ref="input" gives the same covariance as xi = 0.008 at ref="output" for T = 0.4.✅ pass
test_vacuum_fixed_pointThe vacuum is a fixed point of pure loss at any transmittance.✅ pass