Skip to content

PnrGuards ​

Argument domain of the photon-number-resolving layer

4/4 passed in 0ms

TestWhat it doesResult
test_guard_arraypnr_array refuses a cutoff, element count, efficiency or dark rate outside its domain, and a POVM too large to hold.✅ pass
test_guard_decoypnr_decoy refuses an unordered or out-of-range setting triple and a zero mass cap, and pnr_noclick refuses anything that is not a photon-number distribution.✅ pass
test_guard_povmThe returned POVM refuses an outcome it does not carry, a distribution on the wrong cutoff, and a coherent state whose tail the cutoff would silently drop.✅ pass
test_guard_tespnr_tes refuses a cutoff, efficiency, background, readout width or saturation scale outside its domain.✅ pass