Skip to content

SixStateGuards ​

Out-of-domain six-state inputs raise rather than returning a wrong number

7/7 passed in 0ms

TestWhat it doesResult
test_bell_domainEach error rate is refused outside [0, 1/2] one slot at a time, and a triple no Bell-diagonal state can produce is refused rather than clamped.✅ pass
test_budget_domainsixstate_eps refuses either epsilon outside (0, 1) and a correction term at or above the deviation it nests inside.✅ pass
test_holevo_domainsixstate_holevo refuses anything outside [0, 1/2], including a NaN.✅ pass
test_pooled_domainsixstate_pooled checks the triple it was handed, so a pair no Bell-diagonal state carries is refused even where its average would pass.✅ pass
test_rate_domainsixstate_rate refuses a vanishing sifting factor, a gain or error rate out of range, a below-Shannon f_ec, and an inverted decoy bound q1 > q_mu.✅ pass
test_secret_leaksixstate_secret refuses an f_ec below the Shannon limit.✅ pass
test_sift_domainThe basis bias is refused below 1/3 and at 1.✅ pass