Skip to content

CvFiniteSize ​

Leverrier 2010 finite-size machinery on the pinned path

3/3 passed in 0ms

TestWhat it doesResult
test_finite_approaches_asymptoticThe rate rises with block size towards (n/N) of asymptotic without reaching it: Eq. (10) of Leverrier, Grosshans & Grangier, Phys. Rev. A 81, 062343 (2010) keeps the n/N prefactor, so estimation's half is never recovered.✅ pass
test_finite_below_asymptoticWorst-case parameters plus Δ(n) hold the rate below asymptotic at every n, and n=109 still yields key.✅ pass
test_zero_key_at_small_blockAt n=105 the finite-size penalty gives exactly 0, never negative.✅ pass