FiniteBb84
Finite-key BB84-WCP through q.Link with a q.KeyBlock
7/7 passed in 470ms
| Test | What it does | Result |
|---|---|---|
test_asymptotic_intact | Leaving the block off returns the asymptotic GLLP rate byte for byte and no length. | ✅ pass |
test_below_asymptotic | The finite rate never exceeds the asymptotic rate of the same link, at any distance, block size or basis bias. | ✅ pass |
test_bias_optimum | Sifting at 0.8 beats 0.5, and 0.98 starves the test basis to zero key. | ✅ pass |
test_named_carrier | q.PolarisationKeying reaches the same finite-key path, frame drift widening the phase bound and costing key. | ✅ pass |
test_paths_agree | The sampled pulse train and the closed-form expected counts reach the same length to 5%, labelled measured and expected. | ✅ pass |
test_rate_converges | The reported rate rises with the block and settles by 1e14. | ✅ pass |
test_result_rows | A finite run reports the rate as length over block, s0, s1, phi and n_key, and the asymptotic rate in explain. | ✅ pass |