Documentation

CslibFrontier.Foundations.Quantum.POVM.Mixture

Measuring finite mixtures #

A finite PMF-weighted sum of density matrices is a density matrix. Measuring that sum agrees with first sampling the classical index and then measuring its state. These are original bridges between the existing density-matrix and PMF representations, with no new mixture or state type.

Main results #

theorem Cslib.Quantum.isDensityMatrix_pmf_sum {ι : Type u_1} {A : Type u_2} [Fintype ι] [Fintype A] (p : PMF A) (ρ : A → Matrix ι ι ℂ) (hρ : ∀ (a : A), IsDensityMatrix (ρ a)) :
IsDensityMatrix (∑ a : A, (p a).toReal • ρ a)

A finite probabilistic mixture of density matrices is again a density matrix.

theorem Cslib.Quantum.POVM.densityProb_sum {ι : Type u_1} {A : Type u_2} {B : Type u_3} [Fintype ι] [DecidableEq ι] [Fintype B] (M : POVM B ι) (s : Finset A) (ρ : A → Matrix ι ι ℂ) (b : B) :
M.densityProb (∑ a ∈ s, ρ a) b = ∑ a ∈ s, M.densityProb (ρ a) b

The density probability is additive over finite sums, without normalization assumptions.

theorem Cslib.Quantum.POVM.measureDensity_pmf_sum {ι : Type u_1} {A : Type u_2} {B : Type u_3} [Fintype ι] [Fintype A] [DecidableEq ι] [Fintype B] (M : POVM B ι) (p : PMF A) (ρ : A → Matrix ι ι ℂ) (hρ : ∀ (a : A), IsDensityMatrix (ρ a)) :
M.measureDensity (∑ a : A, (p a).toReal • ρ a) ⋯ = p.bind fun (a : A) => M.measureDensity (ρ a) ⋯

Measuring a finite mixture agrees with sampling its classical index and measuring once.

noncomputable def Cslib.Quantum.POVM.mixture {ι : Type u_1} {A : Type u_2} {B : Type u_3} [Fintype ι] [Fintype A] [DecidableEq ι] [Fintype B] (p : PMF A) (M : A → POVM B ι) :
POVM B ι

Randomly select a measurement using an independent finite classical draw.

theorem Cslib.Quantum.POVM.measureDensity_mixture {ι : Type u_1} {A : Type u_2} {B : Type u_3} [Fintype ι] [Fintype A] [DecidableEq ι] [Fintype B] (p : PMF A) (M : A → POVM B ι) (ρ : Matrix ι ι ℂ) (hρ : IsDensityMatrix ρ) :
(mixture p M).measureDensity ρ hρ = p.bind fun (a : A) => (M a).measureDensity ρ hρ

The randomized measurement produces the exact law of the two-stage experiment.

theorem Cslib.Quantum.POVM.mixture_effect {ι : Type u_1} {A : Type u_2} {B : Type u_3} [Fintype ι] [Fintype A] [DecidableEq ι] [Fintype B] (p : PMF A) (M : A → POVM B ι) (b : B) :
(mixture p M).effect b = ∑ a : A, (p a).toReal • (M a).effect b

The effect of a randomized measurement is the probability-weighted sum of effects.

theorem Cslib.Quantum.POVM.smul_effect_le_mixture {ι : Type u_1} {A : Type u_2} {B : Type u_3} [Fintype ι] [Fintype A] [DecidableEq ι] [Fintype B] (p : PMF A) (M : A → POVM B ι) (a : A) (b : B) :
(p a).toReal • (M a).effect b ≤ (mixture p M).effect b

Each weighted branch effect lies below the effect of the mixture in Loewner order.

theorem Cslib.Quantum.POVM.measure_mixture {ι : Type u_1} {A : Type u_2} {B : Type u_3} [Fintype ι] [Fintype A] [DecidableEq ι] [Fintype B] (p : PMF A) (M : A → POVM B ι) (ψ : EuclideanSpace ℂ ι) (hψ : ‖ψ‖ = 1) :
(mixture p M).measure ψ hψ = p.bind fun (a : A) => (M a).measure ψ hψ

Choosing a measurement at random and measuring a unit vector agrees with the two-stage classical experiment.

theorem Cslib.Quantum.POVM.mixture_bind {ι : Type u_1} {A : Type u_2} {B : Type u_3} [Fintype ι] [Fintype A] [DecidableEq ι] [Fintype B] {Z : Type u_4} [Fintype Z] (r : PMF Z) (p : Z → PMF A) (M : A → POVM B ι) :
mixture (r.bind p) M = mixture r fun (z : Z) => mixture (p z) M

A two-stage draw of a measurement can be averaged in either order.

theorem Cslib.Quantum.POVM.mixture_coin_bind_effect {ι : Type u_1} {A : Type u_2} {B : Type u_3} [Fintype ι] [Fintype A] [DecidableEq ι] [Fintype B] (η : ↑unitInterval) (p₀ p₁ : PMF A) (M : A → POVM B ι) (b : B) :
(mixture ((Probability.PMF.coin η).bind fun (erase : Bool) => if erase = true then p₀ else p₁) M).effect b = ↑η • (mixture p₀ M).effect b + (1 - ↑η) • (mixture p₁ M).effect b

A coin-controlled mixture of two question laws gives the corresponding convex combination of the two averaged effects.

theorem Cslib.Quantum.POVM.kronecker_mixture {ι : Type u_1} {A : Type u_2} {B : Type u_3} [Fintype ι] [Fintype A] [DecidableEq ι] [Fintype B] {C : Type u_4} {D : Type u_5} {κ : Type u_6} [Fintype C] [Fintype D] [Fintype κ] [DecidableEq κ] (p : PMF A) (q : PMF C) (M : A → POVM B ι) (N : C → POVM D κ) :
(mixture p M).kronecker (mixture q N) = mixture (p.bind fun (a : A) => PMF.map (fun (x : C) => (a, x)) q) fun (x : A × C) => match x with | (a, c) => (M a).kronecker (N c)

Independent choices of local measurements give the mixture of their product POVMs.