Finite-dimensional quantum mechanics #
Setting: a finite-dimensional complex Hilbert space H
([InnerProductSpace ℂ H] [FiniteDimensional ℂ H]; completeness is automatic).
- States are unit vectors (
ψ ∈ Metric.sphere 0 1). - Observables are self-adjoint operators: Mathlib's
selfAdjoint (H →L[ℂ] H)(IsSelfAdjoint A ↔ A† = A). - Time evolution generated by a Hamiltonian
HmisU(t) = exp(-i t Hm), built with Mathlib'sselfAdjoint.expUnitary, soU(t)lies in the unitary group by construction. - Born rule: for an observable
Awith eigenvaluesμand eigenspacesE_μ, the probability of outcomeμin stateψis‖P_μ ψ‖²whereP_μis the orthogonal projection ontoE_μ. This is basis-independent (it does not depend on choosing eigenvectors in degenerate eigenspaces).
Main results
evolve_zero,evolve_add-U(0) = 1,U(s+t) = U(s)U(t)(one-parameter group).norm_evolve,inner_evolve-U(t)preserves norms and inner products.schrodinger-ψ(t) = U(t)ψsatisfiesdψ/dt = -i Hm ψ(t)(Schrödinger equation).bornProb_nonneg,sum_bornProb- Born probabilities are≥ 0and sum to‖ψ‖² = 1.bornPMF- the Born rule as aPMF(Mathlib's probability mass function) on the eigenvalues.expectation_eq_sum-⟨ψ, Aψ⟩ = Σ_μ μ · P(μ).bornProb_eigenstate- in an eigenstate with eigenvalueμ, outcomeμhas probability 1.bornProb_evolve_of_commute- if[A, Hm] = 0then Born probabilities forAare conserved in time.
References. M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information (Cambridge University Press, 2000), ch. 2 (the postulates of quantum mechanics); B. C. Hall, Quantum Theory for Mathematicians (Springer, 2013).
An observable: a self-adjoint (bounded) operator on H.
Equations
- Lightlike.QM.Observable H = selfAdjoint (H →L[ℂ] H)
Instances For
A pure state: a unit vector.
Equations
- Lightlike.QM.State H = Metric.sphere 0 1
Instances For
Unitary time evolution #
The self-adjoint operator -t · Hm (built directly on the subtype to avoid an expensive
Module ℝ (selfAdjoint _) instance search).
Instances For
Time evolution U(t) = exp(-i t Hm) generated by a Hamiltonian Hm, as an element of the
unitary group of H →L[ℂ] H (Mathlib's selfAdjoint.expUnitary a = exp(i a) with a = -t Hm).
Equations
Instances For
U(s + t) = U(s) U(t): time evolution is a one-parameter group.
Unitary evolution preserves the norm (total probability).
Unitary evolution preserves inner products (transition amplitudes).
States evolve into states.
Equations
- Lightlike.QM.State.evolve Hm t ψ = ⟨↑(Lightlike.QM.evolve Hm t) ↑ψ, ⋯⟩
Instances For
U(t) = exp(t • X) with X = -i Hm (real scalar t).
Schrödinger equation. ψ(t) = U(t) ψ₀ satisfies ψ'(t) = -i Hm ψ(t), i.e.
i dψ/dt = Hm ψ.
The Born rule #
The linear map underlying an observable, as an endomorphism.
Equations
- Lightlike.QM.toEnd A = ↑↑A
Instances For
Possible measurement outcomes of A: its eigenvalues (a finite type).
Equations
Instances For
Measurement outcomes are real numbers (eigenvalues of self-adjoint operators are real).
Orthogonal projection onto the eigenspace E_μ of A.
Equations
- Lightlike.QM.proj A μ = ((Lightlike.QM.toEnd A).eigenspace (↑(Lightlike.QM.toEnd A) 1 μ)).orthogonalProjectionOnto
Instances For
Born probability of outcome μ when measuring A in state ψ: ‖P_μ ψ‖².
Equations
- Lightlike.QM.bornProb A ψ μ = ‖(Lightlike.QM.proj A μ) ψ‖ ^ 2
Instances For
The spectral-theorem isometry H ≃ ⊕_μ E_μ (Mathlib's diagonalization) sends ψ to the
family of its eigenspace projections.
Parseval for the eigenspace decomposition: Σ_μ ‖P_μ ψ‖² = ‖ψ‖².
Born probabilities sum to one in any (unit-norm) state.
The Born rule as a probability distribution on the outcomes (eigenvalues) of A.
Equations
- Lightlike.QM.bornPMF A ψ = PMF.ofFintype (fun (μ : Lightlike.QM.Outcome A) => ENNReal.ofReal (Lightlike.QM.bornProb A (↑ψ) μ)) ⋯
Instances For
The Born distribution assigns to each outcome its Born probability bornProb A ψ μ.
Expectation value ⟨ψ, A ψ⟩ = Σ_μ μ · P(μ).
In an eigenstate with eigenvalue μ, the outcome μ is certain.
Conservation law. If the observable A commutes with the Hamiltonian, the Born
distribution of A does not change under time evolution.