DmcsGuards
Non-isotropic constellations, unphysical correlations and out-of-domain inputs
5/5 passed in 1ms
| Test | What it does | Result |
|---|---|---|
test_alpha_domain | ValueError. | ✅ pass |
test_holevo_domain | A 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_domain | Transmittance 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_domain | m outside 3..64 raises ValueError, a two-state constellation not being isotropic, and 3 and 64 are accepted. | ✅ pass |
test_zstar_clamped | The correlation bound falls with excess noise and clamps at zero rather than going negative, and at | ✅ pass |