Documentation

CslibFrontier.Foundations.Quantum.Measurement.Restrict

Restricting a state to a set of outcomes #

The restriction Cslib.Quantum.restrictOutcomes S keeps the amplitudes of a state on the outcomes in S. It is a linear map whose squared norm is the probability of measuring an outcome in S (Cslib.Quantum.norm_restrictOutcomes_sq), so a measurement probability is a quadratic form ‖R ψ‖² with R linear. The inner product of two restrictions is the overlap of the states on S (Cslib.Quantum.inner_restrictOutcomes).

The projection Cslib.Quantum.projOutcomes p instead stays in the same space: it keeps the amplitudes on the outcomes satisfying p and zeroes the others. A state is the sum of its projections on p and on ¬p (Cslib.Quantum.projOutcomes_add_projOutcomes_not).

Main definitions #

Main results #

The restriction to the outcomes in S: the vector of amplitudes of a state on S.

@[simp]
theorem Cslib.Quantum.restrictOutcomes_apply {ι : Type u_1} (S : Finset ι) (ψ : EuclideanSpace ℂ ι) (y : ↥S) :
((restrictOutcomes S) ψ).ofLp y = ψ.ofLp ↑y

The squared norm of the restriction to S is the probability of an outcome in S.

theorem Cslib.Quantum.inner_restrictOutcomes {ι : Type u_1} (S : Finset ι) (φ ψ : EuclideanSpace ℂ ι) :
inner ℂ ((restrictOutcomes S) φ) ((restrictOutcomes S) ψ) = ∑ y ∈ S, star (φ.ofLp y) * ψ.ofLp y

The inner product of two restrictions to S is the overlap of the states on S.

The projection onto the outcomes satisfying p: it keeps the amplitudes on those outcomes and zeroes the others.

@[simp]
theorem Cslib.Quantum.projOutcomes_apply {ι : Type u_1} (p : ι → Prop) [DecidablePred p] (ψ : EuclideanSpace ℂ ι) (y : ι) :
((projOutcomes p) ψ).ofLp y = if p y then ψ.ofLp y else 0
theorem Cslib.Quantum.projOutcomes_add_projOutcomes_not {ι : Type u_1} (p : ι → Prop) [DecidablePred p] (ψ : EuclideanSpace ℂ ι) :
(projOutcomes p) ψ + (projOutcomes fun (y : ι) => ¬p y) ψ = ψ

A state is the sum of its projections onto the outcomes satisfying p and the others.

theorem Cslib.Quantum.projOutcomes_projOutcomes {ι : Type u_1} (p q : ι → Prop) [DecidablePred p] [DecidablePred q] (ψ : EuclideanSpace ℂ ι) :
(projOutcomes p) ((projOutcomes q) ψ) = (projOutcomes fun (y : ι) => p y ∧ q y) ψ

Projecting twice projects onto the outcomes satisfying both predicates.

The squared norm of projOutcomes p ψ is the probability of outcomes satisfying p.

theorem Cslib.Quantum.norm_projOutcomes_sq_mem {ι : Type u_1} [Fintype ι] [DecidableEq ι] (S : Finset ι) (ψ : EuclideanSpace ℂ ι) :
‖(projOutcomes fun (x : ι) => x ∈ S) ψ‖ ^ 2 = measureProb ψ S

The squared norm of projOutcomes (· ∈ S) ψ is measureProb ψ S.

theorem Cslib.Quantum.inner_projOutcomes_eq_zero {ι : Type u_1} [Fintype ι] (p q : ι → Prop) [DecidablePred p] [DecidablePred q] (hpq : ∀ (y : ι), ¬(p y ∧ q y)) (φ ψ : EuclideanSpace ℂ ι) :
inner ℂ ((projOutcomes p) φ) ((projOutcomes q) ψ) = 0

Projections onto disjoint outcome predicates are orthogonal.