Documentation

CslibFrontier.Foundations.Quantum.POVM

Positive-operator-valued measurements #

A POVM with outcomes A on a finite-dimensional system with basis ι is a family of positive semidefinite matrices E_a summing to the identity (Cslib.Quantum.POVM). Measuring a unit state ψ gives outcome a with probability ⟨ψ|E_a|ψ⟩ (Cslib.Quantum.POVM.prob, Cslib.Quantum.POVM.measure) Cleve, Høyer, Toner, Watrous, §2. The computational-basis measurement Cslib.Quantum.measure is the POVM of the rank-one projections |x⟩⟨x| (Cslib.Quantum.POVM.measure_basis).

Two parties measuring the halves of a bipartite state ψ ∈ ℂ^ι ⊗ ℂ^κ with POVMs M and N jointly perform the Kronecker product POVM E_a ⊗ F_b (Cslib.Quantum.POVM.kronecker).

A ±1 observable is a Hermitian matrix O with O² = 1. It is the projective measurement with outcome false on the +1 eigenspace and true on the -1 eigenspace, with effects (1 ± O)/2 (Cslib.Quantum.POVM.ofObservable, Cslib.Quantum.POVM.ofObservable_effect), the convention 0 ↦ +1, 1 ↦ -1 of Cleve, Høyer, Toner, Watrous, §2. Conversely, every two-outcome POVM M has the observable E_false - E_true (Cslib.Quantum.POVM.observable), which is a contraction even when M is not projective (Cslib.Quantum.POVM.posSemidef_one_sub_observable_mul_self).

Main definitions #

Main results #

References #

structure Cslib.Quantum.POVM (A : Type u_6) (ι : Type u_7) [Fintype A] [Fintype ι] [DecidableEq ι] :
Type (max u_6 u_7)

A positive-operator-valued measurement (POVM) with outcomes A on the system ℂ^ι: positive semidefinite effects E_a summing to the identity Cleve, Høyer, Toner, Watrous, §2.

  • effect : A → Matrix ι ι ℂ

    The effect E_a of the outcome a.

  • posSemidef (a : A) : (self.effect a).PosSemidef

    Every effect is positive semidefinite.

  • sum_effect : ∑ a : A, self.effect a = 1

    The effects sum to the identity.

theorem Cslib.Quantum.POVM.ext {ι : Type u_1} {A : Type u_4} [Fintype A] [Fintype ι] [DecidableEq ι] {M N : POVM A ι} (h : ∀ (a : A), M.effect a = N.effect a) :
M = N
theorem Cslib.Quantum.POVM.ext_iff {ι : Type u_1} {A : Type u_4} [Fintype A] [Fintype ι] [DecidableEq ι] {M N : POVM A ι} :
M = N ↔ ∀ (a : A), M.effect a = N.effect a
noncomputable def Cslib.Quantum.POVM.prob {ι : Type u_1} {A : Type u_4} [Fintype A] [Fintype ι] [DecidableEq ι] (M : POVM A ι) (ψ : EuclideanSpace ℂ ι) (a : A) :

The probability ⟨ψ|E_a|ψ⟩ of the outcome a when measuring ψ with M.

theorem Cslib.Quantum.POVM.ofReal_prob {ι : Type u_1} {A : Type u_4} [Fintype A] [Fintype ι] [DecidableEq ι] (M : POVM A ι) (ψ : EuclideanSpace ℂ ι) (a : A) :
↑(M.prob ψ a) = star ψ.ofLp ⬝ᵥ (M.effect a).mulVec ψ.ofLp
theorem Cslib.Quantum.POVM.prob_nonneg {ι : Type u_1} {A : Type u_4} [Fintype A] [Fintype ι] [DecidableEq ι] (M : POVM A ι) (ψ : EuclideanSpace ℂ ι) (a : A) :
0 ≤ M.prob ψ a
theorem Cslib.Quantum.POVM.sum_prob {ι : Type u_1} {A : Type u_4} [Fintype A] [Fintype ι] [DecidableEq ι] (M : POVM A ι) (ψ : EuclideanSpace ℂ ι) :
∑ a : A, M.prob ψ a = ‖ψ‖ ^ 2

The outcome probabilities of a POVM sum to the squared norm of the state.

noncomputable def Cslib.Quantum.POVM.measure {ι : Type u_1} {A : Type u_4} [Fintype A] [Fintype ι] [DecidableEq ι] (M : POVM A ι) (ψ : EuclideanSpace ℂ ι) (hψ : ‖ψ‖ = 1) :
PMF A

The outcome distribution of measuring the unit state ψ with M.

@[simp]
theorem Cslib.Quantum.POVM.measure_apply {ι : Type u_1} {A : Type u_4} [Fintype A] [Fintype ι] [DecidableEq ι] (M : POVM A ι) (ψ : EuclideanSpace ℂ ι) (hψ : ‖ψ‖ = 1) (a : A) :
(M.measure ψ hψ) a = ENNReal.ofReal (M.prob ψ a)
noncomputable def Cslib.Quantum.POVM.const {ι : Type u_1} {A : Type u_4} [Fintype A] [Fintype ι] [DecidableEq ι] [DecidableEq A] (a : A) :
POVM A ι

The trivial measurement that always reports the outcome a.

theorem Cslib.Quantum.POVM.prob_const {ι : Type u_1} {A : Type u_4} [Fintype A] [Fintype ι] [DecidableEq ι] [DecidableEq A] (a : A) (ψ : EuclideanSpace ℂ ι) (a' : A) :
(const a).prob ψ a' = if a' = a then ‖ψ‖ ^ 2 else 0
noncomputable def Cslib.Quantum.POVM.basis {ι : Type u_1} [Fintype ι] [DecidableEq ι] :
POVM ι ι

The computational-basis measurement, with the rank-one projections |x⟩⟨x| as effects.

@[simp]
theorem Cslib.Quantum.POVM.basis_effect {ι : Type u_1} [Fintype ι] [DecidableEq ι] (x : ι) :

Each basis effect is the projector onto its basis vector.

theorem Cslib.Quantum.POVM.prob_basis {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ψ : EuclideanSpace ℂ ι) (x : ι) :
basis.prob ψ x = ‖ψ.ofLp x‖ ^ 2
theorem Cslib.Quantum.POVM.measure_basis {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ψ : EuclideanSpace ℂ ι) (hψ : ‖ψ‖ = 1) :

Measuring with the basis POVM is the computational-basis measurement.

noncomputable def Cslib.Quantum.POVM.kronecker {ι : Type u_1} {κ : Type u_2} {A : Type u_4} {B : Type u_5} [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (M : POVM A ι) (N : POVM B κ) :
POVM (A × B) (ι × κ)

The product POVM E_a ⊗ F_b on ℂ^ι ⊗ ℂ^κ: the first party measures the first factor with M and the second party measures the second factor with N.

noncomputable def Cslib.Quantum.POVM.reindex {ι : Type u_1} {ι' : Type u_3} {A : Type u_4} [Fintype A] [Fintype ι] [DecidableEq ι] [Fintype ι'] [DecidableEq ι'] (M : POVM A ι) (e : ι ≃ ι') :
POVM A ι'

Relabel the basis of the system along e : ι ≃ ι'.

noncomputable def Cslib.Quantum.POVM.comap {ι : Type u_1} {A : Type u_4} [Fintype A] [Fintype ι] [DecidableEq ι] (M : POVM A ι) (U : Matrix ι ι ℂ) (hU : U ∈ Matrix.unitaryGroup ι ℂ) :
POVM A ι

Measuring with M after applying the unitary U: the POVM with effects U† E_a U.

theorem Cslib.Quantum.POVM.prob_comap {ι : Type u_1} {A : Type u_4} [Fintype A] [Fintype ι] [DecidableEq ι] (M : POVM A ι) (U : Matrix ι ι ℂ) (hU : U ∈ Matrix.unitaryGroup ι ℂ) (ψ : EuclideanSpace ℂ ι) (a : A) :
(M.comap U hU).prob ψ a = M.prob (WithLp.toLp 2 (U.mulVec ψ.ofLp)) a

Measuring ψ with M.comap U is measuring Uψ with M.

noncomputable def Cslib.Quantum.POVM.ofObservable {ι : Type u_1} [Fintype ι] [DecidableEq ι] (O : Matrix ι ι ℂ) (hO : O.IsHermitian) (hO2 : O * O = 1) :

The two-outcome projective measurement of a ±1 observable O (Hermitian, O² = 1): the effects are (1 + O)/2 for false (eigenvalue +1) and (1 - O)/2 for true (eigenvalue -1) Cleve, Høyer, Toner, Watrous, §2.

noncomputable def Cslib.Quantum.POVM.observable {ι : Type u_1} [Fintype ι] [DecidableEq ι] (M : POVM Bool ι) :
Matrix ι ι ℂ

The observable E_false - E_true of a two-outcome POVM.

@[simp]
theorem Cslib.Quantum.POVM.ofObservable_effect {ι : Type u_1} [Fintype ι] [DecidableEq ι] (O : Matrix ι ι ℂ) (hO : O.IsHermitian) (hO2 : O * O = 1) (b : Bool) :
(ofObservable O hO hO2).effect b = bif b then 2⁻¹ • (1 - O) else 2⁻¹ • (1 + O)
theorem Cslib.Quantum.POVM.observable_ofObservable {ι : Type u_1} [Fintype ι] [DecidableEq ι] (O : Matrix ι ι ℂ) (hO : O.IsHermitian) (hO2 : O * O = 1) :

The observable O = E_false - E_true of any two-outcome POVM satisfies O² ≤ 1, because 1 - O² = 4 E (1 - E) for E = E_false.

theorem Cslib.Quantum.star_dotProduct_submatrix_mulVec {ι : Type u_1} {ι' : Type u_3} [Fintype ι] [Fintype ι'] (e : ι ≃ ι') (M : Matrix ι ι ℂ) (v : ι → ℂ) :
star (v ∘ ⇑e.symm) ⬝ᵥ (M.submatrix ⇑e.symm ⇑e.symm).mulVec (v ∘ ⇑e.symm) = star v ⬝ᵥ M.mulVec v

Relabelling the basis along e preserves expectations v† M v.