ProtocolBasis
Phase 5b API: basis-keyed weak coherent pulses with decoy-state bounds
3/3 passed in 1ms
| Test | What it does | Result |
|---|---|---|
test_bounds_sandwich | y1 sits below the infinite-decoy yield and e1 above its error rate at every distance, and a weakest intensity of 0 is the tighter bound. | ✅ pass |
test_engine_agreement | The rate is decoy_gain into decoy_bounds into bb84_rate, on Y0 twice the per-gate dark probability over two ports. | ✅ pass |
test_sifting_is_a_factor | The basis-reconciliation factor multiplies the whole rate: sift = 1.0 is exactly twice sift = 0.5. | ✅ pass |