Optimal Fock photon counting and total-count threshold
OpenQAlgorithms.Papers.Independent.Intakethird100.P54.fock_countingLet be the finite number of signal modes and the finite number of retained idler modes, on the full optical Fock spaces. The two channels have equal priors, independent vacuum environments, reflectances , field magnitudes and , and distinct complex reflection coefficients . Every signal mode sees the same channel; idlers are retained losslessly and environment outputs are inaccessible. Write for squared Uhlmann fidelity, for minimum average error over all joint binary receivers, , and , with zero powers interpreted as support projections. Here the common phase is removed, so and . Put .
For a multimode Fock input with total photon number , the returned states are diagonal and commute. The observed occupation has conditional law
and zero otherwise. Its total has the binomial law . Photon counting followed by the likelihood decision, assigning equality to one, attains
For and possible counts , the likelihood ratio is at least one exactly when
The optimum depends only on , independently of occupations and mode count; gives a tie and error .
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P54
noncomputable section
open scoped BigOperators ComplexConjugate
open MeasureTheory Filter
namespace QAlgorithms.Papers.Independent.Intakethird100.P54
open QAlgorithms.RealRegisters (Hilbert)
open QAlgorithms.Papers.Independent.Claimed50.P47 (Occupation)
open QAlgorithms.Papers.Independent.Dependency50.P39 (coherentCoefficient)
attribute [local instance] Classical.propDecidable
attribute [local instance] Classical.decEq
/-- Photon counting is optimal and depends only on total Fock photon number,
PDF p.8, (62)–(65). j counts observed photons, whereas source k counts losses.
The logarithmic likelihood rule is restricted to strict interior reflectances. -/
theorem fock_counting {M : ℕ} (hM : 0 < M) (c : Channels)
(hc : ValidSplitters c) (hr : Reading c) (n : Occupation (Fin M)) :
(∀ b x y, returned (c b) (fock n) x y =
if x=y then (countLaw (c b) n x.2 : ℂ) else 0) ∧
kernelProduct (returned (c false) (fock n)) (returned (c true) (fock n)) =
kernelProduct (returned (c true) (fock n)) (returned (c false) (fock n)) ∧
(∀ b j, (∑' q : Occupation (Fin M), if photons q=j then countLaw (c b) n q else 0) =
totalCountLaw (c b) (photons n) j) ∧
outputError c (fock n) = countingError c (photons n) ∧
(∃ E, IsOpticalEffect E ∧ CountsAs E (fun q => decide
(totalCountLaw (c false) (photons n) (photons q) ≤
totalCountLaw (c true) (photons n) (photons q))) ∧
sectorRisk c (fock n) E (1/2) (1/2)=outputError c (fock n)) ∧
(0 < (c false).reflectance → (c true).reflectance < 1 →
∀ j : ℕ, j ≤ photons n →
((1 ≤ ((c true).reflectance^j * (1-(c true).reflectance)^(photons n-j)) /
((c false).reflectance^j * (1-(c false).reflectance)^(photons n-j))) ↔
countThreshold c (photons n) ≤ (j : ℝ))) := by sorry
end QAlgorithms.Papers.Independent.Intakethird100.P54
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let be a natural number, let specify splitters with reflectances and phases , and assume , , and . Fix , put , and let be the unit coordinate vector at in , whose idler label set is a singleton. Define for , and otherwise; put , and . Let be the coefficient function as an vector if square summable, and the zero vector otherwise. For and , set
A resolution of a kernel means , with nonnegative summable weights totaling , unit vectors at positive weights, and orthogonality for distinct positive-weight vectors; zero-weight vectors are unrestricted. An effect is a bounded complex-linear operator with and . Let be the real infimum over resolutions and effects of , with empty defining set assigned infimum . The assertion is that when , and otherwise, for every ; that the kernel products commute, meaning
and that
There also exists an effect such that, for every vector and label , if , and otherwise, and such that
Finally, if and , then every with satisfies
The vector , hence , is included; all zeroth powers, including , equal . Infinite sums have value if not summable.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.