Pauli matrices #
The pauli matrices are defined ultimately through
pauliMatrixwhich is a mapFin 1 ⊕ Fin 3 → Matrix (Fin 2) (Fin 2) ℂ. The notationσcan be used as short hand.
A tensorial structure is put on Fin 1 ⊕ Fin 3 → Matrix (Fin 2) (Fin 2) ℂ to allow the
use of index notation.
The Pauli matrices.
Equations
- PauliMatrix.pauliMatrix (Sum.inl 0) = 1
- PauliMatrix.pauliMatrix (Sum.inr 0) = !![0, 1; 1, 0]
- PauliMatrix.pauliMatrix (Sum.inr 1) = !![0, -Complex.I; Complex.I, 0]
- PauliMatrix.pauliMatrix (Sum.inr 2) = !![1, 0; 0, -1]
Instances For
The Pauli matrices.
Equations
- PauliMatrix.termσ = Lean.ParserDescr.node `PauliMatrix.termσ 1024 (Lean.ParserDescr.symbol "σ")
Instances For
The 'Pauli matrix' corresponding to the identity 1.
Equations
- PauliMatrix.termσ0 = Lean.ParserDescr.node `PauliMatrix.termσ0 1024 (Lean.ParserDescr.symbol "σ0")
Instances For
The Pauli matrix corresponding to the matrix !![0, 1; 1, 0].
Equations
- PauliMatrix.termσ1 = Lean.ParserDescr.node `PauliMatrix.termσ1 1024 (Lean.ParserDescr.symbol "σ1")
Instances For
The Pauli matrix corresponding to the matrix !![0, -I; I, 0].
Equations
- PauliMatrix.termσ2 = Lean.ParserDescr.node `PauliMatrix.termσ2 1024 (Lean.ParserDescr.symbol "σ2")
Instances For
The Pauli matrix corresponding to the matrix !![1, 0; 0, -1].
Equations
- PauliMatrix.termσ3 = Lean.ParserDescr.node `PauliMatrix.termσ3 1024 (Lean.ParserDescr.symbol "σ3")
Instances For
Matrix relations #
Inversions #
Lemmas related to the inversions of the Pauli matrices.
Equations
- PauliMatrix.pauliMatrixInvertiable μ = { invOf := PauliMatrix.pauliMatrix μ, invOf_mul_self := ⋯, mul_invOf_self := ⋯ }
Products #
These lemmas try to put the terms in numerical order.
We skip σ0 since it's just 1 anyway.
Traces #
The trace of σ0 multiplied by σ0 is equal to 2.
The trace of σ0 multiplied by σ1 is equal to 0.
The trace of σ0 multiplied by σ2 is equal to 0.
The trace of σ0 multiplied by σ3 is equal to 0.
The trace of σ1 multiplied by σ0 is equal to 0.
The trace of σ1 multiplied by σ1 is equal to 2.
The trace of σ1 multiplied by σ2 is equal to 0.
The trace of σ1 multiplied by σ3 is equal to 0.
The trace of σ2 multiplied by σ0 is equal to 0.
The trace of σ2 multiplied by σ1 is equal to 0.
The trace of σ2 multiplied by σ2 is equal to 2.
The trace of σ2 multiplied by σ3 is equal to 0.
The trace of σ3 multiplied by σ0 is equal to 0.
The trace of σ3 multiplied by σ1 is equal to 0.
The trace of σ3 multiplied by σ2 is equal to 0.
The trace of σ3 multiplied by σ3 is equal to 2.
Commutation relations #
Lemmas related to the commutation relations of the Pauli matrices.
Pauli matrices satisfy {σᵢ, σⱼ} = 2 δᵢⱼ I.
The matrix a · σ associated to a real three-vector a.
Equations
- PauliMatrix.vectorMatrix a = ∑ i : Fin 3, ↑(a i) • PauliMatrix.pauliMatrix (Sum.inr i)
Instances For
The anticommutator of two Pauli vectors is twice their Euclidean dot product times the identity.
The commutator of two Pauli vectors is twice i times the Pauli vector
associated to their cross product.
Product formula for Pauli vectors:
(a · σ)(b · σ) = (a · b) I + i (a × b) · σ.
The square of a · σ is |a|² I.