Documentation

CslibFrontier.Foundations.Quantum.Algebra.SuccessfulAgreement

Agreement on successful measurement outcomes #

One side may return a field value or a failure outcome. The comparison charges disagreements on successful outcomes. Replacing a measurement on the other side changes the disagreement by at most the square root of the summed squared state distances.

noncomputable def Cslib.Quantum.Measurement.successfulMismatch {A : Type u_1} {α : Type u_2} [Fintype α] [Ring A] [PartialOrder A] [Algebra ℂ A] (φ : AlgState A) (P : Measurement (Option α) A) (Q : Measurement α A) :

The state pairing of successful effects with the opposing disagreement effects. For commuting measurements this is the probability of differing answers with a successful first outcome.

theorem Cslib.Quantum.Measurement.successfulMismatch_map_map {A : Type u_1} {α : Type u_2} [Fintype α] [Ring A] [PartialOrder A] [Algebra ℂ A] {β : Type u_3} {γ : Type u_4} [Fintype β] [Fintype γ] [DecidableEq α] [IsOrderedAddMonoid A] (φ : AlgState A) (P : Measurement β A) (Q : Measurement γ A) (f : β → Option α) (g : γ → α) :
successfulMismatch φ (map f P) (map g Q) = ∑ b : β, ∑ c : γ, if ∃ (a : α), f b = some a ∧ a ≠ g c then (φ (P.effect b * Q.effect c)).re else 0

For postprocessed measurements, the mismatch is the sum of the original joint weights whose decoded outcomes disagree and whose first outcome decodes successfully.

theorem Cslib.Quantum.Measurement.successfulMismatch_mixture_left {A : Type u_1} {α : Type u_2} [Fintype α] [Ring A] [PartialOrder A] [Algebra ℂ A] {ι : Type u_3} [Fintype ι] [IsOrderedAddMonoid A] [PosSMulMono ℝ A] (φ : AlgState A) (p : PMF ι) (M : ι → Measurement (Option α) A) (Q : Measurement α A) :
successfulMismatch φ (mixture p M) Q = ∑ i : ι, (p i).toReal * successfulMismatch φ (M i) Q

The successful mismatch averages over a classical choice of the first measurement.

theorem Cslib.Quantum.Measurement.map_getD_effect {A : Type u_1} {α : Type u_2} [Fintype α] [Ring A] [PartialOrder A] [DecidableEq α] [IsOrderedAddMonoid A] (P : Measurement (Option α) A) (fallback a : α) :
(map (fun (x : Option α) => x.getD fallback) P).effect a = (if fallback = a then P.effect none else 0) + P.effect (some a)

Completing an optional measurement with a fallback adds the failure effect to the fallback outcome's successful effect.

theorem Cslib.Quantum.Measurement.one_sub_agreement_map_getD_le {A : Type u_1} {α : Type u_2} [Fintype α] [Ring A] [PartialOrder A] [Algebra ℂ A] [DecidableEq α] [IsOrderedAddMonoid A] [StarRing A] [StarOrderedRing A] [TopologicalSpace A] [ContinuousFunctionalCalculus ℝ A IsSelfAdjoint] [NonnegSpectrumClass ℝ A] (φ : AlgState A) (P : Measurement (Option α) A) (Q : Measurement α A) (fallback : α) (hc : Commute (P.effect none) (Q.effect fallback)) :
1 - agreement φ (map (fun (a : Option α) => a.getD fallback) P) Q ≤ successfulMismatch φ P Q + (φ (P.effect none)).re

Replacing failure with a fixed outcome adds at most the original failure mass to the disagreement probability.

Replacing the second measurement increases disagreement on successful outcomes by at most its state distance from the original measurement.