Pratik Patil

FidelityExamplesBinary.lean

1module23public import SubentropyCertificates.FidelityExamples4import all SubentropyCertificates.HelstromSpectral56/-! For two labels Qiu's trace-norm expression is exactly the Helstrom error,7also for mixed signals, unequal priors, and vanishing priors. -/8@[expose] public section9noncomputable section10set_option autoImplicit false11open Matrix Set12open scoped BigOperators ComplexOrder MatrixOrder13namespace SubentropyCertificates.Fidelity14open D5.S3.Quantum.Foundation.FiniteStateChannel15open D5.S3.Quantum.Subentropy.GuessingProbability16open SubentropyCertificates.Helstrom17variable {D : Type*} [Fintype D] [DecidableEq D]1819theorem hermitian_trace_norm (H : Matrix D D ℂ) (hH : H.IsHermitian) :20    (CFC.abs H).trace.re = ∑ j, |hH.eigenvalues j| := by21  rw [CFC.abs_eq_cfc_norm H hH, hH.cfc_eq]22  exact spectral_trace hH.eigenvectorUnitary (fun j ↦ |hH.eigenvalues j|)2324theorem qiu_binary_exact {p : ℝ} (hp : p ∈ Icc 0 1) (ρ : Fin 2 → DensityState D) :25    (1-(CFC.abs (difference p ρ)).trace.re)/2 = 1-pGuess (binaryPrior p) ρ := by26  rw [hermitian_trace_norm _ (difference_hermitian hp ρ), (binary_helstrom hp ρ).1]27  ring2829end SubentropyCertificates.Fidelity

Axioms used

Choose a statement to see which axioms its proof uses.