Tests for finite-dimensional quantum mechanics #
A concrete system for the definitions of Lightlike/QM/Basic.lean: a qubit ℂ² with the Pauli
matrix Z.
pauliZ:Z = diag(1, −1)is an observable (self-adjoint), so the hypotheses of the general theorems are satisfiable.expectation_pauliZ_zero: in the state|0⟩the Born rule gives the expectation value1(Σ_μ μ · P(μ) = ⟨0|Z|0⟩ = 1).norm_evolve_pauliZ: the evolution underZkeeps the norm of|0⟩.sum_bornProb_unnormalised(wrong input): for the unnormalised vector2|0⟩the "Born probabilities" add up to4, not1. The Born rule needs unit vectors (State).
@[reducible, inline]
The qubit.
Equations
Instances For
The Pauli matrix Z = diag(1, −1).
Equations
- Lightlike.QM.Test.pauliZMat = !![1, 0; 0, -1]
Instances For
Z is an observable on the qubit.
Equations
Instances For
The basis state |0⟩.