Measurement of finite-dimensional quantum states #
A pure state of a finite-dimensional quantum system with computational basis ι is a unit vector
of the Euclidean space ℂ^ι, with basis states |x⟩ (Cslib.Quantum.ket). Measuring a unit
state ψ in the computational basis gives outcome y with probability |ψ_y|²
(Cslib.Quantum.measure); the probability of an outcome in a set S is
∑_{y ∈ S} |ψ_y|² (Cslib.Quantum.measureProb) Arora, Barak, Chapter 10.
Both quantum models of the library measure through this API: the circuit model on
ι = Fin n → Bool (CslibFrontier/Computability/Circuit/Quantum/Basic.lean), and the query model,
whose register probability Cslib.Quantum.regProb is measureProb of the outcomes with a given
query index (CslibFrontier/Computability/QueryComplexity/Quantum/Search.lean).
Main definitions #
Cslib.Quantum.ket: the computational basis state|x⟩.Cslib.Quantum.measureProb: the probability of measuring an outcome in a set.Cslib.Quantum.measure: the outcome distribution of measuring a unit state.
Main results #
Cslib.Quantum.measureProb_univ: the outcome probabilities sum to‖ψ‖².Cslib.Quantum.measureProb_compl: the outcomes outside a set have the remaining probability.Cslib.Quantum.measureProb_ket: a basis state is measured with certainty.Cslib.Quantum.measureProb_map_sum_orthonormal: measuring an isometric image of a superposition of orthonormal states each measured inSwith probability0or1.Cslib.Quantum.measure_toOuterMeasure_apply: the measurement probabilities aremeasureProb.
References #
The computational basis state |x⟩.
The probability ∑_{y ∈ S} |ψ_y|² that measuring ψ in the computational basis gives an
outcome in S.
The outcome probabilities of a state sum to its squared norm.
Measuring a basis state |x⟩ gives outcome x with certainty.
The outcomes outside S have the remaining probability.
Outcome probabilities scale with the squared modulus of a scalar.
A state is the sum of the basis states weighted by its amplitudes.
A state measured in S with probability zero has no amplitude in S.
A unit state measured in S with certainty has no amplitude outside S.
Measuring an isometric image of a superposition of orthonormal states, each measured in S
with probability 0 or 1: the probability of S is the total squared weight of the states
measured in S with certainty, as the images of the others have no amplitude in S.
Measurement in the computational basis: a unit state ψ gives outcome y with
probability |ψ_y|².
The measurement gives an outcome in S with probability measureProb ψ S.