Skip to content

TruncatedSurface ​

Phase 5c API: qkd.fock over the engine, and against its Gaussian sibling

5/5 passed in 1380ms

TestWhat it doesResult
test_engine_agreementEvery number qkd.fock reports equals _core.FockState's bit for bit, on a rectangular window.✅ pass
test_gkp_scalesThe derived cutoff holds discarded under GKP_TAIL to delta = 0.15 and refuses delta = 0.08; the fixed 60 levels over-report the negativity by a third at 0.2.✅ pass
test_grid_orientationW[i, j] is W(xs[j], ps[i]) on a rectangular grid, integrates to 1, and matches the Gaussian layer's Wigner and Husimi pointwise with Q inside its bounds.✅ pass
test_immutable_chainrotate, displace and loss return new states and leave the original alone.✅ pass
test_shadow_bridgeshadow() of Thermal(1.5) carries the (nbar + 1/2) covariance moments() hands GaussianState.from_moments, its entropy, and zero non-Gaussianity.✅ pass