ToolboxDerived
keep/drop/evolve return full native states, validated as bona fide
3/3 passed in 0ms
| Test | What it does | Result |
|---|---|---|
test_matches_direct | Epr(0.8).keep([0]) and Thermal(sinh^2 0.8) give the same covariance, mean, purity and homodyne samples down one thermal-loss channel. | ✅ pass |
test_methods_survive | Displace, squeeze, rotate, beamsplitter, thermal loss, conditioning and both detectors all run on a state from keep, drop or evolve. | ✅ pass |
test_moments_validated | from_moments refuses diag(0.1, 0.1) -- quadrature product 0.01 below 1/4, caught only by V + i*Omega/2 >= 0 -- plus a wrong shape and a non-symmetric covariance. | ✅ pass |