Skip to content

DmcsGuards ​

Non-isotropic constellations, unphysical correlations and out-of-domain inputs

5/5 passed in 1ms

TestWhat it doesResult
test_alpha_domainα of 0, -0.4, 1e-9, 101, NaN or infinity raises ValueError.✅ pass
test_holevo_domainA correlation stronger than the marginals carry raises rather than reach a sub-vacuum symplectic eigenvalue that understates Eve, and so does an alphabet entropy that is zero, negative or NaN.✅ pass
test_rate_domainTransmittance outside (0, 1], negative excess noise, efficiency outside (0, 1], negative electronic noise and reconciliation efficiency outside [0, 1] each raise a ValueError naming the parameter.✅ pass
test_size_domainm outside 3..64 raises ValueError, a two-state constellation not being isotropic, and 3 and 64 are accepted.✅ pass
test_zstar_clampedThe correlation bound falls with excess noise and clamps at zero rather than going negative, and at ξ up to 1e12 or T down to 1e-12 every component stays finite with a negative rate.✅ pass