Documentation

Lightlike.Tests.QM

Tests for finite-dimensional quantum mechanics #

A concrete system for the definitions of Lightlike/QM/Basic.lean: a qubit ℂ² with the Pauli matrix Z.

@[reducible, inline]

The qubit.

Equations
Instances For

    The Pauli matrix Z = diag(1, −1).

    Equations
    Instances For
      noncomputable def Lightlike.QM.Test.ket0 :

      The basis state |0⟩.

      Equations
      Instances For

        The Born rule on a qubit: in |0⟩ the expectation value of Z is 1.

        The evolution under Z keeps the norm of |0⟩ (non-vacuity of norm_evolve).

        Wrong input: for the unnormalised vector 2|0⟩ the Born probabilities add up to 4, not 1, so the Born rule is stated for unit vectors only.