Skip to content

FiniteBb84 ​

Finite-key BB84-WCP through q.Link with a q.KeyBlock

7/7 passed in 470ms

TestWhat it doesResult
test_asymptotic_intactLeaving the block off returns the asymptotic GLLP rate byte for byte and no length.✅ pass
test_below_asymptoticThe finite rate never exceeds the asymptotic rate of the same link, at any distance, block size or basis bias.✅ pass
test_bias_optimumSifting at 0.8 beats 0.5, and 0.98 starves the test basis to zero key.✅ pass
test_named_carrierq.PolarisationKeying reaches the same finite-key path, frame drift widening the phase bound and costing key.✅ pass
test_paths_agreeThe sampled pulse train and the closed-form expected counts reach the same length to 5%, labelled measured and expected.✅ pass
test_rate_convergesThe reported rate rises with the block and settles by 1e14.✅ pass
test_result_rowsA finite run reports the rate as length over block, s0, s1, phi and n_key, and the asymptotic rate in explain.✅ pass