The setting
In stabilizer quantum error correction, an -qubit stabilizer code is defined by a commuting family of -qubit Pauli operators. Modulo overall phases, each such operator is a tensor product of single-qubit Pauli operators , and commutation between pairs of strings governs both the stabilizer group and the logical operators. Representing -qubit Pauli strings modulo phase as binary vectors over the two-element field translates operator commutation into the vanishing of a bilinear symplectic form on .
Pauli strings
Let denote the imaginary unit, and index the rows and columns of complex matrices by . The Pauli matrices are given by (1): (1) A single-qubit Pauli operator is an element of the four-element set .โฆ With denoting the identity matrix, the single-qubit Pauli matrix map is defined by (2): (2)โฆ
For a nonnegative integer , an -qubit Pauli string is a tuple of single-qubit Pauli operators indexed by .โฆ The set of all -qubit Pauli strings is denoted . The Pauli string matrix of is the complex matrix indexed by binary strings with entries given by (3): (3)โฆ Two -qubit Pauli strings commute if the number of positions at which , , and is even, as written in (4): (4)โฆ
The binary symplectic representation
The Pauli -bit and Pauli -bit are the maps defined by (5): (5) For a nonnegative integer , the space of binary symplectic vectors is , whose elements are written with .โฆ The symplectic representation assigns to each the binary symplectic vector given by (6) for : (6)โฆ The symplectic form is defined for and in by (7): (7)โฆ
The claim
Theorem. Let be a nonnegative integer. The symplectic representation is a bijection, (8)โฆ For any two -qubit Pauli strings , the condition that and commute is equivalent to commutation of their matrices, (9)โฆ and to the vanishing of the symplectic form on their images under , (10)โฆ
What is checked
In the Lean library, the theorem states the bijection (8) and the commutation equivalences (9) and (10) for every nonnegative integer over the single-qubit Pauli operators , their complex matrices and , the set of -qubit Pauli strings with their matrices and parity-based commutation relation, and the binary symplectic space equipped with the symplectic representation and symplectic form .