PnrGuards
Argument domain of the photon-number-resolving layer
4/4 passed in 0ms
| Test | What it does | Result |
|---|---|---|
test_guard_array | pnr_array refuses a cutoff, element count, efficiency or dark rate outside its domain, and a POVM too large to hold. | ✅ pass |
test_guard_decoy | pnr_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_povm | The 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_tes | pnr_tes refuses a cutoff, efficiency, background, readout width or saturation scale outside its domain. | ✅ pass |