Skip to content

SurfaceCounting ​

Photon-number-resolving receivers, and the rate none of them reaches

9/9 passed in 75ms

TestWhat it doesResult
test_array_clickAt one element the array's click outcome is click_prob, the threshold law, to 1e-15.✅ pass
test_array_completeA multiplexed array's POVM sums to the identity on its truncated space and carries no negative diagonal entry.✅ pass
test_array_distinctdistinct(n), the array's fidelity to true number resolution, is 1 at one photon, falls with n, and is exactly 0 once n passes the element count.✅ pass
test_array_foldsThe array's closed-form outcome distribution agrees to 1e-14 with folding its own POVM against a Poisson photon-number distribution.✅ pass
test_counting_domainsBoth counting receivers refuse an out-of-range efficiency, dark rate, element count, background and readout width, naming the parameter refused.✅ pass
test_counting_refusedq.Link refuses both counting receivers by name: every bound it ships over a counting receiver is written on a binary click.✅ pass
test_names_shippedPnrDetector, ThresholdArray, TransmittedLO and ShotNoise are in __all__ and present on the package.✅ pass
test_number_absorbsThe 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_widensA finite readout width moves mass off the diagonal of the confusion matrix while every column still sums to one.✅ pass