The Pauli operators and their ๐ฝโ-symplectic algebra (GK-1) #
Category: 1-Mathlib (CSD-free).
The n-qubit Pauli operators X^a Z^b (a b : Fin n โ Fin 2) as concrete coordinate
operators on the register, with the algebra that makes the stabiliser formalism tick
(plan specs/gottesman-knill-plan.md, brick GK-1):
- โ
The group law (
pauliOp_mul):X^a Z^b ยท X^{a'} Z^{b'} = (โ1)^{bยทa'} X^{a+a'} Z^{b+b'}โ the Pauli family is closed under composition, with the phase governed by the๐ฝโpairing. - โ
Commutation is the symplectic form (
pauliOp_comm/pauliOp_comm_of_symp): the composition mismatch is exactlyฯ(aยทb' + bยทa'), so two Paulis commute iff the symplectic form of their labels vanishes in๐ฝโ. - Character orthogonality (
sum_pauliSign):โ_z (โ1)^{bยทz} = 2โฟยท[b = 0], hence โ every non-identity Pauli is traceless (pauliOp_trace) โ the seed of the stabiliser-state uniqueness argument (tr(2โปโฟ โ_{sโS} s) = 1, GK-3, not attempted here). - Unitarity in the coordinate sense (
inner_pauliOp): Paulis preserve the inner product.
Design note: every sign is signChar of an ๐ฝโ-valued form (bdot), never an โ parity โ
so sign bookkeeping reduces to Fin 2 identities in finitely many generalized atoms, closed
by decide. Fin 2 carries the ZMod 2 ring structure (Fin.instCommRing), so ring is
available for the form algebra; the one genuinely characteristic-2 fact, v + v = 0, is
fin2_add_self.
The sign character and the ๐ฝโ pairing #
The sign character on ๐ฝโ: ฯ(0) = 1, ฯ(1) = โ1.
Instances For
The characteristic-2 fact: every bit is its own inverse.
The Pauli sign (โ1)^{bยทz} as ฯ(bยทz).
Equations
Instances For
The Pauli operators #
The Pauli operator X^a Z^b on the register: coordinate
(X^a Z^b ฯ)(z) = (โ1)^{bยท(z+a)} ฯ(z+a) โ bit-flip by a, phase by b.
Equations
- QuantumInfo.pauliOp a b ฯ = (WithLp.equiv 2 ((Fin n โ Fin 2) โ โ)).symm fun (z : Fin n โ Fin 2) => QuantumInfo.pauliSign b (z + a) * ฯ.ofLp (z + a)
Instances For
The Pauli action on a basis state: X^a Z^b |wโฉ = (โ1)^{bยทw} |w + aโฉ.
โ
The Pauli group law: X^a Z^b ยท X^{a'} Z^{b'} = (โ1)^{bยทa'} ยท X^{a+a'} Z^{b+b'}.
The family is closed under composition; the phase is the ๐ฝโ pairing bยทa'.
โ
Commutation is the symplectic form: the composition mismatch between
X^a Z^b ยท X^{a'} Z^{b'} and its reverse is exactly ฯ(aยทb' + bยทa') โ the two Paulis
commute iff the ๐ฝโ symplectic form of their labels vanishes.
Character orthogonality and tracelessness #
โ
Non-identity Paulis are traceless: the diagonal sum of X^a Z^b over the
computational basis is 2โฟ at the identity label and 0 otherwise. This is the seed of the
stabiliser-projector trace argument (GK-3 in the plan).