The setting
In quantum error correction, a stabilizer code on qubits protects logical quantum information inside the simultaneous eigenspace of a commuting family of Pauli operators. Cyclic stabilizer codes take all stabilizer generators to be cyclic shifts of a single base Pauli string around a ring of qubits, so the code structure is translation-invariant. On qubits, the cyclic shifts of the five-qubit Pauli string generate the five-qubit stabilizer code. The four properties characterizing this code are the -dimension of its stabilizer space, the complex dimension of its codespace, the transversality of its logical Pauli operators, and its exact code distance.
Pauli strings
A single-qubit Pauli operator modulo phase is one of the four symbols , , , or .✦ The Pauli matrices , , and are the complex matrices (1) The single-qubit Pauli matrix associated with a single-qubit Pauli operator sends to the identity matrix , to , to , and to .✦ Each single-qubit Pauli operator also carries a Pauli -bit , equal to on and and on and ✦, and a Pauli -bit , equal to on and and on and ✦.
For a natural number , an -qubit Pauli string modulo phase is a tuple assigning a single-qubit Pauli operator to each qubit site .✦ Its Pauli string matrix is the complex matrix on , indexed by computational basis bitstrings , with entries (2)✦ Two -qubit Pauli strings and commute if the number of sites satisfying , , and is even.✦ The weight of an -qubit Pauli string is the number of sites at which : (3)✦
The space of binary symplectic vectors on qubits is the -vector space of pairs with .✦ The symplectic representation of an -qubit Pauli string is the vector whose components at each site are and .✦
Given a sequence of -qubit Pauli strings and a natural number , the stabilizer codespace of the first strings in is the complex subspace of defined by (4)✦
Cyclic stabilizer codes
The cyclic shift operator maps an -qubit Pauli string to the -qubit Pauli string defined at each site by , shifting every single-qubit operator one site to the right around .✦ Given a base generator on qubits, the -th cyclic stabilizer generator for is , obtained by applying times to , and denotes the resulting sequence.✦ The cyclic stabilizer space is the -linear subspace of spanned by the symplectic vectors of the first cyclic shifts: (5)✦
An -qubit Pauli string is a logical Pauli operator for the cyclic code generated by if commutes with for every and .✦ Denote the set of all logical Pauli operators for by . The cyclic code generated by has code distance if there exists with and every satisfies , equivalently .✦
For any single-qubit Pauli operator , the constant Pauli string is the -qubit Pauli string assigning to every site .✦ For , define the five-qubit base generator (6)✦ written , and the five-qubit code distance ✦.
The claim
Theorem. For the five-qubit cyclic stabilizer code generated by , the cyclic stabilizer space has -dimension : (7)✦ The stabilizer codespace of the first four cyclic generators in has complex dimension : (8)✦ The constant five-qubit Pauli strings , , and are logical Pauli operators: (9)✦ The code has exact code distance : (10)✦
What is checked
In the Lean library, the theorem is stated for the five-qubit cyclic stabilizer code generated by under cyclic shifts of Pauli strings, with the cyclic stabilizer space formed inside , the stabilizer codespace defined as the simultaneous eigenspace of the first four Pauli string matrices on , the constant strings , , and checked for commutation with all five cyclic generators and non-membership in , and the code distance characterized as the minimum Pauli weight over .