Learning goals. After this module you should be able to

  • multiply Pauli strings, keeping track of the phase;
  • decide in your head whether two Pauli strings commute, by counting clashes;
  • state what a stabilizer group is and explain why it must be abelian and must not contain ;
  • test whether a list of Pauli strings is a valid, independent generating set;
  • prove that independent generators on qubits fix a space of dimension ;
  • write down the stabilizer groups of Bell, GHZ and cluster states, with the correct signs.

In Module 1 every code was described by a handful of parity checks such as or , and every code state was a eigenvector of all of them. This module turns that observation into the central idea of the course: describe a quantum state (or a whole code) by the group of Pauli operators that leave it unchanged. A list of Pauli strings replaces a vector of complex amplitudes.

1. Single-qubit Paulis

The Pauli matrices are

They are Hermitian and unitary, each squares to , and the three non-identity ones pairwise anticommute. Their products follow a cyclic rule, like the quaternions:

In particular and . These two identities are where every sign in this course comes from. Each Pauli has eigenvalues ; the six eigenstates are

Pauli eigenstate eigenstate

These six states sit at the six ends of the coordinate axes of the Bloch sphere; they are the single-qubit stabilizer states. For example is the unique state (up to phase) with , so "" is a complete description of it.

2. The -qubit Pauli group

Definition 2.1 (Pauli group).

The -qubit Pauli group consists of all operators

We write such an operator as a phase times a Pauli string, e.g. or . The weight is the number of tensor factors that are not , and the support is the set of those qubits.

Some facts that follow immediately:

  • is closed under multiplication, because single-qubit products only produce phases in . Products are computed qubit by qubit, collecting phases:
  • There are strings and phases, so (we checked and for by enumerating matrices).
  • If we ignore phases, multiplying Pauli strings is just adding “which Pauli is on each qubit” modulo the rules , , and so on. Module 4 makes this precise: Pauli strings modulo phase are vectors , and multiplication is vector addition.

A word on conventions: some textbooks (notably Preskill’s notes) use the real matrix in place of . That changes the signs of products such as . We always use the Hermitian above.

3. Commute or anticommute

Because single-qubit Paulis either commute (if equal or one of them is ) or anticommute (if different and both non-identity), two Pauli strings can be compared position by position.

Proposition 2.1 (Commutation by clash counting).

Any two elements either commute () or anticommute (). Call position a clash if and are both non-identity and different. Then

P Q X Z Z Z Y X I X Z I clash same clash has I has I 2 clashes commute
Figure 2.1. Clash counting for P = XZYIZ and Q = ZZXXI. Only columns where both entries are non-identity and different (highlighted) contribute a sign. Two clashes contribute two minus signs, which cancel, so PQ = QP.

A few drills, all of which we verified against explicit matrices:

clashesrelation
2commute
0commute
1anticommute
2commute
3anticommute

Two useful consequences:

  • Every element squares to . , which is for and for . Hermitian elements are exactly those with real phase.
  • Exactly half of all Pauli strings commute with a fixed non-identity string . (Pick a position where . Of the four choices at position , two commute with (namely and ) and two anticommute. So whatever the other positions are, exactly two of the four choices at position make the total clash count even.) We will use this “each independent constraint halves” idea again below.

4. Stabilizers

Definition 2.2 (Stabilizer group).

A Pauli operator stabilizes a state if . A stabilizer group is a subgroup such that

  1. is abelian (all elements commute), and
  2. .

Its stabilized space (or codespace) is .

Why exactly these two conditions? They are what is needed for to be non-zero.

Lemma 2.1 (Both conditions are necessary).

If a set of Pauli operators has a common eigenvector , then the group it generates is abelian, does not contain , and all its elements are Hermitian with square .

Conversely, any abelian with fixes a non-zero space; Section 6 computes its dimension. A practical consequence of the lemma: a list of Pauli strings is a valid set of stabilizers only if every pair commutes and no product of them equals . Squaring to is not enough.

proposed generatorsverdictreason
validcommute (2 clashes)
validdisjoint supports
validcommute (0 clashes)
invalidanticommute
invalidanticommute (clash on qubit 2)
invalidproduct is
invalid
valid (but redundant) is already in the group

The last two rows show how much the signs matter. They are not decoration; they are part of the state.

5. Generators and independence

A stabilizer group can be large, so we describe it by generators: means every element is a product of the . Since the commute and square to , every element has the form

Definition 2.3 (Independent generators).

Generators are independent if no is a product of the others (equivalently, the products above are all distinct). Then .

Independence is decided ignoring signs: once , a product of generators equals another generator only if it equals that generator. In Module 4 independence becomes linear independence of binary vectors over , checked by Gaussian elimination. Two examples:

  • , , are not independent: . They generate a group of order , not , and listing adds no constraint.
  • , , are independent (no product of two equals the third), so they generate elements.

6. How big is the stabilized space?

This is the most important counting fact in the course.

Theorem 2.1 (Dimension of the stabilized space).

Let be a stabilizer group with independent generators. The projector onto its stabilized space is

and .

A more geometric way to see the same thing: each new independent generator cuts the remaining space exactly in half. Inside the joint eigenspace of there is a Pauli that commutes with those generators but anticommutes with , and maps the eigenspace of onto the eigenspace, so the two halves have the same dimension. For two qubits:

all of C^4 dim 4 span{|00>, |11>} dim 2 |Phi+> dim 1 ZZ = +1 XX = +1 flip: XI flip: ZI
Figure 2.2. Each independent generator halves the space. The bottom labels name a Pauli that anticommutes with the new generator but commutes with the earlier ones; it swaps the +1 and -1 halves, so they have equal size.

Equation is worth remembering in both forms: the product form is how you measure (one generator at a time), the average form is how you prove things.

7. Stabilizer states

When the stabilized space is one-dimensional: the group pins down a single state up to a global phase.

Definition 2.4 (Stabilizer state).

A stabilizer state on qubits is a state that is the unique (up to phase) common eigenvector of a stabilizer group with independent generators, equivalently of Pauli operators.

The amplitudes of are replaced by signed Pauli strings, about bits. This compression is what makes stabilizer simulation fast (Module 5, Module 6).

Example 2.1 (Product states).

is stabilized by and , and . The state has . A product of single-qubit stabilizer states always has weight-one generators.

Example 2.2 (Bell states).

The Bell state is prepared by on qubit 1 followed by from qubit 1 to qubit 2. Both qubits agree in the basis () and in the basis (), so

using from Section 2. Neither qubit alone is a stabilizer state: there is no weight-one element, the hallmark of entanglement. The four Bell states are the four joint eigenstates of and , distinguished only by signs:

state

In each row the entry is minus the product of the other two, as requires.

Example 2.3 (GHZ state).

, prepared by on qubit 1 and CNOTs from qubit 1 to qubits 2 and 3, has

The two checks say “all three bits agree”, exactly the bit-flip code of Module 1; the extra generator fixes the relative sign between and . Stim’s Tableau.from_circuit(...).to_stabilizers() returns +XXX, +ZZ_, +Z_Z (Stim writes _ for and numbers qubits from ). This is a different list but the same group, since ; passing canonicalize=True gives the reduced form +XXX, +Z_Z, +_ZZ.

Example 2.4 (A cluster state).

Prepare and apply between qubits 1, 2 and between 2, 3. The result is stabilized by

one generator per qubit: on the qubit and on its neighbours in the line. (We confirmed this with Stim.) Cluster states on larger graphs follow the same rule and are the resource for measurement-based quantum computing.

How many stabilizer states are there? Aaronson and Gottesman count them exactly:

We confirmed these three values by brute force, enumerating all sets of independent commuting signed Pauli strings and counting distinct groups. grows like , tiny compared with the continuum of all states, which is one way to see why stabilizer states alone cannot give a quantum speed-up.

8. From states to codes

When the stabilized space has dimension , room for logical qubits. That space is a stabilizer code.

objectgenerators
110
220
330
bit-flip code321
422

Compare the GHZ state with the bit-flip code. Dropping the generator frees one logical qubit, spanned by and , and itself becomes an operator that acts inside the code (it swaps the two codewords). Operators that commute with the stabilizer group but are not in it are the logical operators of Module 3. For a stabilizer state there are none: the Paulis commuting with both and are , all already in up to sign.

Summary

  • has elements; products are computed qubit by qubit with , .
  • Two Paulis commute iff they clash at an even number of positions (Proposition 2.1).
  • A stabilizer group is abelian and excludes (Definition 2.2, Lemma 2.1); its elements are Hermitian and square to .
  • independent generators fix a space of dimension with projector (Theorem 2.1).
  • gives a stabilizer state (Bell, GHZ, cluster); gives a code with logical qubits.

Homework practice: Pauli arithmetic (Problem 2.1), clash counting (Problem 2.2), valid generating sets (Problem 2.3), stabilizer groups of named states (Problem 2.4), the dimension formula (Problem 2.5), counting single-qubit stabilizer states (Problem 2.6), and a Pauli-multiplication routine checked against Stim (Problem 2.7). The definitions Definition 2.1, Definition 2.3 and Definition 2.4, and the examples Example 2.1, Example 2.2, Example 2.3 and Example 2.4, are reused in later modules.

Further reading

  • D. Gottesman, Stabilizer Codes and Quantum Error Correction, PhD thesis, Caltech (1997), arXiv:quant-ph/9705052, Chapter 3.
  • S. Aaronson and D. Gottesman, “Improved simulation of stabilizer circuits”, Phys. Rev. A 70, 052328 (2004), arXiv:quant-ph/0406196, Section II-III (equivalent characterizations of stabilizer states and their count).
  • J. Preskill, Lecture Notes for Physics 219, Chapter 7, Section 7.9 (note the real- convention).
  • P. Faist, Quantum Error Correction lecture notes, Section 4.2 (halving lemma).
  • M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, Section 10.5.1.

Homework

Homework 2: Pauli Group and Stabilizer States