Skip to content

PairFinite ​

The entanglement-based finite-key length of Tomamichel & Leverrier 2017

16/16 passed in 1382ms

TestWhat it doesResult
test_asymmetryThe refusal states the two-sided gap as a requirement, naming Alice's side as the half that does not transfer.✅ pass
test_asymptoteThe rate per sifted round rises with the block towards log2(1/cbar) - 2h(delta), reaching 98% of it at 1e12.✅ pass
test_budgetEvery length pair_finite returns costs no more than the epsilon it was asked for, read back through pair_secpar.✅ pass
test_budget_domainA security target at or above one half is refused, at pair_finite and at pair_length's eps_pa.✅ pass
test_cbarAlice's complementarity enters the length as log2(1/cbar) per key round, and cbar = 1 is refused.✅ pass
test_coincidenceA coincidence-counted pair link is refused by name, the message naming three missing pieces and four papers.✅ pass
test_fuzzAcross 150 random blocks, error rates, complementarities and targets, no length pair_finite returns overspends its epsilon.✅ pass
test_inversepair_length and pair_secpar invert each other to within the one bit the floor gives away.✅ pass
test_markerAt each block length Figure 7 marks, the length per sifted round has just reached half the asymptotic 1 - 2h(delta).✅ pass
test_optimisedpair_finite at those points is never shorter than the published length and at most a part in a thousand longer.✅ pass
test_publishedAt the four block lengths Tomamichel and Leverrier's Figure 7 marks, pair_length and pair_secpar return the length and the epsilon their own code printed.✅ pass
test_shortA block too short for its security parameter raises rather than returning zero, and an unknown detection model is refused.✅ pass
test_slotsOut-of-domain arguments to the finite-key entry points raise rather than returning a wrong number.✅ pass
test_squasherThe refusal does not blame the squashing model, naming the three Gittsovich theorems, the vacuum flag and Eq. (134) instead.✅ pass
test_termsThe parameter-estimation and correctness terms are Eq. (58)'s exponential and Theorem 2's 2^-t, and the total is their sum.✅ pass
test_vanishesThe length falls to nothing exactly where log2(1/cbar) meets 2h(delta).✅ pass