The Pauli matrices X and Z #
The single-qubit Pauli matrices X = [[0, 1], [1, 0]] (the bit flip, Cslib.Quantum.pauliX) and
Z = [[1, 0], [0, -1]] (the phase flip, Cslib.Quantum.pauliZ), indexed by one bit Bool as the
Hadamard matrix Cslib.Quantum.Gate.hadamardMatrix is, de Wolf, Appendix A.9. They
are Hermitian, square to the identity and anticommute, so they are unitary; their action on a
vector is (X v)_b = v_{¬b} and (Z v)_b = (-1)^b v_b.
Teleportation and superdense coding apply them as Bob's correction and as Alice's encoding
(CslibFrontier/Computability/Circuit/Quantum/Teleportation.lean,
CslibFrontier/Computability/Circuit/Quantum/SuperdenseCoding.lean).
Main definitions #
Cslib.Quantum.pauliX: the Pauli matrixX.Cslib.Quantum.pauliZ: the Pauli matrixZ.
Main results #
Cslib.Quantum.pauliX_mem_unitaryGroup,Cslib.Quantum.pauliZ_mem_unitaryGroup: they are unitary.Cslib.Quantum.pauliX_mul_self,Cslib.Quantum.pauliZ_mul_self: they square to the identity.Cslib.Quantum.pauliZ_mul_pauliX: they anticommute,ZX = -XZ.Cslib.Quantum.pauliX_mulVec,Cslib.Quantum.pauliZ_mulVec: their action on a vector.