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 #
Cslib.Quantum.restrictOutcomes: the amplitudes on a set of outcomes.Cslib.Quantum.projOutcomes: the projection onto the outcomes satisfying a predicate.
Main results #
Cslib.Quantum.norm_restrictOutcomes_sq:‖R_S ψ‖² = measureProb ψ S.Cslib.Quantum.inner_restrictOutcomes:⟪R_S φ, R_S ψ⟫ = ∑_{y ∈ S} conj(φ_y) ψ_y.Cslib.Quantum.projOutcomes_add_projOutcomes_not:P_p ψ + P_{¬p} ψ = ψ.Cslib.Quantum.norm_projOutcomes_sq,Cslib.Quantum.norm_projOutcomes_sq_mem: squared norm ofprojOutcomesasmeasureProb.Cslib.Quantum.inner_projOutcomes_eq_zero: orthogonality ofprojOutcomesfor disjoint predicates.
The restriction to the outcomes in S: the vector of amplitudes of a state on S.
The squared norm of the restriction to S is the probability of an outcome in S.
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.
A state is the sum of its projections onto the outcomes satisfying p and the others.
Projecting twice projects onto the outcomes satisfying both predicates.
The squared norm of projOutcomes p ψ is the probability of outcomes satisfying p.
The squared norm of projOutcomes (· ∈ S) ψ is measureProb ψ S.
Projections onto disjoint outcome predicates are orthogonal.