Documentation

CslibFrontier.Foundations.Quantum.Measurement.Readout

Multi-outcome classical readouts of computational-basis measurements #

Measuring a unit quantum state ψ : EuclideanSpace ℂ ι in the computational basis and applying a classical readout map out : ι → β yields a probability mass function Cslib.Quantum.measureOut over arbitrary outcome values β (such as ℝ or an ordered alphabet α).

Main definitions #

Main results #

noncomputable def Cslib.Quantum.measureOut {ι : Type u_1} {β : Type u_2} [Fintype ι] (ψ : EuclideanSpace ℂ ι) (hψ : ‖ψ‖ = 1) (out : ι → β) :
PMF β

Measuring a unit state ψ in the computational basis and decoding outcomes through out : ι → β.

@[simp]
theorem Cslib.Quantum.measureOut_ket {ι : Type u_1} {β : Type u_2} [Fintype ι] [DecidableEq ι] (x : ι) (out : ι → β) :
measureOut (ket x) ⋯ out = PMF.pure (out x)

Reading a computational basis state returns its classical readout with certainty.

theorem Cslib.Quantum.measureOut_map {ι : Type u_1} {β : Type u_2} {γ : Type u_3} [Fintype ι] (ψ : EuclideanSpace ℂ ι) (hψ : ‖ψ‖ = 1) (out : ι → β) (f : β → γ) :
PMF.map f (measureOut ψ hψ out) = measureOut ψ hψ (f ∘ out)

Applying a deterministic postprocessing map after measurement is the same as composing it with the classical readout.

@[simp]
theorem Cslib.Quantum.measureOut_apply {ι : Type u_1} {β : Type u_2} [Fintype ι] (ψ : EuclideanSpace ℂ ι) (hψ : ‖ψ‖ = 1) (out : ι → β) (b : β) :
(measureOut ψ hψ out) b = ∑ a : ι, if b = out a then (measure ψ hψ) a else 0

Probability mass of an outcome value b under measureOut.

theorem Cslib.Quantum.measureOut_toOuterMeasure_apply {ι : Type u_1} {β : Type u_2} [Fintype ι] (ψ : EuclideanSpace ℂ ι) (hψ : ‖ψ‖ = 1) (out : ι → β) (P : β → Prop) [DecidablePred P] :
(measureOut ψ hψ out).toOuterMeasure {b : β | P b} = ENNReal.ofReal (measureProb ψ {y : ι | P (out y)})

The probability that measureOut lands in {b | P b} equals measureProb of the preimage subset {y | P (out y)}.

theorem Cslib.Quantum.measureOut_eq_ofReal_measureProb {ι : Type u_1} {β : Type u_2} [Fintype ι] [DecidableEq β] (ψ : EuclideanSpace ℂ ι) (hψ : ‖ψ‖ = 1) (out : ι → β) (b : β) :
(measureOut ψ hψ out) b = ENNReal.ofReal (measureProb ψ {a : ι | out a = b})

Point mass of measureOut at b : β equals ENNReal.ofReal of measureProb on the preimage fiber {a | out a = b}.