Skip to content

PostselectGuards ​

The direction the correction must be applied in, and the arguments refused

10/10 passed in 0ms

TestWhat it doesResult
test_budget_stricterps_budget is below log2(eps) at x = 2, 16 and 52.✅ pass
test_cost_domainps_cost refuses a fractional, zero, oversized or non-finite block and an out-of-range reduction dimension.✅ pass
test_dim_domainps_dim, ps_tagged and ps_squash refuse a zero or oversized dimension in every slot.✅ pass
test_epsilon_upwardps_epsilon raises the failure probability, and rises with n and with x.✅ pass
test_epsilon_vacuousps_epsilon refuses a lift that does not land below 1.✅ pass
test_length_downwardps_length is below its input at x = 2, 16, 52 and 2340.✅ pass
test_lift_gatedps_lift refuses all fifteen qkd family names, and on "qubit" spends both key length and security parameter.✅ pass
test_log2_domainps_thirds and ps_width refuse a positive or non-finite logarithm.✅ pass
test_secrecy_vacuousps_secrecy refuses a composition at or above 1.✅ pass
test_trivial_xps_dim(1, 1) is refused as a no-op.✅ pass