Documentation

CslibFrontier.Foundations.Quantum.POVM.Density

POVM readout of density matrices #

For the existing POVM M and density matrix ρ, outcome a has probability Re (Tr (M.effect a * ρ)), the mixed-state POVM rule of de Wolf, §15.1, p. 128. The trace pairing is real and nonnegative for positive matrices; trace one makes the probabilities a PMF. The construction uses the existing state and measurement types and agrees with POVM.measure on pure states. It describes the classical outcome distribution, without specifying a post-measurement state or an instrument.

Main definitions #

Main results #

References #

noncomputable def Cslib.Quantum.POVM.densityProb {A : Type u_1} {ι : Type u_2} [Fintype A] [Fintype ι] [DecidableEq ι] (M : POVM A ι) (ρ : Matrix ι ι ℂ) (a : A) :

The probability Re (Tr (E_a ρ)) of outcome a. For an unnormalized positive matrix, these weights sum to its trace.

theorem Cslib.Quantum.POVM.densityProb_nonneg {A : Type u_1} {ι : Type u_2} [Fintype A] [Fintype ι] [DecidableEq ι] (M : POVM A ι) {ρ : Matrix ι ι ℂ} (hρ : ρ.PosSemidef) (a : A) :
0 ≤ M.densityProb ρ a

A positive matrix assigns nonnegative weight to every POVM outcome.

theorem Cslib.Quantum.POVM.sum_densityProb {A : Type u_1} {ι : Type u_2} [Fintype A] [Fintype ι] [DecidableEq ι] (M : POVM A ι) (ρ : Matrix ι ι ℂ) :
∑ a : A, M.densityProb ρ a = ρ.trace.re

The outcome weights sum to the real part of the trace, hence to one for a density matrix.

theorem Cslib.Quantum.POVM.abs_sqrt_densityProb_sub_le {α : Type u_3} {ι : Type u_4} {κ : Type u_5} [Fintype α] [Fintype ι] [Fintype κ] [DecidableEq κ] (M : POVM α κ) (a : α) {ρ : Matrix ι ι ℂ} (hρ : ρ.PosSemidef) (U V : Matrix κ ι ℂ) :
|√(M.densityProb ((densityConj U) ρ) a) - √(M.densityProb ((densityConj V) ρ) a)| ≤ √((densityConj (U - V)) ρ).trace.re

For any two linear maps applied to the same positive input, the square roots of the weights of any final measurement outcome differ by at most the input-weighted norm of the difference of the maps. The input may be mixed or subnormalized.

theorem Cslib.Quantum.POVM.densityProb_comap {A : Type u_1} {ι : Type u_2} [Fintype A] [Fintype ι] [DecidableEq ι] {U : Matrix ι ι ℂ} (hU : U ∈ Matrix.unitaryGroup ι ℂ) (M : POVM A ι) (ρ : Matrix ι ι ℂ) (a : A) :
(M.comap U hU).densityProb ρ a = M.densityProb ((densityConj U) ρ) a

Pulling back a measurement by a unitary gives the Born weights of the evolved input.

theorem Cslib.Quantum.POVM.densityProb_add {A : Type u_1} {ι : Type u_2} [Fintype A] [Fintype ι] [DecidableEq ι] (M : POVM A ι) (ρ σ : Matrix ι ι ℂ) (a : A) :
M.densityProb (ρ + σ) a = M.densityProb ρ a + M.densityProb σ a

POVM probabilities are additive in the state matrix.

theorem Cslib.Quantum.POVM.densityProb_smul {A : Type u_1} {ι : Type u_2} [Fintype A] [Fintype ι] [DecidableEq ι] (M : POVM A ι) (c : ℝ) (ρ : Matrix ι ι ℂ) (a : A) :
M.densityProb (c • ρ) a = c * M.densityProb ρ a

Scaling a state matrix by a real weight scales each outcome weight.

noncomputable def Cslib.Quantum.POVM.measureDensity {A : Type u_1} {ι : Type u_2} [Fintype A] [Fintype ι] [DecidableEq ι] (M : POVM A ι) (ρ : Matrix ι ι ℂ) (hρ : IsDensityMatrix ρ) :
PMF A

The outcome distribution of a POVM applied to a density matrix.

@[simp]
theorem Cslib.Quantum.POVM.measureDensity_apply {A : Type u_1} {ι : Type u_2} [Fintype A] [Fintype ι] [DecidableEq ι] (M : POVM A ι) (ρ : Matrix ι ι ℂ) (hρ : IsDensityMatrix ρ) (a : A) :
@[simp]
theorem Cslib.Quantum.POVM.measureDensity_const {A : Type u_1} {ι : Type u_2} [Fintype A] [Fintype ι] [DecidableEq ι] [DecidableEq A] (a : A) (ρ : Matrix ι ι ℂ) (hρ : IsDensityMatrix ρ) :

A fixed-outcome POVM returns that outcome on every density matrix.

@[simp]
theorem Cslib.Quantum.POVM.densityProb_pureState {A : Type u_1} {ι : Type u_2} [Fintype A] [Fintype ι] [DecidableEq ι] (M : POVM A ι) (ψ : EuclideanSpace ℂ ι) (a : A) :
M.densityProb (pureState ψ) a = M.prob ψ a

The trace pairing with a pure-state projector equals the vector-state probability.

@[simp]
theorem Cslib.Quantum.POVM.measureDensity_pureState {A : Type u_1} {ι : Type u_2} [Fintype A] [Fintype ι] [DecidableEq ι] (M : POVM A ι) (ψ : EuclideanSpace ℂ ι) (hψ : ‖ψ‖ = 1) :
M.measureDensity (pureState ψ) ⋯ = M.measure ψ hψ

Density-matrix readout agrees with vector readout on every normalized pure state.

theorem Cslib.Quantum.POVM.densityProb_basis {ι : Type u_2} [Fintype ι] [DecidableEq ι] (ρ : Matrix ι ι ℂ) (i : ι) :
basis.densityProb ρ i = (ρ i i).re

Computational-basis measurement reads the diagonal entries of the density matrix.