GaussianOps
Symplectic operations preserve physicality and the covariance algebra
5/5 passed in 0ms
| Test | What it does | Result |
|---|---|---|
test_bs_identity | A beamsplitter with t = 1.0 is the identity on covariance and mean. | ✅ pass |
test_bs_splits | A t = 0.5 beamsplitter on coherent + vacuum sends sqrt(t) each way and keeps vacuum covariance. | ✅ pass |
test_displace_mean_only | Displacement moves the mean by (x, p) and never touches the covariance. | ✅ pass |
test_rotate_swaps | Rotating a squeezed state by pi/2 exchanges var_x and var_p. | ✅ pass |
test_squeeze_inverse | Squeezing by r then by -r returns the original vacuum covariance. | ✅ pass |