Skip to content

FiniteLength ​

The finite key length in bits, Lim et al. Eq. (1)

8/8 passed in 0ms

TestWhat it doesResult
test_block_monotoneLength and length per pulse both rise with the block size.✅ pass
test_count_guardCertified vacuum and single-photon counts above the sifted count are refused.✅ pass
test_epsilon_priceA weaker secrecy parameter buys a longer key.✅ pass
test_epsilon_sharebb84_eps is the engine's per-bound share, and 21 of them recompose eps_sec.✅ pass
test_frame_errorsA frame error rate scales the length, a failed frame yielding and leaking nothing.✅ pass
test_length_unitsThe length is floored to whole bits, positive at 1e12 pulses and zero at 1e7.✅ pass
test_reach_monotoneAt a fixed block the length falls with fibre length to zero at 150 km.✅ pass
test_share_spendsSix bounds at bb84_eps(eps_sec) plus the correctness term rebuild Eq. (1)'s length.✅ pass