Documentation

CslibFrontier.Foundations.Quantum.Algebra.MeasurementMixture

Classical mixtures of algebraic measurements #

An independent classical draw chooses a measurement. Its effect at each outcome is the average of that outcome's effects.

theorem Cslib.Quantum.AlgState.re_apply_uniformAverage {ι : Type u_1} {A : Type u_2} [Fintype ι] [CStarAlgebra A] [PartialOrder A] (φ : AlgState A) (f : ι → A) :
(φ ((↑(Fintype.card ι))⁻¹ • ∑ x : ι, f x)).re = Finset.univ.expect fun (x : ι) => (φ (f x)).re

Evaluating a uniform average of operators gives the average of their state expectations.

noncomputable def Cslib.Quantum.Measurement.mixture {ι : Type u_1} {α : Type u_2} {A : Type u_3} [Fintype ι] [Fintype α] [Ring A] [PartialOrder A] [IsOrderedAddMonoid A] [Module ℝ A] [PosSMulMono ℝ A] (p : PMF ι) (M : ι → Measurement α A) :

Randomly choose a measurement according to a finite probability mass function.

theorem Cslib.Quantum.Measurement.mixture_effect {ι : Type u_1} {α : Type u_2} {A : Type u_3} [Fintype ι] [Fintype α] [Ring A] [PartialOrder A] [IsOrderedAddMonoid A] [Module ℝ A] [PosSMulMono ℝ A] (p : PMF ι) (M : ι → Measurement α A) (a : α) :
(mixture p M).effect a = ∑ i : ι, (p i).toReal • (M i).effect a
theorem Cslib.Quantum.Measurement.mixture_uniform_effect {ι : Type u_1} {α : Type u_2} {A : Type u_3} [Fintype ι] [Fintype α] [Ring A] [PartialOrder A] [IsOrderedAddMonoid A] [Module ℝ A] [PosSMulMono ℝ A] [Nonempty ι] (M : ι → Measurement α A) (a : α) :

Mixing uniformly gives the ordinary finite average of each effect.

theorem Cslib.Quantum.Measurement.map_mixture {ι : Type u_1} {α : Type u_2} {A : Type u_3} [Fintype ι] [Fintype α] [Ring A] [PartialOrder A] [IsOrderedAddMonoid A] [Module ℝ A] [PosSMulMono ℝ A] {β : Type u_4} [Fintype β] [DecidableEq β] (p : PMF ι) (M : ι → Measurement α A) (f : α → β) :
map f (mixture p M) = mixture p fun (i : ι) => map f (M i)

Classical mixing commutes with postprocessing measurement outcomes.