Skip to content

GaussianOps ​

Symplectic operations preserve physicality and the covariance algebra

5/5 passed in 0ms

TestWhat it doesResult
test_bs_identityA beamsplitter with t = 1.0 is the identity on covariance and mean.✅ pass
test_bs_splitsA t = 0.5 beamsplitter on coherent + vacuum sends sqrt(t) each way and keeps vacuum covariance.✅ pass
test_displace_mean_onlyDisplacement moves the mean by (x, p) and never touches the covariance.✅ pass
test_rotate_swapsRotating a squeezed state by pi/2 exchanges var_x and var_p.✅ pass
test_squeeze_inverseSqueezing by r then by -r returns the original vacuum covariance.✅ pass