Documentation

Lightlike.QM.Basic

Finite-dimensional quantum mechanics #

Setting: a finite-dimensional complex Hilbert space H ([InnerProductSpace ℂ H] [FiniteDimensional ℂ H]; completeness is automatic).

Main results

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).

@[reducible, inline]

An observable: a self-adjoint (bounded) operator on H.

Equations
Instances For
    @[reducible, inline]

    A pure state: a unit vector.

    Equations
    Instances For

      Unitary time evolution #

      The self-adjoint operator -t · Hm (built directly on the subtype to avoid an expensive Module ℝ (selfAdjoint _) instance search).

      Equations
      Instances For
        noncomputable def Lightlike.QM.evolve {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] (Hm : ↥(Observable H)) (t : ℝ) :
        ↥(unitary (H →L[ℂ] H))

        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
          theorem Lightlike.QM.evolve_add {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] (Hm : ↥(Observable H)) (s t : ℝ) :
          evolve Hm (s + t) = evolve Hm s * evolve Hm t

          U(s + t) = U(s) U(t): time evolution is a one-parameter group.

          theorem Lightlike.QM.norm_evolve {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] (Hm : ↥(Observable H)) (t : ℝ) (ψ : H) :
          ‖↑(evolve Hm t) ψ‖ = ‖ψ‖

          Unitary evolution preserves the norm (total probability).

          theorem Lightlike.QM.inner_evolve {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] (Hm : ↥(Observable H)) (t : ℝ) (φ ψ : H) :
          inner ℂ (↑(evolve Hm t) φ) (↑(evolve Hm t) ψ) = inner ℂ φ ψ

          Unitary evolution preserves inner products (transition amplitudes).

          noncomputable def Lightlike.QM.State.evolve {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] (Hm : ↥(Observable H)) (t : ℝ) (ψ : ↑(State H)) :
          ↑(State H)

          States evolve into states.

          Equations
          Instances For

            U(t) = exp(t • X) with X = -i Hm (real scalar t).

            theorem Lightlike.QM.schrodinger {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] (Hm : ↥(Observable H)) (ψ₀ : H) (t : ℝ) :
            HasDerivAt (fun (s : ℝ) => ↑(evolve Hm s) ψ₀) (-Complex.I • ↑Hm (↑(evolve Hm t) ψ₀)) t

            Schrödinger equation. ψ(t) = U(t) ψ₀ satisfies ψ'(t) = -i Hm ψ(t), i.e. i dψ/dt = Hm ψ.

            The Born rule #

            @[reducible, inline]

            The linear map underlying an observable, as an endomorphism.

            Equations
            Instances For
              @[reducible, inline]

              Possible measurement outcomes of A: its eigenvalues (a finite type).

              Equations
              Instances For
                theorem Lightlike.QM.outcome_im_eq_zero {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] (A : ↥(Observable H)) (μ : Outcome A) :
                (↑(toEnd A) 1 μ).im = 0

                Measurement outcomes are real numbers (eigenvalues of self-adjoint operators are real).

                noncomputable def Lightlike.QM.proj {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] (A : ↥(Observable H)) (μ : Outcome A) :
                H →L[ℂ] ↥((toEnd A).eigenspace (↑(toEnd A) 1 μ))

                Orthogonal projection onto the eigenspace E_μ of A.

                Equations
                Instances For
                  noncomputable def Lightlike.QM.bornProb {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] (A : ↥(Observable H)) (ψ : H) (μ : Outcome A) :

                  Born probability of outcome μ when measuring A in state ψ: ‖P_μ ψ‖².

                  Equations
                  Instances For
                    theorem Lightlike.QM.diagonalization_apply {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] (A : ↥(Observable H)) (ψ : H) (μ : Outcome A) :
                    (⋯.diagonalization ψ).ofLp μ = (proj A μ) ψ

                    The spectral-theorem isometry H ≃ ⊕_μ E_μ (Mathlib's diagonalization) sends ψ to the family of its eigenspace projections.

                    theorem Lightlike.QM.sum_bornProb_eq_norm_sq {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] (A : ↥(Observable H)) (ψ : H) :
                    ∑ μ : Outcome A, bornProb A ψ μ = ‖ψ‖ ^ 2

                    Parseval for the eigenspace decomposition: Σ_μ ‖P_μ ψ‖² = ‖ψ‖².

                    theorem Lightlike.QM.sum_bornProb {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] (A : ↥(Observable H)) (ψ : ↑(State H)) :
                    ∑ μ : Outcome A, bornProb A (↑ψ) μ = 1

                    Born probabilities sum to one in any (unit-norm) state.

                    noncomputable def Lightlike.QM.bornPMF {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] (A : ↥(Observable H)) (ψ : ↑(State H)) :

                    The Born rule as a probability distribution on the outcomes (eigenvalues) of A.

                    Equations
                    Instances For
                      theorem Lightlike.QM.bornPMF_apply {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] (A : ↥(Observable H)) (ψ : ↑(State H)) (μ : Outcome A) :
                      ((bornPMF A ψ) μ).toReal = bornProb A (↑ψ) μ

                      The Born distribution assigns to each outcome its Born probability bornProb A ψ μ.

                      theorem Lightlike.QM.expectation_eq_sum {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] (A : ↥(Observable H)) (ψ : H) :
                      inner ℂ ψ (↑A ψ) = ∑ μ : Outcome A, ↑(toEnd A) 1 μ * ↑(bornProb A ψ μ)

                      Expectation value ⟨ψ, A ψ⟩ = Σ_μ μ · P(μ).

                      theorem Lightlike.QM.bornProb_eigenstate {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] (A : ↥(Observable H)) (ψ : ↑(State H)) (μ : Outcome A) (hψ : ↑A ↑ψ = ↑(toEnd A) 1 μ • ↑ψ) :
                      bornProb A (↑ψ) μ = 1

                      In an eigenstate with eigenvalue μ, the outcome μ is certain.

                      theorem Lightlike.QM.bornProb_evolve_of_commute {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] (A Hm : ↥(Observable H)) (hc : Commute ↑A ↑Hm) (t : ℝ) (ψ : H) (μ : Outcome A) :
                      bornProb A (↑(evolve Hm t) ψ) μ = bornProb A ψ μ

                      Conservation law. If the observable A commutes with the Hamiltonian, the Born distribution of A does not change under time evolution.