SurfaceCounting
Photon-number-resolving receivers, and the rate none of them reaches
9/9 passed in 75ms
| Test | What it does | Result |
|---|---|---|
test_array_click | At one element the array's click outcome is click_prob, the threshold law, to 1e-15. | ✅ pass |
test_array_complete | A multiplexed array's POVM sums to the identity on its truncated space and carries no negative diagonal entry. | ✅ pass |
test_array_distinct | distinct(n), the array's fidelity to true number resolution, is 1 at one photon, falls with | ✅ pass |
test_array_folds | The array's closed-form outcome distribution agrees to 1e-14 with folding its own POVM against a Poisson photon-number distribution. | ✅ pass |
test_counting_domains | Both counting receivers refuse an out-of-range efficiency, dark rate, element count, background and readout width, naming the parameter refused. | ✅ pass |
test_counting_refused | q.Link refuses both counting receivers by name: every bound it ships over a counting receiver is written on a binary click. | ✅ pass |
test_names_shipped | PnrDetector, ThresholdArray, TransmittedLO and ShotNoise are in __all__ and present on the package. | ✅ pass |
test_number_absorbs | The number-resolving readout's POVM sums to the identity, absorbing at the top, and a zero readout width gives the identity confusion matrix. | ✅ pass |
test_number_widens | A finite readout width moves mass off the diagonal of the confusion matrix while every column still sums to one. | ✅ pass |