Binary phase representation of a Pauli string Created 2026-10-06 Updated 2026-10-14
Store a Pauli group element with binary exponents and a phase exponent modulo four. This ordered convention uses bits for qubits. Since , phase factors are essential when converting to Hermitian Pauli operators and evaluating measurement probabilities.
Modulo scalar phases, the n-qubit Pauli group is the additive space , with label for . Multiplication adds labels, and commutation contributes the sign . The displayed alternating form is nondegenerate. An isotropic subspace satisfies , hence ; it labels commuting stabilizers.
Clifford gate Created 2026-09-24 Updated 2026-10-03
A Clifford gate is a unitary operation that normalizes the Pauli group: conjugating any Pauli operator by it produces another Pauli operator. Hadamard, phase, and controlled- gates generate the Clifford operations.
The Pauli group includes scalar phases . For a nonzero stabilizer code, its Abelian subgroup must satisfy . Otherwise a common positive eigenvector would satisfy and vanish; for example is Abelian but yields no nonzero stabilizer code. We impose this standard admissibility condition.
Every element of such a stabilizer group is Hermitian and squares to : an imaginary-phase Pauli with square is excluded. The associated stabilizer code and its orthogonal projector are
The group multiplication proves , Hermiticity gives , and its range is exactly the common positive eigenspace. If has independent generators, . Every nonidentity element has trace zero, while , so
Thus it encodes logical qubits.
For the symplectic representation of a stabilizer code, label by , ignoring scalar phase. Products add labels, and
This is the nondegenerate alternating form on the binary symplectic space of Pauli labels. The image of is an r-dimensional isotropic subspace of a binary symplectic space, since the generators commute and no nontrivial scalar lies in . Consequently and . A binary generator matrix satisfies . Conversely an isotropic subspace can be lifted by choosing commuting Hermitian generators with independent labels; their products cannot equal , and the orthogonal projector formula supplies the stabilizer code. The labels of the centralizer of a stabilizer group are , with nontrivial logical actions represented by .
For an example, the three-qubit bit-flip repetition code has and . Its two binary rows have zero X part and Z parts . The errors have respective error syndromes , so all single bit flips can be corrected. This is not a stabilizer code correcting every single-qubit error: acts as a nontrivial logical phase error.
Let denote the Pauli centralizer. The exact Pauli error criterion for a stabilizer code is
Equivalently, no difference of error labels lies in . The scalar phases in are essential: an error product is harmless even though it is not in .
We prove the criterion. For outside , some anticommutes with . Since , we have , hence . If , then . If , it restricts to a unitary operator on the stabilizer code, but
no is scalar. A scalar restriction would have scalar coefficient zero by this trace equation, contradicting unitarity. Thus this third case is not scalar.
To justify why scalar compressions are exactly what correction requires, suppose one recovery corrects every . Dilate that recovery to an isometry including its auxiliary system. Correct recovery of every pure stabilizer code state gives . The auxiliary state is independent of : linearity on basis states and their superpositions forces their auxiliary vectors to coincide. Preservation of inner products then gives
which is the Knill--Laflamme condition . The three cases above prove necessity of the boxed criterion.
For sufficiency, put errors in the same class when . They act identically on the stabilizer code up to scalar phase, so give the same error-image subspace. Under the criterion, different classes give mutually orthogonal subspaces , because their cross-compressions vanish. Measure which of these subspaces is occupied and apply the inverse of a representative error. This returns every stabilizer code state unchanged; extend the recovery on the orthogonal complement by preparing any fixed stabilizer code state. Linearity also corrects any valid noise channel whose Kraus operators are linear combinations of the specified errors: within each syndrome all amplitudes multiply the same logical state, and trace preservation normalizes the recovered state. This proves sufficiency, including degenerate error classes.
The -qubit Pauli group is
A stabilizer group is an abelian subgroup of excluding . Its associated stabilizer code is the common positive eigenspace
The exclusion of is necessary for a nonzero code, since no nonzero vector has eigenvalue under .
Every is a signed Hermitian tensor product of Pauli matrices. An imaginary-phase Pauli element would have , contradicting closure of and exclusion of ; hence and . If , it cannot be a nontrivial scalar Pauli element, and at least one of its local factors is or . Each of these has trace zero. Using gives .
The spectral theorem for Hermitian operators and show that all eigenvalues are or . If their multiplicities are and , then
Thus the balanced spectrum of a nonidentity stabilizer is
This concerns a nonidentity stabilizer acting on the entire physical space; on the code every stabilizer acts with eigenvalue .
Because all elements commute and square to , is a vector space over under multiplication. Its independent stabilizer generators satisfy that no nonempty product is ; all products are distinct. The stabilizer-projector formula is
To verify it, group multiplication gives , Hermiticity gives , and for every . Conversely every code vector is fixed by this average, so its range is exactly . All nonidentity stabilizers have trace zero by the preceding proof. Therefore
For a code of dimension , the number of independent generators is consequently . One can list additional redundant generators, but an independent generating set has exactly this size.
For a correctable Pauli error , define the syndrome bit to be zero when commutes with and one when it anticommutes. On an encoded state,
Measure the commuting stabilizer generators; their eigenvalues reveal the error syndrome without revealing logical amplitudes. In a nondegenerate quantum code, the distinct specified correctable errors have orthogonal images of the code and distinct syndromes. A syndrome therefore identifies the error representative, and applying the inverse Pauli operator restores the encoded state.
If an actual error operator is a coherent linear combination of the specified errors, its state is a sum of these orthogonal syndrome components. Syndrome measurement selects one component, followed by the same inverse operation. The linearity of coherent quantum error correction ensures the logical state is recovered in every outcome. The same procedure handles noise Kraus operators in that error span; it does not require a probabilistic Pauli-noise assumption.
A Pauli error commuting with every stabilizer has the all-zero syndrome and preserves the code space. If it is a stabilizer up to global phase, this silent action is harmless. If it lies in the centralizer of a stabilizer group but is not a stabilizer up to phase, it acts as a nontrivial logical operator, and syndrome measurements cannot detect it. More generally, a non-scalar component of an error is an undetectable logical action. This distinguishes harmful undetected errors from scalar actions that satisfy quantum error detection algebraically.
The three-qubit bit-flip repetition code has basis and generators
A single phase flip commutes with both and has zero syndrome, but
It is a nontrivial logical phase operation. In particular, is not scalar, so the error set violates the Knill--Laflamme condition and cannot be corrected. Thus the code corrects single bit flips but not single phase flips; its distance against arbitrary quantum errors is one.
Write . Instead of storing the output vector, use Heisenberg propagation of a Pauli observable through a Clifford circuit:
Initialize the compact Pauli group representation at and conjugate successively by , in that order, using . This gives
with local-update work and storage. The resulting Pauli operator is Hermitian, so we can express it as , where and each is or . Any factors in the representation from part (i) are converted using , with their phases absorbed into .
The product state input now makes the expectation factorize:
Each factor is a two-by-two matrix calculation. More explicitly, for , the three nontrivial expectations are , , and for , respectively.
Thus this single-output process has a strong classical simulation in polynomial time, even when the individual input states are not stabilizer states. As usual, the given state identities must provide efficiently computable amplitudes. With finite-precision inputs, each factor can be evaluated to error and its approximation clipped to to obtain the final expectation to error at most , because all factors lie in . The required extra precision is only bits. Exact evaluation applies when the input descriptions support exact arithmetic. This avoids silently assigning a finite exact-computation cost to arbitrary unspecified real numbers.
Once the probabilities are known, a classical randomized computation can reproduce this measured bit. The argument concerns the specified one-qubit output; it does not assert that every joint measurement distribution for arbitrary product inputs can be simulated by this same single-observable calculation.
Store a tensor-product element of the Pauli group as
The phases of the original single-qubit factors can all be accumulated into . This binary phase representation of a Pauli string uses bits. It retains phases, which must not be dropped when computing probabilities later.
For the conjugation convention in the question, direct multiplication of the two-by-two matrices gives
and
These backward Pauli updates for Hadamard and phase gates use , not . On the affected line , the updates are
All phases are reduced modulo four and the updates use the old bits.
For a Controlled-Z gate on lines , its diagonal action gives
For the controlled-Z update in the binary phase representation, conjugation respects products, so these determine the rule for every Pauli operator on those lines. In the chosen ordered convention it is
The phase arises when a newly introduced is moved past . For instance becomes , so this sign matters.
The untouched factors are unchanged. Each Clifford operation therefore needs only a fixed number of local bit updates; reconstructing the requested full list takes time. Put the final phase into the first factor, which is permitted because the single-qubit Pauli group includes all multiples by . The classical cost is polynomial, despite the exponentially large matrix of the operation on the full state space.
Put and . The Pauli operators are Hermitian and satisfy and , so
Thus is a unitary operator. For every Pauli operator , according as commutes or anticommutes with and , expansion of gives one of or , up to the phase that makes it Hermitian. It is therefore another Pauli operator, so normalizes the Pauli group and is a Clifford operation. Finally,
which is the normalized projection onto the eigenvalue- eigenspace of . Hence maps the eigenvalue- eigenspace of onto the eigenvalue- eigenspace of .
Choose a Clifford operation with and absorb into the circuit. Push each subsequent Clifford gate forward through the computation. A computational-basis measurement made after a Clifford prefix becomes a Pauli measurement
on the initial state, because Clifford conjugation preserves the Pauli group. Adaptivity merely makes the next Pauli depend on earlier classical outcomes.
It remains to eliminate the stabilizer qubits. Maintain their current stabilizer group. For a Pauli to be measured, there are two cases.
  • If commutes with every stabilizer generator, its action on the one-dimensional stabilizer sector reduces to a Pauli operator on the remaining qubits, possibly with a known sign. Measure that effective Pauli on .
  • If anticommutes with some stabilizer , its outcome is uniformly random. Sample for an ordinary measurement, or set when the original measurement is postselected. The Clifford operator
maps the old stabilizer sector into the eigenspace of . Updating the Clifford frame by removes this measurement while conjugating every later Pauli to another Pauli.
Iterating this procedure leaves an adaptive Pauli-based computation on . The same classical outcomes determine every adaptive choice and final output, so this gives a weak classical simulation. Every postselected outcome becomes either a fixed classical branch or a postselected Pauli measurement, as required.
Every element of the -qubit Pauli group squares to either or . If a stabilizer generator had , closure of the group would put in , contrary to the definition. Thus . Since Pauli operators are unitary,
and proves .
If two stabilizers anticommute and a nonzero vector belonged to the codespace, then
a contradiction. Hence a nonzero stabilizer code requires to be Abelian. Its centralizer of a stabilizer group is
Suppose output qubit is measured. Its probability of outcome zero is
Because is a Clifford operation, the Pauli group is preserved under conjugation. Propagating backward through the gates therefore produces, including its sign, a tensor-product Pauli
The input is a product state, so the expectation factors:
Each one-qubit factor follows directly from the classical description of , and conjugating a Pauli through each Clifford gate takes constant classical work. Hence , and , are computable in polynomial time. This is Heisenberg propagation of a Pauli observable through a Clifford circuit.
Stabilizer code Created 2026-09-24 Updated 2026-10-14
A stabilizer code is the common eigenspace of a stabilizer group , an abelian subgroup of the Pauli group excluding . Choose independent stabilizer generators on physical qubits. They are commuting Hermitian operators, each squaring to . The stabilizer subspace and its orthogonal projector are
The stabilizer-projector formula gives , so logical qubits remain. Independent here means that no nonempty product of the chosen stabilizer generators is . Excluding is necessary: a vector cannot simultaneously be fixed by and unless it is zero.
For the three-qubit bit-flip repetition code, take and , with the Pauli Z gate on site and identities elsewhere. The stabilizer group is . Both stabilizer generators have eigenvalue exactly on the span of and , giving dimensions for one logical qubit. A projective measurement of these checks distinguishes four orthogonal two-dimensional sectors rather than eight individual computational basis states.
A Pauli error that anticommutes with a stabilizer generator changes that check's sign, producing an error syndrome. A Pauli operator commuting with every check can still act on the logical qubits; the centralizer of a stabilizer group describes these possibilities. Thus the number of checks determines the encoded dimension, while the quantum code distance determines protection against arbitrary local errors. The five-qubit error correcting code, for instance, has four stabilizer generators and quantum code distance three; the three-qubit bit-flip repetition code has two checks but quantum code distance one because a single phase flip is unflagged. [ref].
Stabilizer group 2026-09-28
A stabilizer group is an abelian subgroup of the Pauli group that does not contain . Its simultaneous positive eigenspace is its stabilizer subspace.