Skip to content

PnrArray ​

Multiplexed threshold array: POVM, threshold limit, PNR limit

11/11 passed in 72ms

TestWhat it doesResult
test_array_clickAt one element the array POVM reproduces click_prob across efficiency, dark count and coherent-state flux.✅ pass
test_array_coherentFolding the POVM against a Poisson photon-number distribution agrees with the closed binomial count a balanced splitter gives directly.✅ pass
test_array_completeThe array's elements sum to the identity on the truncated space and each one is positive semi-definite.✅ pass
test_array_convergeDoubling the element count halves the deficit from true photon-number resolution, which is first order in 1/N with coefficient n(n−1)/2.✅ pass
test_array_darkOn vacuum the array reports a binomial count over its elements.✅ pass
test_array_distinctAt unit efficiency the probability of reporting the true number is exactly pnr_distinct, the probability that no two photons share a bin.✅ pass
test_array_efficiencyThe no-click probability falls monotonically with element efficiency and is exactly zero at unit efficiency on three photons.✅ pass
test_array_elementsThe probability of reporting the true photon number rises monotonically with the element count, at fixed per-element efficiency.✅ pass
test_array_inclusionThe occupancy recursion agrees with the closed inclusion-exclusion form of the same POVM, evaluated in exact rationals.✅ pass
test_array_thresholdAt one element the no-click element is (1 - d)(1 - eta)^n on the Fock diagonal.✅ pass
test_array_vacuumThe no-click element is (1 - d)^N (1 - eta)^n at every element count.✅ pass