Skip to content

ProtocolVariants ​

Basis keying with a third basis, and with a pair announced in place of one

7/7 passed in 1ms

TestWhat it doesResult
test_bias_refusedAll four basis-keyed branches refuse a declared bias by name rather than dropping it.✅ pass
test_engine_agreementThree bases: the rate is decoy_gain into decoy_bounds into sixstate_rate, at sixstate_sift's share, not a literal 1/3.✅ pass
test_guardsA sampled pulse train, a finite block and detector afterpulsing are each refused by the two variants.✅ pass
test_pair_agreementThe pair announcement: sarg_gain's and sarg_yield's conclusive rates into the same protocol-blind inversion, and the rate is sarg_rate with no sifting factor outside it.✅ pass
test_sift_defaultsq.BasisKeying.sift is 1/bases unless declared, and None under a pair announcement.✅ pass
test_third_basis_paysAt equal sifting the third basis buys a larger rate on the same decoy bounds, and at the uniform 1/3 against 1/2 it costs more on this span than it buys.✅ pass
test_two_photon_absentThe two-photon term is reported absent (the Ma-Qi-Zhao-Lo inversion bounds Y1, nothing bounds Y2), so the rate sits below the infinite-decoy one.✅ pass