After this module you can describe a stabilizer state by its check matrix, explain what Bell sampling and Bell difference sampling measure, prove that Montanaro’s algorithm learns an unknown -qubit stabilizer state exactly from copies, derive the acceptance probability of the six-copy stabilizer test and its soundness bound, and recover the closest stabilizer state to a state whose stabilizer fidelity exceeds .
Learning an arbitrary pure state on qubits to fixed accuracy takes a number of copies proportional to , even with entangled measurements (Module 5). The reason is that the family is too big: a pure state has real parameters, and every one of them can matter. To beat this bound we need a smaller family, and the most important small family in quantum information is the set of stabilizer states, the states that Clifford circuits prepare from . They include the Bell and GHZ states, graph states and the code states of stabilizer codes, they can be highly entangled, and yet they are described by about bits, since a stabilizer state is fixed by commuting Pauli operators (binary Pauli labels as in Module 3).
A finite family of about states needs at least of order copies to identify, because each copy carries at most bits. Montanaro (1) showed that order copies also suffice, and that the learner can be exact. The tool is Bell sampling: measure two copies in the basis of Bell pairs, one pair per qubit, and read off a Pauli label. On two copies of a stabilizer state, the label is a uniformly random element of the stabilizer group, shifted by a fixed unknown Pauli. A few differences of such labels span the whole group, and Gaussian elimination over does the rest.
Gross, Nezami and Walter (2) turned Bell sampling into a tool that works for every pure state, Bell difference sampling, and used it to test whether a state is a stabilizer state. The same primitive drives the recent algorithms for agnostic learning, where the state is only close to a stabilizer state and the learner must find the closest one (3,4). The classical shadows of Module 7 also use Clifford circuits, but as random measurements that work for every state; here the structure of the state is what saves copies. Our presentation follows Lectures 17 to 19 of Chen and Cotler (5).
Stabilizer states and check matrices
How do we write down a stabilizer state, and what object must a learner find?
We label Paulis by bit strings as in the notation page, , where the exponent (the number of factors) is computed over the integers. The phase makes a Hermitian tensor product of : on one qubit, gives . Two Paulis commute exactly when the symplectic product vanishes, and equals up to a phase in . For a subspace , its symplectic complement is
The symplectic form is nondegenerate, so .
Definition 9.1 (Lagrangian subspace).
A subspace is isotropic if for all , that is, if . It is Lagrangian if it is isotropic and , equivalently . Since , no isotropic subspace has dimension above .
Definition 9.2 (Stabilizer state and check matrix).
For a pure state on qubits let , the labels of the Paulis that fix up to sign. The state is a stabilizer state if ; equivalently, for a Clifford unitary (Section 10.5 of Nielsen and Chuang (6)). A check matrix of is an binary matrix whose rows form a basis of , together with the signs such that .
The check matrix and signs are the object a learner outputs: about bits. The next proposition shows that they determine the state, and that the Lagrangian subspace alone determines it up to a Pauli.
Proposition 9.3 (Structure of stabilizer states).
Let be a stabilizer state with .
is Lagrangian, and there are signs with for and
Conversely, for every Lagrangian , basis of and signs , exactly one state satisfies for all , and it is a stabilizer state.
for , and for .
If is a stabilizer state with , then for some .
Proof
1. If and fix up to sign, so does , which is a phase times ; since is Hermitian with eigenvalues , the phase is , so is a subspace. If anticommuted, then would force ; so is isotropic, and makes it Lagrangian. Take a basis with signs . The operators are commuting projectors that fix , and multiplying them out gives , where is the product of the with . Only has nonzero trace, so the product is a projector of trace one that fixes : it equals .
2. The same computation for any Lagrangian gives a rank-one projector , and its range is the unique state with the required signs. That state is fixed up to sign by the Paulis , , so it is a stabilizer state.
3. Multiply by and take the trace, using .
4. Let be the signs of . Both and multiply like , so satisfies : it is a linear functional on with values written as . Extend it to ; nondegeneracy of gives with . Now , so has the signs of , and part 2 gives .
Example 9.4 (A three-qubit stabilizer state).
The graph state of the path is fixed by , and . Apply to qubit 2, which flips the sign of , and then the phase gate to qubit 1, which maps and . The result has generators , , and check matrix
Isotropy is the matrix condition over . The eight elements of are , , , and the products , , , . Because of the , the amplitudes of are not all real, which matters in the next section.
The snippet builds as the product of the projectors and lists the Paulis with .
import itertoolsimport numpy as npX, Z = np.array([[0, 1], [1, 0]]), np.diag([1.0, -1.0])P1 = {"I": np.eye(2), "X": X, "Z": Z, "Y": 1j * X @ Z}def pauli(s): # "XZY" -> X (x) Z (x) Y out = np.ones((1, 1)) for c in s: out = np.kron(out, P1[c]) return outgens, signs = ["YZI", "ZXZ", "IZX"], [1, -1, 1]proj = np.eye(8)for g, s in zip(gens, signs): # product of (I + s P_g) / 2 proj = proj @ (np.eye(8) + s * pauli(g)) / 2w, V = np.linalg.eigh(proj)psi = V[:, -1] # the unique +1 eigenvectorlabels = ["".join(t) for t in itertools.product("IXYZ", repeat=3)]p = {s: abs(psi.conj() @ pauli(s) @ psi) ** 2 / 8 for s in labels}S = [s for s in labels if p[s] > 1e-9]print(round(np.trace(proj).real, 6), S) # 1.0 and the 8 elements of Sprint({float(round(p[s], 6)) for s in S}) # {0.125}
Remark 9.5 (How many stabilizer states there are).
There are stabilizer states on qubits (7): , and for . The logarithm of this number is . By Holevo’s bound, copies of an -qubit state carry at most bits, so any learner that identifies a random stabilizer state with constant probability needs copies; Problem 9.3 works out the constant.
The characteristic distribution and Bell sampling
What can a measurement on two copies reveal about a stabilizer group?
Definition 9.6 (Characteristic distribution).
The characteristic distribution of a pure state on qubits is
It is a probability distribution: by the Pauli expansion, for .
By Proposition 9.3, a stabilizer state has on and elsewhere: the characteristic distribution is uniform on the stabilizer group. Sampling from would therefore hand us random elements of . Bell sampling comes close to this.
On a pair of qubits, the Bell basis consists of the four states with and . Measuring in it takes a CNOT and a Hadamard (Figure 9.1). On pairs, one qubit from each of two -qubit registers, the basis is
with as in Definition 2.8.
These vectors are orthonormal, since .
copy 1, qubit jpsicopy 2, qubit jpsi* or psiHCNOTHadamardmeasurez_jx_jPauli label on qubit ja_j = (x_j, z_j)the same gates on every pair j = 1, ..., n; the 2n bits form one label aFigure 9.1. Bell measurement on two copies, one pair of qubits at a time. The CNOT and the Hadamard rotate the Bell basis to the computational basis; the two measured bits are the Pauli label of that qubit.
Theorem 9.7 (Bell sampling).
Let be -qubit pure states and let be the entrywise complex conjugate of in the computational basis. The Bell measurement of Figure 9.1 on returns the label with probability
On the label has the characteristic distribution of .
If is a stabilizer state with group , then for some , and on the label is uniform on the coset . If has real amplitudes, and the coset is itself.
Proof
Both and are tensor products over the pairs, so it suffices to follow one pair. The CNOT and the Hadamard map to , and applying to the first qubit before them gives , , , up to phases: the first bit is and the second is . So the circuit measures in the basis , and
using that is Hermitian. Squaring gives , and part 1 is the case . For part 2, complex conjugation fixes and and flips the sign of , so , and is fixed by : it has the same group . Part 4 of Proposition 9.3 gives , so , which is if and otherwise by part 3. If is real then and fixes up to sign, so .
Intuition: Bell sampling asks which Pauli turns one copy into the other
The Bell state is “the maximally entangled state with applied to one half”. Measuring in this basis asks which best explains the pair as with an error , and the answer depends on the overlap of with . For two copies of a stabilizer state, every Pauli in the group explains the pair equally well, so the label is uniform over the group, up to the fixed shift that converts into .
The snippet simulates the circuit on two copies of the state of Example 9.4. On it returns the eight elements of ; on it returns a shifted coset that does not contain the identity.
H = np.array([[1, 1], [1, -1]]) / np.sqrt(2)CX = np.eye(4)[[0, 1, 3, 2]]def bell(psi, phi): # Bell measurement on psi (x) phi T = np.kron(psi, phi).reshape([2] * 6) # axes: copy-1 qubits, copy-2 qubits for j in range(3): T = np.moveaxis(T, [j, 3 + j], [0, 1]) T = (CX @ T.reshape(4, -1)).reshape([2] * 6) # CNOT T = np.tensordot(H, T, axes=(1, 0)) # H on copy 1 T = np.moveaxis(T, [0, 1], [j, 3 + j]) return np.abs(T.reshape(8, 8)) ** 2 # rows: z bits, columns: x bitsdef name(x, z): # bits (x, z) -> Pauli string return "".join("IZXY"[2 * (x >> k & 1) + (z >> k & 1)] for k in (2, 1, 0))def support(prob): return sorted(name(x, z) for z, x in zip(*np.nonzero(prob > 1e-9)))print(support(bell(psi, psi.conj())) == sorted(S)) # Trueprint(support(bell(psi, psi)), bell(psi, psi).max().round(6)) # coset, 0.125
Learning from order n copies
How many Bell samples does it take to pin down the group, and what does the shift cost?
If we do not know , we can only Bell sample on , and Theorem 9.7 says the labels are uniform on an unknown coset . The difference of two labels from the same coset lies in , so we work with differences. Montanaro’s algorithm(1) is:
Bell sample times, each on a fresh pair , and obtain .
Form the differences for .
Row reduce the matrix with rows over . If its rank is below , report failure; otherwise let be a basis of its row space.
For each , measure on a fresh copy of and record the outcome .
Output the check matrix with rows and the signs .
Lemma 9.8 (Random vectors span quickly).
Let be independent and uniform on an -dimensional space over , . They span the space with probability
The expected number of samples until they span is .
Proof
In coordinates, the samples are the columns of a uniformly random matrix, and they span iff its rows, independent and uniform in , are linearly independent. Row must avoid the vectors spanned by the first rows, which happens with probability ; multiplying gives the product. The bound follows from and . When the current span has dimension , a fresh sample leaves it with probability , so the wait is geometric with mean . Summing over and using gives at most .
Theorem 9.9 (Learning stabilizer states with Bell sampling).
Let be an unknown -qubit stabilizer state and . Montanaro’s algorithm uses copies, Bell measurements on pairs of copies and single-copy Pauli measurements, and classical time. With probability at least it outputs a check matrix and signs of , which determine exactly; otherwise it reports failure, and it never outputs a wrong state. With it fails with probability at most using copies.
Proof
By Theorem 9.7 the are independent and uniform on . Given , the map is a bijection from onto , so are independent and uniform on . All lie in , so their row space is a subspace of ; it equals exactly when the rank is , which by Lemma 9.8 happens with probability at least . In that case the form a basis of . Each has as an eigenvector with eigenvalue , so step 4 returns the correct sign with certainty. By part 2 of Proposition 9.3, and the signs determine . Row reduction of a matrix costs bit operations, and reducing the basis to standard form .
Two refinements are worth knowing. If is known to have real amplitudes, then and the labels themselves lie in , so the reference sample is unnecessary. And one copy suffices for all signs: a Clifford with maps to a computational basis state, so measuring once in the computational basis reveals every sign (Remark 9.11 shows how to find ). We keep the simpler step 4, which is what qlt.stabilizer implements.
The snippet runs steps 1 to 3 on the state of Example 9.4 with and checks the signs.
prob = bell(psi, psi).T.reshape(64) # label index 8 x + zrng = np.random.default_rng(9)r = rng.choice(64, size=7, p=prob / prob.sum())diffs = r[1:] ^ r[0] # XOR of labels: differences in Sbasis, ranks = [], []for v in diffs: # Gaussian elimination over F_2 for b in basis: v = min(v, v ^ b) if v: basis.append(v) ranks.append(len(basis))found = [name(b >> 3, b & 7) for b in basis]sgn = [round((psi.conj() @ pauli(g) @ psi).real) for g in found]print([name(k >> 3, k & 7) for k in r]) # the seven Bell samplesprint(ranks, found, sgn) # [1, 2, 2, 3, 3, 3] ['YZI', 'ZXZ', 'IZX'] [1, -1, 1]
Remark 9.10 (Cost compared with generic tomography).
The table compares copy counts for an -qubit pure state, .
The gap is exponential, and it comes from structure, not from cleverer statistics: Bell sampling outputs elements of the hidden group directly, so no parameter is ever estimated. The price is that the guarantee holds only for exact stabilizer states, a point we return to in the last two sections.
Remark 9.11 (From a check matrix to a circuit, and learning Clifford unitaries).
Gaussian elimination on the check matrix with the moves , , CNOT and swap, each acting on the columns as a symplectic map, produces a Clifford of gates with in time (7,8). Then is a computational basis state , and prepares from . The stabilizer formalism behind these manipulations goes back to Gottesman (9). The same idea learns an unknown Clifford unitary . Its normalized Choi state (Definition 2.8) is a stabilizer state on qubits that determines up to a global phase, and each copy costs one use of . Bell sampling on pairs of copies of this state therefore learns from uses, a direct consequence of Theorem 9.9. Low (10) gave earlier learning and testing algorithms for Clifford unitaries.
Figure 9.2 compares with simulated runs. The success probability depends essentially only on the number of extra samples, not on , and approaches the union bound as grows.
Figure 9.2. Probability that Montanaro's learner recovers an unknown stabilizer state, against the number of copies spent on Bell sampling. Lines show the exact spanning probability of the lemma for two, three, five and ten qubits, dotted lines the union bound, and open circles the success rate in 600 simulated runs on random stabilizer states, with two-standard-error bars. A handful of copies beyond twice the number of qubits gives success with high probability.
Bell difference sampling and stabilizer testing
What does Bell sampling on tell us when is not a stabilizer state, and can we decide whether it is one?
For a general state, involves , which has no simple relation to . Gross, Nezami and Walter (2) observed that the difference of two Bell samples removes this dependence. Bell difference sampling draws two independent Bell samples , each on a fresh pair , and outputs ; it consumes four copies, but each measurement acts on two. For the proofs we use the symplectic Fourier transform on . It is inverted by and turns the convolution into the product .
Theorem 9.12 (Bell difference sampling).
For every pure state on qubits, Bell difference sampling outputs with probability
So is the distribution of the sum of two independent samples from , as if we could Bell sample on . If is a stabilizer state, is uniform on . More generally, if is an isotropic subspace with for all , then is supported on .
Proof
Write . Fourier invariance of . The Pauli expansion gives . With and ,
One Bell sample. By with , a Bell sample has distribution , since . Expanding in Paulis,
and summing over gives , so
because . Two samples. The sum of two independent samples has distribution , with transform . The sign has disappeared. Inverting gives , and inverting directly gives the second form in . For a stabilizer state, the convolution of the uniform distribution on a subspace with itself is the same uniform distribution. Finally, if and anticommutes with , then ; so vanishes off , and forces .
The last statement is what makes Bell difference sampling useful beyond stabilizer states: it always returns Paulis that commute with every Pauli stabilizing . Testing needs one more ingredient.
Lemma 9.13 (Uncertainty relation for anticommuting Paulis).
If and are anticommuting Paulis and is any state, then .
Proof
For real with , , so has eigenvalues and . Choosing parallel to makes the left side equal to .
Theorem 9.14 (Stabilizer testing).
This test is due to Gross, Nezami and Walter (2). Draw by Bell difference sampling (four copies), measure on each of two further copies, and accept if the two outcomes agree. For a pure state the acceptance probability is
Stabilizer states are accepted with certainty. For every , the stabilizer fidelity over stabilizer states satisfies .
Proof
Acceptance. Given , the two outcomes of are independent with mean , so they agree with probability ; averaging over gives the first form. By and Fourier invariance,
which gives the second. For a stabilizer state, on labels, so .
Soundness. Let , so . Since , the average of under is at most , and Markov’s inequality gives for . Two labels in commute, by Lemma 9.13, so spans an isotropic subspace, which extends to a Lagrangian . The joint eigenbasis of consists of stabilizer states , and dephasing in this basis gives
Taking the overlap with ,
The left side is at most , since the weights sum to one. So .
Intuition: the test checks that sampled Paulis are stabilizers
Bell difference sampling proposes a Pauli that is likely to be a stabilizer of if is close to a stabilizer state. Measuring it twice and comparing checks whether is (close to) an eigenstate: an eigenstate gives equal outcomes, while a Pauli with mean zero gives equal outcomes only half the time. The soundness bound turns “most sampled Paulis are nearly stabilizers” into “they nearly commute and fit inside one stabilizer group”.
Figure 9.3 shows both sides. A single non-Clifford gate already spreads over more labels and lowers ; for Haar-random states is spread over almost all labels. The soundness bound is far from tight away from : Grewal, Iyer, Kretschmer and Liang (3) give sharper relations between acceptance and stabilizer fidelity, and use them to show that pseudorandom states cannot be prepared with too few non-Clifford gates.
Figure 9.3. Left: the characteristic distribution of three three-qubit states, scaled by the dimension and sorted in decreasing order. The stabilizer state of the worked example is flat on eight labels, the same state after one T gate spreads over twelve, and a Haar-random state over all 64. Right: stabilizer fidelity against the acceptance probability of the six-copy test for Clifford circuits with one to three non-Clifford rotations and for Haar-random states. Every point lies above the dashed soundness bound of the theorem.
Agnostic learning near a stabilizer state
What if the copies are only close to a stabilizer state?
Montanaro’s algorithm is fragile. One wrong Bell sample adds a vector outside , and Gaussian elimination then returns a subspace that is not isotropic, or of the wrong dimension. Under depolarizing noise of any constant strength, a constant fraction of samples are uniformly random and the rank soon reaches . A robust learner must find the structure rather than assume it.
Definition 9.15 (Agnostic learning of stabilizer states).
The stabilizer fidelity of a state is over stabilizer states . An agnostic learner with parameters receives copies of any with and outputs a stabilizer state with , with probability at least .
When the fidelity is high, the closest stabilizer state is visible in the Pauli expectations: its stabilizers have large correlation with , all other Paulis small correlation, and Bell difference sampling finds the former often enough. The threshold is . This regime was first treated by Grewal, Iyer, Kretschmer and Liang (3); part 2 below is a direct calculation from made for these notes. It is weaker near the threshold than the general anticoncentration bound of Grewal et al. and Chen et al. (3,4).
Theorem 9.16 (Agnostic learning at high stabilizer fidelity).
Let be a pure state with , attained at the stabilizer state with group and signs , and write .
Good and bad correlations are separated:
Since , is the unique closest stabilizer state, , and is the sign of .
2. For every subspace of dimension , with .
3. Assume , or a lower bound used in place of , is known (as in Lecture 19 of (5)). Then the following learner outputs with probability at least . Draw Bell difference samples . Estimate each to accuracy
from single-copy measurements of . Keep the with estimated , choose a basis among the kept (greedily), and read their signs off the estimates.
Proof
Good correlations. For , is a projector with , so and . This part holds for mixed states as well.
Bad correlations. For pick with anticommuting with . By Lemma 9.13 and the good bound, . The two bounds cross where , that is, , at .
Anticoncentration. For any subspace , summing over and using for and otherwise gives . Apply this to (with ) and to (with , ), and write :
where the last step factors the difference of squares and uses .
The learner. By Hoeffding’s inequality (Theorem 1.14) and a union bound, with probability at least every estimate is within , and then by part 1 the kept samples are exactly those in , with correct signs. The kept samples fail to span only if all of them avoid for one of the hyperplanes ; by part 2 this has probability at most . Part 2 of Proposition 9.3 turns the basis and signs into .
For fixed above the threshold the learner uses copies for sampling and estimates of copies each, in total copies, and polynomial time. It returns the closest stabilizer state exactly, not just an approximation. As approaches , goes to zero (and so does the simple bound of part 2; the general anticoncentration bound does not), and the cost diverges; Example 9.20 shows a state sitting exactly on the threshold.
Remark 9.17 (Stabilizer bootstrapping below the threshold).
Below , wrong Paulis can correlate with as strongly as right ones, and the closest stabilizer state need not be unique. Chen, Gong, Ye and Zhang (4) give an agnostic learner for every with time , using only single- and two-copy measurements; earlier protocols ran in time or required . An anticoncentration theorem (3,4) says that, for every proper subspace , a Bell difference sample lands in with probability . When the high-correlation Paulis found so far do not span , a fresh sample is therefore often a stabilizer of with low correlation with ; measuring the projector and keeping the right outcome raises the fidelity with by a constant factor. After such rounds the fidelity is high, the guesses succeed with probability , and hypothesis selection with classical shadows (Module 7) picks the best candidate. Lecture 19 of Chen and Cotler (5) presents this algorithm. For product stabilizer states, Grewal, Iyer, Kretschmer and Liang (11) give an agnostic learner running in time , polynomial for constant .
Remark 9.18 (Few non-Clifford gates and stabilizer dimension).
The stabilizer dimension of is the largest dimension of an isotropic subspace with for all ; it is exactly for stabilizer states. A gate on qubit commutes with the Paulis that act on qubit as or , which form a subspace of codimension at most one in , so it lowers the stabilizer dimension by at most one (an arbitrary single-qubit gate by at most two). Clifford circuits with gates therefore produce states of stabilizer dimension at least . By Theorem 9.12, Bell difference samples lie in , and enough of them span , whose symplectic complement is ; a Clifford that maps to -type Paulis on qubits then leaves an unknown state on only qubits, which generic tomography can learn. This is the algorithm of Grewal, Iyer, Kretschmer and Liang (12), with cost . Chen, Gong, Ye and Zhang (4) extend bootstrapping to agnostic learning with respect to states of stabilizer dimension .
Worked example: learning a three-qubit stabilizer state
We run the learner on the state of Example 9.4, then add one gate. Every number below is checked in code/tests/test_09_stabilizer.py.
Example 9.19 (Montanaro's learner on three qubits).
The coset. For with generators , , , complex conjugation flips the sign of only, so has signs and : the Pauli anticommutes with and commutes with the other two. By Theorem 9.7, Bell samples on are uniform on
The identity never appears although it lies in ; this is why the algorithm uses differences. Bell difference samples, in contrast, are uniform on itself, as Theorem 9.12 predicts.
One run. The third snippet (, seed ) draws the labels . The differences with the first are , of ranks ; the basis and the measured signs return . The run used copies.
Success probabilities. By with , differences span with probability for , for , for and for ; the union bound for is . On average differences are needed, that is, about copies for Bell sampling. For failure probability the theorem takes , so copies.
Simulation. In runs of the full learner with (seed ), the fraction of successes is (one standard error), against the prediction . Every successful run returned exactly.
Comparison. Generic pure-state tomography in needs at least copies for expected infidelity (Corollary 5.6), and its answer is still only approximate.
Example 9.20 (One T gate on the same state).
Let , a gate on qubit 1. The gate commutes with the stabilizers of that act on qubit 1 as or , namely : these keep , and the other eight labels of positive weight have . So . Also , so by the test accepts with probability . The soundness bound only guarantees .
The truth is much better. Since
and , the fidelity with is , and a search over all three-qubit stabilizer states confirms that this is . It is attained twice, by and by , where is the phase gate on qubit 1. This is the boundary case of Theorem 9.16. The stabilizer of and the stabilizer of both have , where the good and bad bounds of meet.
T1 = np.kron(np.diag([1, np.exp(1j * np.pi / 4)]), np.eye(4))m = T1 @ psi # one T gate on qubit 1pm = np.array([abs(m.conj() @ pauli(s) @ m) ** 2 / 8 for s in labels])acc = (1 + 64 * np.sum(pm**3)) / 2 # acceptance probabilityprint(round(8 * np.sum(pm**2), 4), round(acc, 4), round(4 * acc - 3, 4))fid = abs(psi.conj() @ m) ** 2 # fidelity with psi itselfprint(round(fid, 4), round(np.cos(np.pi / 8) ** 2, 4)) # 0.8536 0.8536print(sorted(s for s, v in zip(labels, pm) if v > 0.1)) # the four 1/8 labels
What breaks
Noise. Montanaro’s algorithm assumes exact copies. A single corrupted Bell sample can destroy the Gaussian elimination, and under constant depolarizing noise the rank of the samples reaches . Robust learning needs the correlation thresholds of Theorem 9.16, or bootstrapping when the fidelity is lower (Remark 9.17).
The complex conjugate. Bell sampling on samples only up to a shift, and only for stabilizer states. For general states the samples depend on , which is not available, and Bell difference sampling is needed. It consumes four copies per sample, and the stabilizer test six.
Two-copy measurements. Every algorithm in this module measures two copies jointly. A device that can only measure one copy at a time cannot Bell sample; single-copy learning of stabilizer states needs different algorithms, which we do not treat.
Magic. Each gate can halve the stabilizer group, and costs grow like in the number of gates (Remark 9.18). For a Haar-random state the stabilizer fidelity is exponentially small in , and no structure is left to exploit.
Hardness. Learning stabilizer states from noisy classical measurement data, in Aaronson’s PAC model (13), is as hard as learning parity with noise (14), and agnostic learning at low fidelity has no known polynomial-time algorithm.
Why it matters
Stabilizer states are the first family in this course that can be learned with exponentially fewer copies than generic states, and they show where the saving comes from: a measurement whose outcomes are the hidden structure itself, so that learning becomes linear algebra over . Bell difference sampling is now a standard primitive. It underlies stabilizer testing, bounds on the number of gates in pseudorandom states, learning of states with few non-Clifford gates, and agnostic learning near stabilizer states. Because stabilizer states are the outputs of Clifford circuits, the code states of stabilizer codes and the yardstick of magic-state resource theories, these tools apply wherever Clifford structure appears, including the random Clifford measurements of Module 7 and the gentle, adaptive protocols of Module 8.
Further reading
Montanaro (1): Bell sampling and the -copy learner.
Gross, Nezami and Walter (2): Bell difference sampling, stabilizer testing and the Clifford Schur–Weyl duality behind them.
Grewal, Iyer, Kretschmer and Liang (3,11,12): improved stabilizer estimation, learning states with few non-Clifford gates, and agnostic tomography of stabilizer product states.
Chen, Gong, Ye and Zhang (4): stabilizer bootstrapping and agnostic learning at every fidelity.
Aaronson and Gottesman (7): the tableau formalism, the count of stabilizer states and circuit synthesis.
Montanaro and de Wolf (15) and Anshu and Arunachalam (16): surveys of quantum property testing and of learning quantum states.
Chen and Cotler (5), Lectures 17 to 19: the presentation followed here.
Montanaro A. Learning stabilizer states by Bell sampling. arXiv preprint arXiv:170704012. 2017;
2.
Gross D, Nezami S, Walter M. Schur-Weyl Duality for the Clifford Group with Applications: Property Testing, a Robust Hudson Theorem, and de Finetti Representations. Communications in Mathematical Physics 385 (2021), 1325-1393. 2021;
3.
Grewal S, Iyer V, Kretschmer W, Liang D. Improved Stabilizer Estimation via Bell Difference Sampling. Proceedings of the 56th Annual ACM Symposium on Theory of Computing (STOC 2024), pp 1352-1363 (2024). 2024;
4.
Chen S, Gong W, Ye Q, Zhang Z. Stabilizer bootstrapping: A recipe for efficient agnostic tomography and magic estimation. arXiv preprint arXiv:240806967. 2024;
5.
Chen S, Cotler J. Quantum Learning Theory (Physics 272 / CS 2233), lecture notes [Internet]. Harvard University, Fall 2025; 2025. Available from: https://harvard-quantum-learning.github.io
6.
Nielsen MA, Chuang IL. Quantum Computation and Quantum Information: 10th Anniversary Edition. Cambridge University Press; 2010.
7.
Aaronson S, Gottesman D. Improved Simulation of Stabilizer Circuits. Phys Rev A 70, 052328 (2004). 2004;
8.
Dehaene J, Moor BD. The Clifford group, stabilizer states, and linear and quadratic operations over GF(2). Phys Rev A 68, 042318 (2003). 2003;
9.
Gottesman D. Stabilizer Codes and Quantum Error Correction. PhD thesis, California Institute of Technology (1997). 1997;
10.
Low RA. Learning and Testing Algorithms for the Clifford Group. Phys Rev A 80, 052314 (2009). 2009;
11.
Grewal S, Iyer V, Kretschmer W, Liang D. Agnostic Tomography of Stabilizer Product States. Quantum 10, 2027 (2026). 2026;
12.
Grewal S, Iyer V, Kretschmer W, Liang D. Efficient Learning of Quantum States Prepared With Few Non-Clifford Gates. Quantum 9, 1907 (2025). 2025;
13.
Aaronson S. The Learnability of Quantum States. arXiv preprint arXiv:quant-ph/0608142. 2006;
14.
Gollakota A, Liang D. On the Hardness of PAC-learning Stabilizer States with Noise. Quantum 6, 640 (2022). 2022;
15.
Montanaro A, de Wolf R. A Survey of Quantum Property Testing. Theory of Computing Graduate Surveys 7 (2016). 2016;
16.
Anshu A, Arunachalam S. A survey on the complexity of learning quantum states. arXiv preprint arXiv:230520069. 2023;