Introduction
Magic, or non-stabilizerness, describes how far a quantum state lies from the set of stabilizer states [1 ] , and it can be quantified by measures such as the stabilizer Rényi entropy that are estimable from Bell measurements [2 , 3 ] . Stabilizer states are classically tractable in two senses: they can be efficiently simulated by the Gottesman–Knill theorem [4 , 5 ] , and they can be learned efficiently from O ( n ) O(n) O ( n ) copies by Bell sampling [6 ] . Both results extend to states with little magic, through simulation and learning algorithms whose cost is polynomial in the number of qubits and exponential only in a magic measure such as the stabilizer nullity [7 , 8 , 9 , 10 ] . Magic is also the resource that fault-tolerant quantum computation must account for. The Eastin–Knill theorem rules out a transversal universal gate set under standard assumptions [11 , 12 , 13 ] , and for many codes of practical interest the gates that must be supplied non-transversally are precisely the non-Clifford gates, which are typically implemented by consuming distilled magic states [14 , 15 ] . Measures of magic therefore quantify both the cost of preparing a state fault-tolerantly [16 , 17 ] and the cost of simulating or learning it classically.
A growing body of work has sought learning-theoretic handles on magic [18 ] . Given copies of an unknown state, how efficiently can one exploit limited magic to learn the state itself? Work on these questions began with exact stabilizer states, which can be tested and learned efficiently from Bell measurements [6 , 19 , 20 ] , and has since extended to progressively broader classes: states of low stabilizer nullity or prepared with few T T T gates [9 , 10 , 21 , 22 ] , states of bounded stabilizer rank or extent [23 , 24 ] , Clifford-scrambled product states [25 , 26 ] , and, under query access, the corresponding few-T T T circuits and Clifford-structured unitaries [27 , 28 ] . In most of these works, learning the stabilizer structure (the stabilizer group, or a Clifford that compresses the magic onto few qubits) is the first step toward full tomography of a pure input. A smaller line of work treats arbitrary inputs, either by agnostic tomography, which returns the best approximation within a class [29 , 30 , 31 , 32 ] , or by tolerant testing and witnessing of magic in mixed states [33 , 34 ] .
These questions are no longer purely theoretical [35 ] . In early fault-tolerant devices [36 , 37 ] and in the verification of logical state preparation, the logical states of interest are typically low-magic states for which existing learning algorithms are formulated, and certifying their non-Clifford content is a natural diagnostic [38 , 39 ] . But these pure states are not experimentally accessible; instead, only noisy access is ever possible. This work studies a basic question in that practical setting: how efficiently can the stabilizer structure of a pure state be learned from measurements of its noisy image?
A natural, albeit fragile, measure of magic is the stabilizer nullity—defined by the stabilizer group of an n n n -qubit pure state ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ , with density matrix ψ = ∣ ψ ⟩ ⟨ ψ ∣ \psi=|\psi\rangle\langle\psi| ψ = ∣ ψ ⟩ ⟨ ψ ∣ ,
Stab ( ψ ) = { σ i ∈ P n : σ i ∣ ψ ⟩ = ± ∣ ψ ⟩ } , ν ( ψ ) = n − dim ( Stab ( ψ ) ) . (1) \begin{aligned}
\operatorname{Stab}(\psi)&=\{\sigma_i\in\mathcal{P}^n:\sigma_i|\psi\rangle=\pm|\psi\rangle\},\\
\nu(\psi)&=n-\dim(\operatorname{Stab}(\psi)). \tag*{(1)}
\end{aligned} Stab ( ψ ) ν ( ψ ) = { σ i ∈ P n : σ i ∣ ψ ⟩ = ± ∣ ψ ⟩} , = n − dim ( Stab ( ψ )) . (1)
Here, P n \mathcal{P}^{n} P n is the n n n -qubit Pauli group up to phases, which we identify with F 2 2 n \mathbb{F}_{2}^{2n} F 2 2 n through the binary symplectic representation; Stab ( ψ ) \operatorname{Stab}(\psi) Stab ( ψ ) is then a subspace, and dim \dim dim denotes its F 2 \mathbb{F}_{2} F 2 -dimension. The nullity ν \nu ν is defined such that it is a magic monotone, i.e., invariant under Clifford operations and increasing with increasing magic. A single T T T gate changes the nullity by at most one, so ν \nu ν is a lower bound on the number of T T T gates used to prepare ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ . Throughout, t t t denotes a supplied upper bound ν ≤ t \nu\le t ν ≤ t ; the T T T -count of any preparation circuit provides one [16 ] . Additionally, stabilizer nullity is equivalent to the notion of ν \nu ν -compressibility: there exists some Clifford C C C that compresses the state to ν \nu ν qubits, such that C ∣ ψ ⟩ = ∣ ϕ ⟩ ⊗ ∣ 0 ⟩ ⊗ ( n − ν ) C|\psi\rangle= |\phi\rangle\otimes|0\rangle^{\otimes(n-\nu)} C ∣ ψ ⟩ = ∣ ϕ ⟩ ⊗ ∣0 ⟩ ⊗ ( n − ν ) . This property is used in tomography of low-magic states, because once ν \nu ν and C C C are known, full state tomography need only be performed on ν \nu ν qubits of the full n n n -qubit system [9 , 10 , 40 ] .
Both the stabilizer group and the algorithms that learn it are most naturally phrased through the Pauli expansion of the state. Writing an n n n -qubit state as ρ = ∑ i = 1 4 n a i σ i \rho= \sum_{i=1}^{4^n} a_i \sigma_i ρ = ∑ i = 1 4 n a i σ i , its Pauli support is the subspace spanned by the Paulis with nonzero coefficients,1
supp ( ρ ) = span { σ i ∈ P n : a i ≠ 0 } . (2) \operatorname{supp}(\rho) = \operatorname{span}\{\sigma_i \in\mathcal{P}^{n} : a_i \ne0\}. \tag*{(2)} supp ( ρ ) = span { σ i ∈ P n : a i = 0 } . (2)
For a pure state, the stabilizer group corresponds to the centralizer of the Pauli support,
Stab ( ψ ) = C ( supp ψ ) , (3) \operatorname{Stab}(\psi) = C\left(\operatorname{supp}\psi\right), \tag*{(3)} Stab ( ψ ) = C ( supp ψ ) , (3)
so learning Stab ( ψ ) \operatorname{Stab}(\psi) Stab ( ψ ) amounts to learning the subspace supp ( ψ ) \operatorname{supp}(\psi) supp ( ψ ) .
Stabilizer nullity is a fragile measure because exact stabilizer structure is discontinuous. An arbitrarily small rotation R Z ( θ ) ∣ + ⟩ R_Z(\theta)|+\rangle R Z ( θ ) ∣ + ⟩ removes the stabilizer X X X of ∣ + ⟩ |+\rangle ∣ + ⟩ , while moving the state by only O ( θ ) O(\theta) O ( θ ) in trace distance. With finitely many copies, stabilizer structure can therefore be resolved only up to a finite accuracy. We make this precise in Sec. II A 1.
Learning the stabilizer group is the natural first step in learning a low-magic state: its dimension certifies the nullity, and once it is known, full tomography reduces to a ν \nu ν -qubit problem. Montanaro first showed that transversal two-copy measurement in the Bell basis—Bell sampling—exposes the subgroup structure of stabilizer states, and that learning the sign-free description of the stabilizer group is efficient in n n n in both sample and time complexity, requiring O ( n ) O(n) O ( n ) samples [6 ] . A sequence of works [9 , 10 ] extended Bell sampling beyond exact stabilizer states, independently arriving at algorithms that learn the approximate stabilizer structure of t t t -doped or ν \nu ν -compressible states using poly ( n , ν ) \operatorname{poly}(n,\nu) poly ( n , ν ) samples and time at fixed accuracy.
The underlying mechanism is as follows. A Bell sample, the outcome of measuring two copies of ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ in the Bell basis, is a length-2 n 2n 2 n bitstring encoding a Pauli operator in supp ( ψ ) \operatorname{supp}(\psi) supp ( ψ ) shifted by an unknown hidden Pauli σ k \sigma_k σ k (Proposition III.2). The bitwise XOR of two Bell samples, a Bell difference sample , cancels the shift and lies entirely in supp ( ψ ) \operatorname{supp}(\psi) supp ( ψ ) . The span of sufficiently many difference samples therefore reproduces the support with high probability, and its centralizer, which is efficiently computable, is the stabilizer group. Components of the support that are sampled only rarely may never be observed, so these algorithms naturally recover the stabilizer structure only approximately. The same group-theoretic structure underlies a broader view of stabilizer learning as a hidden subgroup problem [41 ] .
Beyond pure inputs, even the learning problem itself is less settled. The most developed line is agnostic tomography, which accepts an arbitrary mixed input and returns the low-magic state of nearly largest fidelity with it [29 , 30 ] . Tolerant testers likewise accept mixed inputs, but decide whether the state is close to a stabilizer state rather than recovering one [33 ] . Structure learners for mixed states, by contrast, have so far required a strong promise: that a subgroup of Pauli operators stabilizes the observed state exactly, σ i ρ = ± ρ \sigma_i \rho= \pm\rho σ i ρ = ± ρ , or equivalently has expectation values of unit magnitude [9 , 22 , 41 ] .
The stabilizer group admits a second characterization that makes the effect of noise transparent. We call a Pauli σ i \sigma_i σ i a strong symmetry of a state ρ \rho ρ if σ i ρ = ± ρ \sigma_i \rho= \pm\rho σ i ρ = ± ρ , and a weak symmetry if it commutes with ρ \rho ρ , i.e., σ i ρ σ i † = ρ \sigma_i \rho\sigma_i^\dagger= \rho σ i ρ σ i † = ρ . The strong symmetries form the usual stabilizer group; the weak symmetries form a group containing it, which we call the weak stabilizer of ρ \rho ρ . Conjugation by σ i \sigma_i σ i flips the sign of exactly those Pauli operators that anticommute with it, so the weak stabilizer consists of the Paulis commuting with the entire support of ρ \rho ρ :
S = { σ i ∈ P n : [ σ i , ρ ] = 0 } = C ( supp ρ ) . (4) S = \{\sigma_i \in\mathcal{P}^{n} : [\sigma_i,\rho] = 0\} = C(\operatorname{supp}\rho). \tag*{(4)} S = { σ i ∈ P n : [ σ i , ρ ] = 0 } = C ( supp ρ ) . (4)
For a pure state the two notions coincide: σ i ψ σ i † = ψ \sigma_i \psi\sigma_i^\dagger= \psi σ i ψ σ i † = ψ implies σ i ∣ ψ ⟩ ∝ ∣ ψ ⟩ \sigma_i|\psi\rangle\propto|\psi\rangle σ i ∣ ψ ⟩ ∝ ∣ ψ ⟩ , so S = Stab ( ψ ) S = \operatorname{Stab}(\psi) S = Stab ( ψ ) , as in Eq. (3) . Noise separates them. Even arbitrarily weak depolarizing noise makes ρ = E ( ψ ) \rho= \mathcal{E}(\psi) ρ = E ( ψ ) full rank, and a full-rank state has no strong Pauli symmetries other than the identity; the stabilizer group, and the learning algorithms built on it, therefore no longer apply directly.
The weak symmetries, however, survive. A Pauli channel rescales each Pauli coefficient of the state, so it can shrink the support but never enlarge it, and hence Stab ( ψ ) ⊆ C ( supp ρ ) \operatorname{Stab}(\psi) \subseteq C(\operatorname{supp}\rho) Stab ( ψ ) ⊆ C ( supp ρ ) . When the total error probability λ \lambda λ of the channel is below 1 / 2 1/2 1/2 , no coefficient is rescaled to zero (see Sec. II A 2) and the inclusion becomes an equality. For global depolarizing noise, this holds for any λ < 1 \lambda< 1 λ < 1 . Our target is thus the stabilizer group of the underlying pure state, which for such support-preserving channels is the weak stabilizer of the noisy state:
Stab ( ψ ) = S . (5) \operatorname{Stab}(\psi) = S. \tag*{(5)} Stab ( ψ ) = S . (5)
Hinsche, Eisert, and Carrasco distinguish this weak invariance from the strong, unit-expectation condition required by their Fourier-sampling learner [41 ] ; here we target the weak stabilizer directly. This allows us to naturally generalize the notion of the stabilizer nullity by instead considering the dimension of the weak stabilizer,
ν ≡ n − dim ( C ( supp ρ ) ) = ν ( ψ ) . (6) \nu\equiv n-\dim\left(C(\operatorname{supp}\rho)\right)=\nu(\psi). \tag*{(6)} ν ≡ n − dim ( C ( supp ρ ) ) = ν ( ψ ) . (6)
This quantity will be the central focus of our learning algorithm, as it allows one to learn, despite noise, an approximate weak stabilizer: an unsigned group containing the original stabilizer group, with nullity ν ~ ≤ ν \widetilde{\nu}\le\nu ν ≤ ν .
Learning C ( supp ρ ) C(\operatorname{supp}\rho) C ( supp ρ ) from Bell samples is not, however, a direct application of the pure-state algorithms. As noisy sampling produces erroneous difference samples lying outside the support—and these do not respect the group structure of the support—the pure-state stabilizers need not commute with them. Let B B B be the span of a batch of M M M noisy difference samples. Under nonzero global depolarizing noise, this noisy group converges to the full Pauli group as M → ∞ M\to\infty M → ∞ , with a trivial centralizer. Yet for sufficiently low noise and a carefully chosen batch size M M M , B B B still retains useful information about C ( supp ρ ) C(\operatorname{supp}\rho) C ( supp ρ ) . The central observation of this work is that a partially corrupted batch still carries some of this structure, because each bad sample can remove only one target direction from the radical of the span. Verified directions can then be used to post-select later batches, which under depolarizing noise suppresses the bad-sample rate exponentially in the number of accepted directions. Making this rigorous requires a verifier that certifies every proposed update from one reusable set of Bell samples, and a bound connecting the purity the verifier certifies to the samples the finder observes.
Summary of Results
We give an algorithm that learns an approximate weak stabilizer S ~ \widetilde{S} S , and with it the nullity ν ~ = n − dim S ~ ≤ ν \widetilde{\nu}=n-\dim\widetilde{S}\le\nu ν = n − dim S ≤ ν , from noisy Bell samples. Our main case is global depolarizing noise. The algorithm alternates between a finder, which proposes updates to a working group from the span of Bell difference samples, and a verifier, which accepts an update only if it costs little purity. Depending on the noise strength λ \lambda λ and the accuracy ε \varepsilon ε , the finder can use the whole span, part of it, or single samples, which gives three regimes with different sample and runtime costs in n n n and t t t .
Problem Setup
Before discussing the algorithm in depth, we formalize the notation used throughout this manuscript and define the relevant scale quantities: the nullity ν \nu ν , the approximation error ε \varepsilon ε , and the noise strength λ \lambda λ .
Approximate support
As discussed in § 1 , exact stabilizer structure is discontinuous: states with different stabilizer nullity can be arbitrarily close in trace distance.
This motivates an approximate learning problem. Rather than demanding exact recovery of Stab ( ψ ) \operatorname{Stab}(\psi) Stab ( ψ ) , we allow for additional stabilizer constraints that are compatible with the state up to accuracy ε \varepsilon ε . To apply this notion directly to a noisy mixed state, write
ρ = ∑ i ∈ P n a i σ i . (7) \rho=\sum_{i\in\mathcal{P}_n}a_i\sigma_i. \tag*{(7)} ρ = i ∈ P n ∑ a i σ i . (7)
and, for a commuting Pauli group S ~ \widetilde{S} S (in practice, a candidate update to the working group), define the Pauli twirl
T S ~ ( ρ ) = 1 ∣ S ~ ∣ ∑ g ∈ S ~ g ρ g = ∑ i ∈ C ( S ~ ) a i σ i . (8) \mathcal{T}_{\widetilde{S}}(\rho)=\frac{1}{|\widetilde{S}|}\sum_{g\in\widetilde{S}}g\rho g=\sum_{i\in C(\widetilde{S})}a_i\sigma_i. \tag*{(8)} T S ( ρ ) = ∣ S ∣ 1 g ∈ S ∑ g ρ g = i ∈ C ( S ) ∑ a i σ i . (8)
The twirl projects ρ \rho ρ onto the Pauli components which commute with S ~ \widetilde{S} S , i.e., onto its centralizer C ( S ~ ) C(\widetilde{S}) C ( S ) . We quantify the retained support using the projected purity , defined as
γ S ~ ≡ tr [ T S ~ ( ρ ) 2 ] = 2 n ∑ i ∈ C ( S ~ ) a i 2 , (9) \gamma_{\widetilde{S}}\equiv\operatorname{tr}\left[\mathcal{T}_{\widetilde{S}}(\rho)^2\right]=2^n\sum_{i\in C(\widetilde{S})}a_i^2, \tag*{(9)} γ S ≡ tr [ T S ( ρ ) 2 ] = 2 n i ∈ C ( S ) ∑ a i 2 , (9)
and then define the corresponding purity loss function
Δ γ ( S ~ ) ≡ γ − γ S ~ = 2 n ∑ i ∉ C ( S ~ ) a i 2 , γ ≡ tr ( ρ 2 ) . (10) \Delta\gamma(\widetilde{S})\equiv\gamma-\gamma_{\widetilde{S}}=2^n\sum_{i\notin C(\widetilde{S})}a_i^2,\qquad\gamma\equiv\operatorname{tr}(\rho^2). \tag*{(10)} Δ γ ( S ) ≡ γ − γ S = 2 n i ∈ / C ( S ) ∑ a i 2 , γ ≡ tr ( ρ 2 ) . (10)
Our task is to find an ε \varepsilon ε -approximate weak stabilizer S ~ \widetilde{S} S satisfying
S ⊆ S ~ , Δ γ ( S ~ ) ≤ ε . (11) S \subseteq\widetilde{S}, \qquad\Delta_\gamma(\widetilde{S}) \le\varepsilon. \tag*{(11)} S ⊆ S , Δ γ ( S ) ≤ ε . (11)
The first condition ensures that the learned group contains the exact algebraic structure of the target state, while the second limits how many additional constraints may be imposed: C ( S ~ ) C(\widetilde{S}) C ( S ) must retain all but ε \varepsilon ε of the purity. Equivalently, we search for a lower-nullity description of the underlying pure state ψ \psi ψ while controlling the error incurred by that compression.
The accuracy parameter ε \varepsilon ε has a direct state-space interpretation. If ρ \rho ρ is obtained from a pure state ψ \psi ψ by Pauli noise of total error probability λ < 1 / 2 \lambda< 1/2 λ < 1/2 , then for fixed commuting S ~ \widetilde{S} S ,
Δ γ ( S ~ ) 2 ≤ inf ϕ : S ~ ⊆ Stab ( ϕ ) D t r ( ψ , ϕ ) ≤ Δ γ ( S ~ ) 1 − 2 λ . (12) \sqrt{\frac{\Delta_\gamma(\widetilde{S})}{2}} \le\inf_{\phi:\widetilde{S}\subseteq\operatorname{Stab}(\phi)} D_{\mathrm{tr}}(\psi,\phi) \le\frac{\sqrt{\Delta_\gamma(\widetilde{S})}}{1-2\lambda}. \tag*{(12)} 2 Δ γ ( S ) ≤ ϕ : S ⊆ Stab ( ϕ ) inf D tr ( ψ , ϕ ) ≤ 1 − 2 λ Δ γ ( S ) . (12)
Hence, for sufficiently small constant noise, ε \varepsilon ε is, up to constant factors, the square of the trace-distance resolution at which stabilizer structure can be distinguished. A justification is given in Appendix B.
Noise Model
We are given copies of ρ = E ( ψ ) \rho=\mathcal{E}(\psi) ρ = E ( ψ ) , where E ( ρ ) = ∑ Q p Q Q ρ Q \mathcal{E}(\rho)=\sum_Q p_Q Q\rho Q E ( ρ ) = ∑ Q p Q QρQ is a Pauli channel with total error probability λ ≡ ∑ Q ≠ I p Q \lambda\equiv\sum_{Q\ne I}p_Q λ ≡ ∑ Q = I p Q . It rescales each Pauli coefficient by its fidelity,
E ( σ i ) = f i σ i , f i = ∑ Q p Q ( − 1 ) ⟨ i , Q ⟩ ≥ 1 − 2 λ , (13) \mathcal{E}(\sigma_i)=f_i\sigma_i,\qquad f_i=\sum_Q p_Q(-1)^{\langle i,Q\rangle}\ge1-2\lambda, \tag*{(13)} E ( σ i ) = f i σ i , f i = Q ∑ p Q ( − 1 ) ⟨ i , Q ⟩ ≥ 1 − 2 λ , (13)
so for λ < 1 / 2 \lambda<1/2 λ < 1/2 it preserves supp ρ \operatorname{supp}\rho supp ρ . Our expository case is global depolarizing noise,
E λ ( ψ ) = ( 1 − λ ) ψ + λ 2 n I , (14) \mathcal{E}_\lambda(\psi)=(1-\lambda)\psi+\frac{\lambda}{2^n}I, \tag*{(14)} E λ ( ψ ) = ( 1 − λ ) ψ + 2 n λ I , (14)
for which f i = 1 − λ f_i=1-\lambda f i = 1 − λ for all σ i ≠ I \sigma_i\ne I σ i = I ; its total error probability is λ ( 1 − 4 − n ) ≤ λ \lambda(1-4^{-n})\le\lambda λ ( 1 − 4 − n ) ≤ λ , so bounds stated for Pauli channels apply to it with the same λ \lambda λ .
This noise model is salient in the early fault-tolerant regime. An encoded state in the code space of an [ [ n , k , d ] ] [[n,k,d]] [[ n , k , d ]] stabilizer code has nullity at most k k k , and the code provides the stabilizer structure: every Pauli that stabilizes a code state commutes with the code’s stabilizer group, which supplies n − k n-k n − k independent stabilizers and leaves only the k k k logical qubits to carry magic [42 , 43 ] . Syndrome measurement collapses errors of weight below d / 2 d/2 d /2 , including coherent errors, into a Pauli channel on ψ \psi ψ : it decoheres any error into Pauli errors with a definite syndrome, and correctable Paulis that share a syndrome differ by a stabilizer, so they act identically on ψ \psi ψ [42 , 43 ] . Other circuit operations, such as the Bell measurement, are Clifford, and their faults are Pauli under twirling [44 , 45 ] . For families of unencoded Clifford+T T T circuits and those forming unitary designs, we leave the particular extension to the Bell sampling regime for future work.
Problem Definition
We can now formalize the question explored in this work:
Problem II.1 (Main Problem). Given Bell-sampling access to a noisy state
ρ = E ( ψ ) , ψ = ∣ ψ ⟩ ⟨ ψ ∣ , (15) \rho=\mathcal{E}(\psi),\qquad\psi=|\psi\rangle\langle\psi|, \tag*{(15)} ρ = E ( ψ ) , ψ = ∣ ψ ⟩ ⟨ ψ ∣ , (15) can we recover the stabilizer structure of the underlying pure state ψ \psi ψ , up to a prescribed accuracy?
Promise: The ideal n n n -qubit state ψ \psi ψ has stabilizer nullity ν ≤ t < n \nu\le t<n ν ≤ t < n , and the noise channel belongs to a specified class of global depolarizing or Pauli channels characterized by a noise-strength parameter λ \lambda λ .
Input: Copies of ρ \rho ρ , an accuracy parameter ε > 0 \varepsilon>0 ε > 0 , and a confidence parameter δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) .
Output: With probability at least 1 − δ 1-\delta 1 − δ , return a commuting Pauli group S ~ \widetilde{S} S that is an ε \varepsilon ε -approximate weak stabilizer of ρ \rho ρ , for which
S ⊆ S ~ , Δ γ ( S ~ ) = γ − γ ~ S ~ ≤ ε . (16) S\subseteq\widetilde{S},\qquad\Delta_\gamma(\widetilde{S})=\gamma-\widetilde{\gamma}_{\widetilde{S}}\le\varepsilon. \tag*{(16)} S ⊆ S , Δ γ ( S ) = γ − γ S ≤ ε . (16)
Here, S S S denotes the target weak stabilizer. Equivalently, S ~ \widetilde{S} S defines an approximate compression of the underlying pure state ψ \psi ψ to
ν ~ = n − dim S ~ ≤ ν (17) \widetilde{\nu}=n-\dim\widetilde{S}\leq\nu \tag*{(17)} ν = n − dim S ≤ ν (17)
logical qubits, with approximation error controlled by ε \varepsilon ε .
When required by the algorithm, λ \lambda λ may either be supplied as part of the noise-model promise or bounded from the measurement data; in particular, for white noise it can be inferred from the purity of ρ \rho ρ .
Main Results
Algorithm
Our algorithm iteratively constructs an ε \varepsilon ε -approximate weak stabilizer by extracting the algebraic structure of the Bell difference samples and computing second-moment quantities using the Bell sample output distribution. It consists of two subroutines, shown together in Figure 1 :
Figure 1. The two subroutines and the loop they form. The verifier draws M v e r M_{\mathrm{ver}} M ver Bell samples once at initialization and reuses them for every query, so its sample cost is fixed before the finder starts; the finder draws a fresh batch of M M M Bell difference samples each time. Each batch is post-selected onto C ( S ~ ) C(\widetilde{S}) C ( S ) , spanned, and reduced to its radical R R R , from which an increment Δ S ~ \Delta\widetilde{S} Δ S is proposed. The verifier must approve when the true purity drop falls below Δ ε − \Delta\varepsilon_{-} Δ ε − and must reject when it exceeds Δ ε + \Delta\varepsilon_{+} Δ ε + ; between the two thresholds, which bracket the accuracy spent on a single update, either answer is allowed, and the algorithm decides by comparing its estimate Δ γ ^ \widehat{\Delta\gamma} Δ γ with the midpoint. An approved increment is applied and the iteration ends; otherwise the finder proposes again, for at most T T T batches. The clean and intermediate modes of Sec. VI B differ only in what is offered from R R R —the whole radical at once, or single elements in turn, so that in the intermediate mode several proposals may come from one batch. The loop is schematic: the final stopping checks and the noisy-regime fallback of Sec. VI A are not shown.
A verifier reuses one set of Bell samples to estimate the incremental purity loss, Δ γ \Delta\gamma Δ γ , associated with a candidate group S ~ \widetilde{S} S , with a guarantee that holds uniformly over all queries. If the candidate entails a sufficiently small Δ γ \Delta\gamma Δ γ , it is accepted to extend the current accepted group and consumes some of the allocated purity-loss budget.
A finder processes independent batches of Bell difference samples to learn useful structure from the span of each batch. It proposes candidate groups to the verifier based on this span by computing the radical (the intersection of the centralizer of the span with the span).
The central tension for the finder is the choice of batch size. Some Bell difference samples in a batch are good , in the sense that they are consistent with the target weak stabilizer, while others are bad samples introduced by noise. More samples are needed for the span to reveal stabilizer structure, but each bad sample adds a commutation constraint and can shrink the radical of the batch.
The radical degrades in a controlled way. Once the good samples in a batch span the target, each bad sample removes at most one target direction from the radical of the span, and the radical contains at most t t t directions outside the target (Sec. VII C). Under depolarizing noise, post-selecting later batches on the accepted group also suppresses bad samples: each accepted direction halves their rate, while the rate of good samples stays bounded below. The first update is therefore the bottleneck. How many good samples a batch needs is set by the purity–escape bound, Lemma IV.4: whenever a candidate group loses purity, Bell difference samples leave its centralizer at a proportional rate.
These facts give three algorithmic regimes:
Intermediate regime. A batch can no longer be made large enough to certify the whole radical without admitting too many bad samples, but its radical still contains new target directions. The finder instead tests random elements of the radical. Because the radical contains at most t t t directions outside the target, a fraction Ω ( 2 − t ) \Omega(2^{-t}) Ω ( 2 − t ) of these elements are useful, so about 2 t 2^t 2 t tests on the same verifier data find an update at polynomial sample cost.
These three situations lead to Theorems II.2–II.5.
We report our three results for depolarizing noise to leading order in 1 ≪ t ≪ n 1 \ll t \ll n 1 ≪ t ≪ n , and ε ≪ 1 \varepsilon\ll1 ε ≪ 1 for the clean regime, with t t t the supplied bound ν ≤ t \nu\le t ν ≤ t . The constant 0.159 ≈ 1 − 2 − 1 / 4 0.159 \approx1 - 2^{-1/4} 0.159 ≈ 1 − 2 − 1/4 is where ( 1 − λ ) 4 = 1 2 (1-\lambda)^4 = \frac{1}{2} ( 1 − λ ) 4 = 2 1 : beyond it, our bounds on the first batch allow bad samples to outnumber good ones. The linear clean-regime threshold n 4 t ε \frac{n}{4t}\varepsilon 4 t n ε is the weak-noise ( λ ≪ 1 ) (\lambda\ll1) ( λ ≪ 1 ) form of the formal condition. The formal results in § 1.7 C retain the finite-size and accuracy margins.
In the case of global depolarizing noise, when the noise λ \lambda λ is sufficiently small compared to accuracy ε \varepsilon ε , the problem can be solved efficiently in both sample and time complexity:
Theorem II.2 (Clean Regime, Informal). If λ < min { 0.159 , n 4 t ε } \lambda< \min\{0.159, \frac{n}{4t}\varepsilon\} λ < min { 0.159 , 4 t n ε } , there is an algorithm that solves Problem II.1 in poly ( ⋅ ) \operatorname{poly}(\cdot) poly ( ⋅ ) time and samples.
Here, poly ( ⋅ ) \operatorname{poly}(\cdot) poly ( ⋅ ) denotes poly ( n , t , 1 ε , ln 1 δ ) \operatorname{poly}(n,t,\frac{1}{\varepsilon},\ln\frac{1}{\delta}) poly ( n , t , ε 1 , ln δ 1 ) . Explicit resource bounds for the depolarizing schedules are given in Eq. (82) and Appendix F. When the noise is bounded by a constant independent of ε \varepsilon ε , we can still solve the problem with a 2 t 2^t 2 t factor in the time complexity.
Theorem II.3 (Intermediate Regime, Informal). If λ < 0.159 \lambda< 0.159 λ < 0.159 , there is an algorithm that solves Problem II.1 with poly ( ⋅ ) \operatorname{poly}(\cdot) poly ( ⋅ ) samples and O ( 2 t ⋅ poly ( ⋅ ) ) O(2^t\cdot\operatorname{poly}(\cdot)) O ( 2 t ⋅ poly ( ⋅ )) time.
Lastly, we can always solve the problem with time and sample complexity exponential in t t t :
Theorem II.4 (Noisy Regime, Informal). For any λ < 1 \lambda< 1 λ < 1 , there is an algorithm that gives an ε \varepsilon ε -approximate weak stabilizer with O ( 4 t ⋅ poly ( ⋅ , 1 1 − λ ) ) O(4^t\cdot\operatorname{poly}(\cdot,\frac{1}{1-\lambda})) O ( 4 t ⋅ poly ( ⋅ , 1 − λ 1 )) time and samples, with success probability at least 1 − δ 1-\delta 1 − δ .
These three algorithms partition the parameter space into three regimes, each with a different best-performing algorithm among those we analyze; we make no claim of optimality within these regimes, and the boundaries are sufficient conditions from our analysis rather than sharp algorithmic limits. Figure 2 gives an example.
Figure 2. Leading-order illustration of the three regimes under global depolarizing noise, as a function of noise strength λ \lambda λ and accuracy ϵ \epsilon ϵ , for n = 2000 n = 2000 n = 2000 and t = 30 t = 30 t = 30 . In the clean regime both time and samples are polynomial; in the intermediate regime samples stay polynomial but time carries a 2 t 2^t 2 t factor. The boundary between the two depends on ϵ \epsilon ϵ , λ \lambda λ , t t t and n n n , and to leading order in 1 ≪ t ≪ n 1 \ll t \ll n 1 ≪ t ≪ n and weak noise λ ≪ 1 \lambda\ll1 λ ≪ 1 lies at λ ≈ n ϵ / 4 t \lambda\approx n\epsilon/4t λ ≈ n ϵ /4 t . Beyond the plotted boundary λ ∗ = 1 − ( n ϵ + t 2 n ) 1 / 4 ≈ 0.156 \lambda^* = 1 - \left(\frac{n\epsilon+t}{2n}\right)^{1/4} \approx0.156 λ ∗ = 1 − ( 2 n n ϵ + t ) 1/4 ≈ 0.156 only the noisy regime applies, with time and samples exponential in t t t . This threshold approaches 1 − 2 − 1 / 4 ≈ 0.159 1 - 2^{-1/4} \approx0.159 1 − 2 − 1/4 ≈ 0.159 as t / n → 0 t/n \to0 t / n → 0 . The boundaries are sufficient conditions for the analyzed algorithms, not lower bounds. Section IX compares them with simulations (Figure 9 and Figure 10 ).
For arbitrary Pauli noise, with λ \lambda λ the total error probability of Sec. II A 2, the thresholds on λ \lambda λ decrease:
Theorem II.5 (Arbitrary Pauli Noise, Informal). There is an algorithm that solves Problem II.1 in different regimes.
Clean: When λ ≤ Θ ( min { 1 t , ε t min { t , n 1 ε } } ) \lambda\le\Theta\left(\min\left\{\frac{1}{t},\frac{\varepsilon}{t\min\{t,n\frac{1}{\varepsilon}\}}\right\}\right) λ ≤ Θ ( min { t 1 , t m i n { t , n ε 1 } ε } ) , the algorithm uses poly ( ⋅ ) \operatorname{poly}(\cdot) poly ( ⋅ ) time and samples.
Intermediate: When λ ≤ Θ ( 1 t ) \lambda\le\Theta\left(\frac{1}{t}\right) λ ≤ Θ ( t 1 ) , the algorithm uses poly ( ⋅ ) \operatorname{poly}(\cdot) poly ( ⋅ ) samples and O ( 2 t ⋅ poly ( ⋅ ) ) O(2^t\cdot\operatorname{poly}(\cdot)) O ( 2 t ⋅ poly ( ⋅ )) time.
Noisy: When λ < 1 2 \lambda< \frac{1}{2} λ < 2 1 , the algorithm uses O ( 4 t ⋅ poly ( ⋅ , 1 1 − 2 λ ) ) O(4^t\cdot\operatorname{poly}(\cdot,\frac{1}{1-2\lambda})) O ( 4 t ⋅ poly ( ⋅ , 1 − 2 λ 1 )) time and samples.
Discussion
In considering the practical challenge brought by noise, we focused on the preserved weak symmetries of the noisy output state, rather than the strong stabilizer symmetries present for pure states [9 , 10 ] or considered in other work on stabilizer learning for mixed states [9 , 22 , 41 ] . Our work fills the gap between the polynomial-in-t t t requirements of pure-state stabilizer structure learners and the exponential-in-t t t cost of agnostic learning algorithms [29 ] . The noise strength in both the global depolarizing and Pauli-channel settings defines a path between these two ends.
Table 1. Learning stabilizer structure: prior guarantees and our three regimes (depolarizing thresholds; Pauli in parentheses). Accuracy metrics differ between rows (trace distance, fidelity loss, projected-purity loss), so costs are compared only in their t t t -dependence; exact statements are in the cited theorems and Eq. (82) .
Table I places our guarantees beside the three closest settings: pure-state structure learning, mixed-state structure learning under an exact promise, and agnostic tomography. Exact-promise learners are efficient but apply only at λ = 0 \lambda= 0 λ = 0 , because depolarizing noise removes every strong stabilizer. Agnostic learners apply at every λ \lambda λ , since a depolarized state keeps fidelity τ ≈ 1 − λ \tau\approx1-\lambda τ ≈ 1 − λ with ψ \psi ψ , but their cost is exponential in t t t even at λ = 0 \lambda= 0 λ = 0 . In exchange, they need neither the pure pre-noise state nor the Pauli-noise model that our guarantees use.
As noise increases, our guarantees turn exponential in t t t only at a finite noise strength, and in two stages. Under depolarizing noise, classical runtime becomes exponential first, once λ ≳ n 4 t ϵ \lambda\gtrsim\frac{n}{4t}\epsilon λ ≳ 4 t n ϵ and the intermediate regime takes over with its 2 t 2^t 2 t overhead. The number of copies stays polynomial up to a constant λ ≈ 0.159 \lambda\approx0.159 λ ≈ 0.159 , a total error probability of about 16% per copy, and only past it does the noisy regime require 4 t 4^t 4 t scaling. For n ≫ t n \gg t n ≫ t , the intermediate regime is squeezed into very low ε ≲ t / n \varepsilon\lesssim t/n ε ≲ t / n , and at coarser accuracy the clean regime reaches the constant threshold; in Figure 2 , where n = 2000 n = 2000 n = 2000 and t = 30 t = 30 t = 30 , the three regimes meet at ε ≈ 0.015 \varepsilon\approx0.015 ε ≈ 0.015 . Arbitrary Pauli noise shows the same three regimes, with the constant threshold shrunk to order 1 / t 1/t 1/ t .
Organization
Section III collects notation and known facts about Bell sampling and noise-free stabilizer learning. Section IV proves the properties of the projected purity and of Bell difference sampling on which our algorithms rest, including the purity–escape bound, Lemma IV.4. Section V constructs the verifier, and Section VI gives the two finders. The top-down finder starts from S ~ = { I } \widetilde{S} = \{I\} S = { I } and adds one verified Pauli at a time, so C ( S ~ ) C(\widetilde{S}) C ( S ) shrinks from all of P n \mathcal{P}^n P n toward C ( S ) C(S) C ( S ) ; the pure-state learners of Sec. I instead work bottom-up, growing a span toward C ( S ) C(S) C ( S ) ; the up-down finder builds each batch span bottom-up and applies the resulting updates top-down through the verifier. Section VII analyzes a single batch, including the radical bounds above, and Section VIII chains batches into the guarantees of Theorems II.2–II.5. Section IX tests the first-batch thresholds numerically, including a sample-based verifier, entangled inputs and two-qubit gate noise, and runs complete intermediate-mode trajectories under gate noise. Table II lists where each main statement is proved and what it builds on.
Table II. Reading guide and overview of the paper structure.
Preliminaries
Paulis and Cliffords
We work with n n n -qubit systems throughout. Let P n \mathcal{P}^n P n denote the n n n -qubit Pauli group modulo global phases. Each of its 4 n 4^n 4 n elements is a tensor product of the single-qubit Pauli matrices { I , X , Y , Z } \{I, X, Y, Z\} { I , X , Y , Z } . We identify elements of P n \mathcal{P}^n P n with binary-symplectic labels i = ( i X , i Z ) ∈ { 0 , 1 } 2 n i = (i_X, i_Z) \in\{0,1\}^{2n} i = ( i X , i Z ) ∈ { 0 , 1 } 2 n and write the corresponding Pauli as σ i \sigma_i σ i . We fix the sign convention so that σ i σ j ∝ σ i + j \sigma_i \sigma_j \propto\sigma_{i+j} σ i σ j ∝ σ i + j under addition in F 2 2 n \mathbb{F}_2^{2n} F 2 2 n . When it does not cause confusion, we use i i i interchangeably for the label and the Pauli itself.
Two Paulis either commute or anticommute, as captured by the symplectic inner product
⟨ i , j ⟩ ≡ i X ⋅ j Z + i Z ⋅ j X ( m o d 2 ) , (18) \langle i,j\rangle\equiv i_X \cdot j_Z + i_Z \cdot j_X \pmod{2}, \tag*{(18)} ⟨ i , j ⟩ ≡ i X ⋅ j Z + i Z ⋅ j X ( mod 2 ) , (18)
via the rule σ i σ j = ( − 1 ) ⟨ i , j ⟩ σ j σ i \sigma_i\sigma_j = (-1)^{\langle i,j\rangle}\sigma_j\sigma_i σ i σ j = ( − 1 ) ⟨ i , j ⟩ σ j σ i . In Bell sampling, the Y Y Y -parity π Y ( i ) = i X ⋅ i Z ( m o d 2 ) \pi_Y(i) = i_X \cdot i_Z \pmod2 π Y ( i ) = i X ⋅ i Z ( mod 2 ) commonly arises because Y Y Y is the only Pauli not equal to its transpose. We summarize the four identities that combine π Y \pi_Y π Y and ⟨ ⋅ , ⋅ ⟩ \langle\cdot,\cdot\rangle ⟨ ⋅ , ⋅ ⟩ in Appendix A (Lemma A.1 ).
For a subspace H ⊆ F 2 2 n H \subseteq\mathbb{F}_2^{2n} H ⊆ F 2 2 n , its centralizer C ( H ) ≡ { j : ⟨ i , j ⟩ = 0 ∀ i ∈ H } C(H) \equiv\{j : \langle i,j\rangle= 0\ \forall i \in H\} C ( H ) ≡ { j : ⟨ i , j ⟩ = 0 ∀ i ∈ H } is its symplectic complement, so dim C ( H ) = 2 n − dim H \dim C(H) = 2n - \dim H dim C ( H ) = 2 n − dim H and C ( C ( H ) ) = H C(C(H)) = H C ( C ( H )) = H . A subspace H H H is commuting if and only if H ⊆ C ( H ) H \subseteq C(H) H ⊆ C ( H ) , so a commuting subspace has dimension at most n n n . The radical of H H H ,
rad ( H ) ≡ H ∩ C ( H ) , (19) \operatorname{rad}(H) \equiv H \cap C(H), \tag*{(19)} rad ( H ) ≡ H ∩ C ( H ) , (19)
consists of the elements of H H H that commute with all of H H H ; it is always commuting.
Any density matrix expands uniquely in the Pauli basis,
ρ = ∑ i ∈ { 0 , 1 } 2 n a i σ i , a i = 1 2 n tr ( ρ σ i ) . (20) \rho= \sum_{i \in\{0,1\}^{2n}} a_i \sigma_i,\qquad a_i = \frac{1}{2^n}\operatorname{tr}(\rho\sigma_i). \tag*{(20)} ρ = i ∈ { 0 , 1 } 2 n ∑ a i σ i , a i = 2 n 1 tr ( ρ σ i ) . (20)
Trace normalization pins a 0 = 2 − n a_0 = 2^{-n} a 0 = 2 − n , and the purity is
γ ≡ tr ( ρ 2 ) = 2 n ∑ i ∈ { 0 , 1 } 2 n a i 2 . (21) \gamma\equiv\operatorname{tr}(\rho^2) = 2^n \sum_{i \in\{0,1\}^{2n}} a_i^2. \tag*{(21)} γ ≡ tr ( ρ 2 ) = 2 n i ∈ { 0 , 1 } 2 n ∑ a i 2 . (21)
The Clifford group C n \mathcal{C}_n C n is the normalizer of P n \mathcal{P}^n P n in the unitary group: C ∈ C n C \in\mathcal{C}_n C ∈ C n iff C σ i C † = ± σ ϕ ( i ) C\sigma_i C^\dagger= \pm\sigma_{\phi(i)} C σ i C † = ± σ ϕ ( i ) for some F 2 \mathbb{F}_2 F 2 -linear symplectic permutation ϕ \phi ϕ of { 0 , 1 } 2 n \{0,1\}^{2n} { 0 , 1 } 2 n . That is, Cliffords map Paulis to Paulis under conjugation. They therefore permute { a i } \{a_i\} { a i } and map supp ( ρ ) \operatorname{supp}(\rho) supp ( ρ ) and S S S to their images under ϕ \phi ϕ , leaving their dimensions, and hence the nullity ν \nu ν , invariant.
Bell Sampling
Both subroutines of our algorithm are built on one measurement primitive, Bell sampling [6 ] , in which two copies of ρ \rho ρ are measured jointly in the n n n -qubit Bell basis. The verifier uses Bell samples to estimate purities, and the finder uses differences of Bell samples to reveal the Pauli support. The n n n -qubit Bell basis is
∣ σ i ⟩ ≡ ( σ i ⊗ I ) ∣ Φ n + ⟩ , ∣ Φ n + ⟩ = 1 2 n ∑ x ∈ { 0 , 1 } n ∣ x ⟩ ∣ x ⟩ , (22) \lvert\sigma_i\rangle\equiv(\sigma_i \otimes I)\lvert\Phi_n^+\rangle,\qquad\lvert\Phi_n^+\rangle= \frac{1}{\sqrt{2^n}}\sum_{x \in\{0,1\}^n}\lvert x\rangle\lvert x\rangle, \tag*{(22)} ∣ σ i ⟩ ≡ ( σ i ⊗ I ) ∣ Φ n + ⟩ , ∣ Φ n + ⟩ = 2 n 1 x ∈ { 0 , 1 } n ∑ ∣ x ⟩ ∣ x ⟩ , (22)
an orthonormal basis of 2 n 2n 2 n qubits labeled by the same binary-symplectic strings i ∈ { 0 , 1 } 2 n i \in\{0,1\}^{2n} i ∈ { 0 , 1 } 2 n that index the Paulis themselves. Because distinct Paulis σ i ≠ ± σ j \sigma_i \ne\pm\sigma_j σ i = ± σ j give orthogonal Bell states, each outcome of the measurement is a single label i i i , which we call a Bell sample . Figure 3 shows the measurement.
Figure 3. The Bell sampling protocol. Two copies of ρ \rho ρ are measured jointly in the transversal n n n -qubit Bell basis: a CNOT and a Hadamard act on each pair of corresponding qubits, followed by a computational-basis measurement. The 2 n 2n 2 n measured bits form the Bell-sample label i i i .
The outcome distribution is the diagonal of ρ ⊗ ρ \rho\otimes\rho ρ ⊗ ρ in this basis. Expanding both copies of ρ \rho ρ in Paulis collapses the double sum over ( j , k ) (j,k) ( j , k ) to a single sum over j j j (derivation in Appendix A):
P B e l l ( i ) = tr ( ∣ σ i ⟩ ⟨ σ i ∣ ( ρ ⊗ ρ ) ) = ∑ j ∈ { 0 , 1 } 2 n ( − 1 ) π Y ( j ) + ⟨ i , j ⟩ a j 2 . (23) P_{\mathrm{Bell}}(i) = \operatorname{tr}\left(\lvert\sigma_i\rangle\langle\sigma_i\rvert(\rho\otimes\rho)\right) = \sum_{j \in\{0,1\}^{2n}} (-1)^{\pi_Y(j)+\langle i,j\rangle}a_j^2. \tag*{(23)} P Bell ( i ) = tr ( ∣ σ i ⟩ ⟨ σ i ∣ ( ρ ⊗ ρ ) ) = j ∈ { 0 , 1 } 2 n ∑ ( − 1 ) π Y ( j ) + ⟨ i , j ⟩ a j 2 . (23)
A single Bell sample probes the quadratic weights { a j 2 } \{a_j^2\} { a j 2 } rather than the raw Pauli amplitudes { a j } \{a_j\} { a j } . The signs ( − 1 ) π Y ( j ) + ⟨ i , j ⟩ (-1)^{\pi_Y(j)+\langle i,j\rangle} ( − 1 ) π Y ( j ) + ⟨ i , j ⟩ encode the interference between different Paulis in supp ( ρ ) \operatorname{supp}(\rho) supp ( ρ ) and are the reason P B e l l P_{\mathrm{Bell}} P Bell carries stabilizer structure. An immediate corollary is that the purity of ρ \rho ρ can be computed as an expectation over Bell samples:
Lemma III.1. The purity of ρ \rho ρ can be estimated from Bell samples via
γ = ⟨ ( − 1 ) π Y ( i ) ⟩ i ∼ B e l l . (24) \gamma= \left\langle(-1)^{\pi_Y(i)} \right\rangle_{i \sim\mathrm{Bell}}. \tag*{(24)} γ = ⟨ ( − 1 ) π Y ( i ) ⟩ i ∼ Bell . (24)
We defer the proof, which is a special case of Lemma V.1 in § 1.4 .
As ( − 1 ) π Y ( i ) ∈ { − 1 , + 1 } (-1)^{\pi_Y(i)} \in\{-1,+1\} ( − 1 ) π Y ( i ) ∈ { − 1 , + 1 } is bounded, Hoeffding gives M = O ( ε − 2 ln ( 1 / δ ) ) M = O(\varepsilon^{-2}\ln(1/\delta)) M = O ( ε − 2 ln ( 1/ δ )) Bell samples as sufficient to estimate γ \gamma γ to additive error ε \varepsilon ε with confidence 1 − δ 1-\delta 1 − δ .
Beyond purity estimation, Bell samples carry a structural constraint, which Bell difference sampling exploits. In the pure-state setting, P B e l l P_{\mathrm{Bell}} P Bell is supported on a shift of the Pauli support:
Proposition III.2 (Hidden-shift structure of Bell samples, [6 , 10 ] ). For a pure state ψ \psi ψ , there exists a hidden shift k ∈ { 0 , 1 } 2 n k \in\{0,1\}^{2n} k ∈ { 0 , 1 } 2 n (depending on ψ \psi ψ ) such that
P B e l l ( i ) ≠ 0 ⇒ i ⊕ k ∈ supp ( ψ ) . (25) P_{\mathrm{Bell}}(i) \ne0 \Rightarrow i \oplus k \in\operatorname{supp}(\psi). \tag*{(25)} P Bell ( i ) = 0 ⇒ i ⊕ k ∈ supp ( ψ ) . (25)
Proof. See Refs. [6 , 10 ] .
Bell Difference Sampling
XORing two i.i.d. Bell samples i 1 , i 2 ∼ P B e l l i_1,i_2 \sim P_{\mathrm{Bell}} i 1 , i 2 ∼ P Bell cancels the hidden shift of Proposition III.2, so for pure states the difference sample
b ≡ i 1 ⊕ i 2 (26) b \equiv i_1 \oplus i_2 \tag*{(26)} b ≡ i 1 ⊕ i 2 (26)
lies in the support span C ( S ) C(S) C ( S ) (Proposition III.5 below). Its distribution P B e l l D i f f P_{\mathrm{BellDiff}} P BellDiff is the convolution of P B e l l P_{\mathrm{Bell}} P Bell with itself; substituting Eq. (23) and collapsing the inner sum via Property 3 of Lemma A.1 gives a clean closed form:
P B e l l D i f f ( i ) = ∑ j ∈ P n P B e l l ( j ) P B e l l ( i + j ) = 4 n ∑ j ∈ P n ( − 1 ) ⟨ i , j ⟩ a j 4 . (27) P_{\mathrm{BellDiff}}(i) = \sum_{j \in\mathcal{P}^n} P_{\mathrm{Bell}}(j)P_{\mathrm{Bell}}(i+j) = 4^n \sum_{j \in\mathcal{P}^n} (-1)^{\langle i,j\rangle} a_j^4. \tag*{(27)} P BellDiff ( i ) = j ∈ P n ∑ P Bell ( j ) P Bell ( i + j ) = 4 n j ∈ P n ∑ ( − 1 ) ⟨ i , j ⟩ a j 4 . (27)
The full derivation is in Appendix A.
Structurally, Eq. (27) is the binary-symplectic Fourier transform of the quartic Pauli weights { a j 4 } \{a_j^4\} { a j 4 } . Where Bell sampling probes the quadratic structure { a j 2 } \{a_j^2\} { a j 2 } , Bell difference sampling probes the ℓ 4 \ell_4 ℓ 4 structure of the Pauli expansion. This shift from ℓ 2 \ell_2 ℓ 2 to ℓ 4 \ell_4 ℓ 4 is what makes the distribution sensitive to the finer group structure our algorithm exploits.
An immediate consequence of the Fourier form is that translating by any element of the weak stabilizer leaves P B e l l D i f f P_{\mathrm{BellDiff}} P BellDiff unchanged:
Observation III.3. The Bell difference sampling distribution is invariant under translations by S S S : for any x ∈ S , y ∈ { 0 , 1 } 2 n x \in S, y \in\{0,1\}^{2n} x ∈ S , y ∈ { 0 , 1 } 2 n ,
P B e l l D i f f ( y ) = P B e l l D i f f ( x + y ) P_{\mathrm{BellDiff}}(y) = P_{\mathrm{BellDiff}}(x+y) P BellDiff ( y ) = P BellDiff ( x + y ) .
Pure State (Noise-Free) Stabilizer Learning
For a pure state ψ \psi ψ , the Pauli expansion is highly constrained: every Pauli with a nonzero coefficient is an element of the centralizer of the stabilizer group.
Observation III.4. For a pure state ψ \psi ψ , a i ≠ 0 a_i \ne0 a i = 0 only if i ∈ C ( S ) i \in C(S) i ∈ C ( S ) .
Bell difference sampling inherits this constraint:
Proposition III.5. For a pure state ψ \psi ψ , P B e l l D i f f ( i ) ≠ 0 P_{\mathrm{BellDiff}}(i) \ne0 P BellDiff ( i ) = 0 only if i ∈ C ( S ) i \in C(S) i ∈ C ( S ) .
Proof. See Appendix A.
Proposition III.5 is the core of noise-free stabilizer learning [6 , 10 , 46 ] . Every Bell difference sample b j b_j b j lies in the support span C ( S ) C(S) C ( S ) , and the support of P B e l l D i f f P_{\mathrm{BellDiff}} P BellDiff spans C ( S ) C(S) C ( S ) as an F 2 \mathbb{F}_2 F 2 -subspace of { 0 , 1 } 2 n \{0,1\}^{2n} { 0 , 1 } 2 n . Enough samples therefore span C ( S ) C(S) C ( S ) itself, and taking its symplectic complement recovers S = C ( C ( S ) ) = Stab ( ψ ) S = C(C(S)) = \operatorname{Stab}(\psi) S = C ( C ( S )) = Stab ( ψ ) .
However, exact recovery may require observing very rare samples. We instead allow an ε \varepsilon ε -approximate weak stabilizer, where sufficiently small components remain unresolved.
Table 1 (PDF p. 10).
Algorithm 1 gives an ε \varepsilon ε -approximate weak stabilizer group with O ( n + t + log 1 δ ε ) O\left(n + \frac{t+\log\frac{1}{\delta}}{\varepsilon}\right) O ( n + ε t + l o g δ 1 ) with failure probability at most δ \delta δ . The proof is deferred as Corollary VII.3 in Sec. VII.B.
With access to S ~ \tilde{S} S ~ , measuring its commuting generators on additional copies fixes their signs, which Bell data leaves open, and projection onto the most likely joint eigenspace introduces trace-distance error at most ε \sqrt{\varepsilon} ε by Eq. (12) . Full-state tomography on the compressed ν ~ = n − dim S ~ ≤ t \tilde{\nu}=n-\dim\tilde{S}\le t ν ~ = n − dim S ~ ≤ t -qubit subsystem then yields an O ( ε ) O(\sqrt{\varepsilon}) O ( ε ) -accurate approximation to ψ \psi ψ with O ( 2 ν ~ / ε ) O(2^{\tilde{\nu}}/\varepsilon) O ( 2 ν ~ / ε ) additional measurements [9 , 10 , 40 ] .
Under noise, Proposition III.5 fails: even arbitrarily weak white noise places Bell difference samples outside C ( S ) C(S) C ( S ) , so Algorithm 1 returns { I } \{I\} { I } for large M M M (§ 1 ). We therefore target the ε \varepsilon ε -approximate weak stabilizer of Sec. II A 1.
Asymptotic notation
Most of our statements are presented to leading order to reduce their mathematical complexity. We read the symbols as follows throughout unless a local regime is specified. Each statement comes with conditions of the form A ≪ B A\ll B A ≪ B or A ≫ B A\gg B A ≫ B , such as n − t ≫ 1 n-t\gg1 n − t ≫ 1 , t ≫ ln 1 ε t\gg\ln\frac{1}{\varepsilon} t ≫ ln ε 1 or ε ≪ 1 \varepsilon\ll1 ε ≪ 1 . These define the limit in which it holds: the ratio A / B A/B A / B tends to 0 0 0 , or to ∞ \infty ∞ . The approximate comparisons ≈ \approx ≈ , ≲ \lesssim ≲ and ≳ \gtrsim ≳ keep the leading terms and suppress relative corrections that are small in this limit: A ≈ B A\approx B A ≈ B means A = B ( 1 + o ( 1 ) ) A=B(1+o(1)) A = B ( 1 + o ( 1 )) , and A ≲ B A\lesssim B A ≲ B means A ≤ B ( 1 + o ( 1 ) ) A\le B(1+o(1)) A ≤ B ( 1 + o ( 1 )) , with ≳ \gtrsim ≳ analogous. When a ratio is only fixed and small rather than vanishing, these comparisons hold up to a relative error of that size. A sufficient condition stated with ≲ \lesssim ≲ needs enough margin to absorb the suppressed corrections. By contrast, O ( ⋅ ) O(\cdot) O ( ⋅ ) , Ω ( ⋅ ) \Omega(\cdot) Ω ( ⋅ ) and Θ ( ⋅ ) \Theta(\cdot) Θ ( ⋅ ) are constant-factor statements with untracked constants, as in the theorems for arbitrary Pauli noise, and o ( 1 ) o(1) o ( 1 ) is a quantity that vanishes in the limit. Where exact finite bounds are needed we state them separately, as in Eq. (49) ; elsewhere we stay at leading order to keep the structure visible. Auxiliary choices such as target dimensions, per-update budgets and batch sizes stay symbolic for the same reason; for the clean mode under depolarizing noise, Appendix E fixes one explicit set of them, with a finite check under which it provably works.
Projected Purity and Bell Difference Sampling
Section II defined the Pauli twirl T S ~ T_{\tilde{S}} T S ~ , the projected purity γ S ~ \gamma_{\tilde{S}} γ S ~ and the purity loss Δ γ ( S ~ ) \Delta\gamma(\tilde{S}) Δ γ ( S ~ ) for a commuting Pauli group S ~ \tilde{S} S ~ . This section proves the properties of these quantities on which the algorithms rest. Section IV A records elementary properties of the projected purity. Section IV B connects the projected purity to Bell difference sampling; its main result, Lemma IV.4, relates the purity that the verifier certifies to the samples that the finder observes, and is proved in Appendix C. Section IV C shows when the weak stabilizer is commuting and why candidate groups with small purity loss cannot conflict with one another.
Projected Purity as a Norm
In terms of the Pauli expansion of Eq. (20) , the twirl keeps exactly the components σ i \sigma_i σ i with i ∈ C ( S ~ ) i\in C(\tilde{S}) i ∈ C ( S ~ ) : conjugating σ i \sigma_i σ i by g ∈ S ~ g\in\tilde{S} g ∈ S ~ gives ( − 1 ) ⟨ g , σ i ⟩ σ i (-1)^{\langle g,\sigma_i\rangle}\sigma_i ( − 1 ) ⟨ g , σ i ⟩ σ i , and averaging over S ~ \tilde{S} S ~ kills every σ i \sigma_i σ i that anticommutes with some element of S ~ \tilde{S} S ~ . Since { σ i / 2 n } \{\sigma_i/\sqrt{2^n}\} { σ i / 2 n } is an orthonormal basis for the Hilbert–Schmidt inner product tr ( A † B ) \operatorname{tr}(A^\dagger B) tr ( A † B ) , T S ~ T_{\tilde{S}} T S ~ is the orthogonal projection onto span { σ i : i ∈ C ( S ~ ) } \operatorname{span}\{\sigma_i:i\in C(\tilde{S})\} span { σ i : i ∈ C ( S ~ )} , the operators commuting with all of S ~ \tilde{S} S ~ . The projected purity and the purity loss are
γ S ~ = ∥ T S ~ ( ρ ) ∥ H S 2 = 2 n ∑ i ∈ C ( S ~ ) a i 2 , Δ γ ( S ~ ) = ∥ ρ − T S ~ ( ρ ) ∥ H S 2 = 2 n ∑ i ∉ C ( S ~ ) a i 2 . (28) \gamma_{\tilde{S}}=\lVert T_{\tilde{S}}(\rho)\rVert_{\mathrm{HS}}^2=2^n\sum_{i\in C(\tilde{S})}a_i^2,\qquad\Delta\gamma(\tilde{S})=\lVert\rho-T_{\tilde{S}}(\rho)\rVert_{\mathrm{HS}}^2=2^n\sum_{i\notin C(\tilde{S})}a_i^2. \tag*{(28)} γ S ~ = ∥ T S ~ ( ρ ) ∥ HS 2 = 2 n i ∈ C ( S ~ ) ∑ a i 2 , Δ γ ( S ~ ) = ∥ ρ − T S ~ ( ρ ) ∥ HS 2 = 2 n i ∈ / C ( S ~ ) ∑ a i 2 . (28)
Here γ S ~ \gamma_{\tilde{S}} γ S ~ is the squared length of the component of ρ \rho ρ compatible with S ~ \tilde{S} S ~ and Δ γ ( S ~ ) \Delta\gamma(\tilde{S}) Δ γ ( S ~ ) is the squared distance from ρ \rho ρ to the nearest operator compatible with S ~ \tilde{S} S ~ .
In the trivial case S ~ = { I } \tilde{S}=\{I\} S ~ = { I } nothing is filtered and γ { I } = γ \gamma_{\{I\}}=\gamma γ { I } = γ . The twirl and γ H \gamma_H γ H are defined by the same formulas for any Pauli label subgroup H H H , including noncommuting ones. Later, we will use commutativity for the joint eigenspace description (Appendix B) and for the verifier’s product estimator (Lemma V.1).
Two properties of the projected purity will be useful. First, bigger groups filter more, since H ⊆ H ′ H\subseteq H' H ⊆ H ′ gives C ( H ′ ) ⊆ C ( H ) C(H')\subseteq C(H) C ( H ′ ) ⊆ C ( H ) :
Observation IV.1. For groups H , H ′ H,H' H , H ′ with H ⊆ H ′ H\subseteq H' H ⊆ H ′ , γ H ′ ≤ γ H \gamma_{H'}\le\gamma_H γ H ′ ≤ γ H .
Second, adding the true weak stabilizer S = C ( supp ( ρ ) ) S=C(\operatorname{supp}(\rho)) S = C ( supp ( ρ )) to any group costs no purity, since every i i i with a i ≠ 0 a_i\ne0 a i = 0 lies in C ( S ) C(S) C ( S ) by definition:
Observation IV.2. For any group H ≤ P n H\le\mathcal{P}^n H ≤ P n , γ H + S = γ H \gamma_{H+S}=\gamma_H γ H + S = γ H .
Bell Difference Samples and Purity
The verifier certifies projected purities, while the finder observes only where Bell difference samples fall. The two lemmas of this subsection connect these quantities. Bell difference samples also fall in the centralizer of any commuting subgroup H H H with probability at least the squared projected purity of H H H :
Lemma IV.3. For a commuting subgroup H ≤ P n H \leq\mathcal{P}^{n} H ≤ P n , P B e l l D i f f ( C ( H ) ) ≡ Pr b ∼ B e l l D i f f [ b ∈ C ( H ) ] ≥ γ H 2 \mathsf{P}_{\mathrm{BellDiff}}(C(H)) \equiv\Pr_{b\sim\mathrm{BellDiff}}[b \in C(H)] \geq\gamma_{H}^{2} P BellDiff ( C ( H )) ≡ Pr b ∼ BellDiff [ b ∈ C ( H )] ≥ γ H 2 .
Proof. See Proposition B.3 in Appendix B.
The next lemma refines this bound. For H ⊆ H ′ H \subseteq H' H ⊆ H ′ , it bounds the probability that a Bell difference sample in C ( H ) C(H) C ( H ) also lies in C ( H ′ ) C(H') C ( H ′ ) , in terms of the purity drop γ H − γ H ′ \gamma_H-\gamma_{H'} γ H − γ H ′ . The finder relies on it each time it enlarges a candidate group:
Lemma IV.4 (Purity–escape bound). Let H H H be a commuting Pauli subgroup and let H ⊆ H ′ ⊆ C ( H ) H \subseteq H' \subseteq C(H) H ⊆ H ′ ⊆ C ( H ) , where H ′ H' H ′ need not be commuting. Write Δ γ = γ H − γ H ′ \Delta\gamma=\gamma_H-\gamma_{H'} Δ γ = γ H − γ H ′ . For every 0 ≤ Δ ε ≤ Δ γ 0 \leq\Delta\varepsilon\leq\Delta\gamma 0 ≤ Δ ε ≤ Δ γ ,
Pr b ∼ B e l l D i f f [ b ∈ C ( H ′ ) ∣ b ∈ C ( H ) ] ≤ 1 − 2 Δ ε + 2 ( Δ ε ) 2 γ H . (29) \Pr_{b\sim\mathrm{BellDiff}}[b \in C(H') \mid b \in C(H)] \leq1-2\Delta\varepsilon+\frac{2(\Delta\varepsilon)^2}{\gamma_H}. \tag*{(29)} b ∼ BellDiff Pr [ b ∈ C ( H ′ ) ∣ b ∈ C ( H )] ≤ 1 − 2Δ ε + γ H 2 ( Δ ε ) 2 . (29)
There is no small-loss assumption on Δ γ \Delta\gamma Δ γ .
Proof. The proof uses the eigenspaces of H H H to compare Bell difference probabilities with projected purity, and is deferred to Appendix C, which also shows that the leading constant 2 2 2 is sharp.
Degenerate Supports and No Wrong Turns
Up to this point it has been implied that S = C ( supp ( ρ ) ) S=C(\operatorname{supp}(\rho)) S = C ( supp ( ρ )) is a commuting group, so that ν = n − dim S \nu=n-\dim S ν = n − dim S is a well-defined nullity. This is automatic for pure states, but need not hold for mixed states. Consider the maximally mixed state I / 2 n I/2^n I / 2 n : its support is { I } \{I\} { I } , whose centralizer is P n \mathcal{P}^n P n —a noncommuting group with F 2 \mathbb{F}_2 F 2 -dimension 2 n 2n 2 n and ν = − n \nu=-n ν = − n . The projected purity γ S \gamma_S γ S remains well defined, but S S S can no longer serve as a commuting stabilizer target.
This failure has a specific form: S S S is noncommuting only when, in some Clifford frame, one qubit of ρ \rho ρ is maximally mixed and uncorrelated with the remaining qubits; we say such a qubit is lost . The lemma below states this quantitatively. If two anticommuting Paulis each nearly commute with ρ \rho ρ , in the sense that twirling over either one removes little purity, then the purity of ρ \rho ρ is at most 1 / 2 1/2 1/2 plus the purity removed by the two twirls. The same statement controls the approximate version we need, in which two low-loss candidate groups fail to commute.
Lemma IV.5 (Lost qubit). Let g , h ∈ P n g,h \in\mathcal{P}^n g , h ∈ P n anticommute, and suppose 2 n ∑ i ∉ C ( g ) a i 2 ≤ ε 1 2^n\sum_{i\notin C(g)}a_i^2 \leq\varepsilon_1 2 n ∑ i ∈ / C ( g ) a i 2 ≤ ε 1 and 2 n ∑ i ∉ C ( h ) a i 2 ≤ ε 2 2^n\sum_{i\notin C(h)}a_i^2 \leq\varepsilon_2 2 n ∑ i ∈ / C ( h ) a i 2 ≤ ε 2 . Then the purity satisfies γ = tr ( ρ 2 ) ≤ 1 2 + ε 1 + ε 2 \gamma=\operatorname{tr}(\rho^2)\leq\frac{1}{2}+\varepsilon_1+\varepsilon_2 γ = tr ( ρ 2 ) ≤ 2 1 + ε 1 + ε 2 .
Proof. We split ρ \rho ρ into a component commuting with both g g g and h h h , which carries purity at most 1 / 2 1/2 1/2 , and a remainder, which carries at most ε 1 + ε 2 \varepsilon_1+\varepsilon_2 ε 1 + ε 2 . Define ρ ∥ = ∑ i ∈ C ( g ) ∩ C ( h ) a i σ i \rho_{\parallel}=\sum_{i\in C(g)\cap C(h)}a_i\sigma_i ρ ∥ = ∑ i ∈ C ( g ) ∩ C ( h ) a i σ i . By Eq. (21) and a union bound over the excluded labels,
γ − ∥ ρ ∥ ∥ H S 2 = 2 n ∑ i ∉ C ( g ) ∩ C ( h ) a i 2 ≤ ε 1 + ε 2 . (30) \gamma-\lVert\rho_{\parallel}\rVert_{\mathrm{HS}}^2=2^n\sum_{i\notin C(g)\cap C(h)}a_i^2\leq\varepsilon_1+\varepsilon_2. \tag*{(30)} γ − ∥ ρ ∥ ∥ HS 2 = 2 n i ∈ / C ( g ) ∩ C ( h ) ∑ a i 2 ≤ ε 1 + ε 2 . (30)
Now choose a Clifford U U U such that U g U † = X 1 UgU^\dagger=X_1 U g U † = X 1 and U h U † = Z 1 UhU^\dagger=Z_1 U h U † = Z 1 . Cliffords preserve commutation, so U ρ ∥ U † U\rho_{\parallel}U^\dagger U ρ ∥ U † is exactly the component of U ρ U † U\rho U^\dagger U ρ U † that commutes with both X 1 X_1 X 1 and Z 1 Z_1 Z 1 , i.e. acts as the identity on qubit 1:
U ρ ∥ U † = I 2 ⊗ tr 1 ( U ρ U † ) . (31) U\rho_{\parallel}U^\dagger=\frac{I}{2}\otimes\operatorname{tr}_1(U\rho U^\dagger). \tag*{(31)} U ρ ∥ U † = 2 I ⊗ tr 1 ( U ρ U † ) . (31)
The purity of this state is 1 2 tr [ ( tr 1 U ρ U † ) 2 ] ≤ 1 2 \frac{1}{2}\operatorname{tr}\left[(\operatorname{tr}_1 U\rho U^\dagger)^2\right]\leq\frac{1}{2} 2 1 tr [ ( tr 1 U ρ U † ) 2 ] ≤ 2 1 . The Hilbert–Schmidt norm is unitarily invariant, so ∥ ρ ∥ ∥ H S 2 ≤ 1 2 \lVert\rho_{\parallel}\rVert_{\mathrm{HS}}^2\leq\frac{1}{2} ∥ ρ ∥ ∥ HS 2 ≤ 2 1 . Hence γ ≤ 1 2 + ε 1 + ε 2 \gamma\leq\frac{1}{2}+\varepsilon_1+\varepsilon_2 γ ≤ 2 1 + ε 1 + ε 2 .
Two cases will be important. First, when ε 1 = ε 2 = 0 \varepsilon_1=\varepsilon_2=0 ε 1 = ε 2 = 0 , if S S S contained an anticommuting pair g , h g,h g , h , both would commute with the entire support, so γ ≤ 1 2 \gamma\leq\frac{1}{2} γ ≤ 2 1 . In fact, S S S is noncommuting exactly when ρ \rho ρ is Clifford-equivalent to 1 2 I ⊗ ρ ′ \frac{1}{2}I\otimes\rho' 2 1 I ⊗ ρ ′ , a state with one maximally mixed qubit. Second, when ε 1 = ε 2 = ε \varepsilon_1=\varepsilon_2=\varepsilon ε 1 = ε 2 = ε , if S 1 , S 2 S_1,S_2 S 1 , S 2 are commuting groups with purity loss at most ε \varepsilon ε , and g ∈ S 1 , h ∈ S 2 g\in S_1,h\in S_2 g ∈ S 1 , h ∈ S 2 anticommute, then C ( S 1 ) ⊆ C ( g ) C(S_1)\subseteq C(g) C ( S 1 ) ⊆ C ( g ) and C ( S 2 ) ⊆ C ( h ) C(S_2)\subseteq C(h) C ( S 2 ) ⊆ C ( h ) , so the hypotheses hold and γ ≤ 1 2 + 2 ε \gamma\leq\frac{1}{2}+2\varepsilon γ ≤ 2 1 + 2 ε . Intuitively, ρ \rho ρ is approximately invariant under two anticommuting Paulis. In the Clifford frame of the proof they become X 1 X_1 X 1 and Z 1 Z_1 Z 1 , and the only operators commuting with both act as the identity on qubit 1. So ρ \rho ρ is close to a state carrying an identity factor on that logical qubit:
U ρ U † ≈ 1 2 I ⊗ ρ r e s t , ∥ U ρ U † − 1 2 I ⊗ ρ r e s t ∥ H S 2 ≤ 2 ε , (32) U\rho U^\dagger\approx\frac{1}{2} I \otimes\rho_{\mathrm{rest}}, \qquad\left\|U\rho U^\dagger-\frac{1}{2}I\otimes\rho_{\mathrm{rest}}\right\|_{\mathrm{HS}}^2 \le2\varepsilon, \tag*{(32)} U ρ U † ≈ 2 1 I ⊗ ρ rest , U ρ U † − 2 1 I ⊗ ρ rest HS 2 ≤ 2 ε , (32)
with ρ r e s t = tr 1 ( U ρ U † ) \rho_{\mathrm{rest}}=\operatorname{tr}_1(U\rho U^\dagger) ρ rest = tr 1 ( U ρ U † ) . Thus, if two low-loss candidate groups fail to commute, then in some Clifford frame one qubit of ρ \rho ρ is close to maximally mixed and uncorrelated with the remaining qubits.
For the noise models of Sec. II A 2 the target is well behaved. By Eq. (13) , no Pauli coefficient is rescaled to zero when λ < 1 2 \lambda< \frac{1}{2} λ < 2 1 , or for any λ < 1 \lambda< 1 λ < 1 under depolarizing noise, so S = Stab ( ψ ) S=\operatorname{Stab}(\psi) S = Stab ( ψ ) exactly.
What the finder analyses need is that low-loss candidates never conflict. We secure this through the accuracy budget.
Assumption IV.6 (Accuracy budget). The total accuracy budget satisfies ε < ( 1 − 2 λ ) 2 / 4 \varepsilon< (1-2\lambda)^2/4 ε < ( 1 − 2 λ ) 2 /4 for a Pauli channel with λ < 1 / 2 \lambda< 1/2 λ < 1/2 , and ε < ( 1 − λ ) 2 / 4 \varepsilon< (1-\lambda)^2/4 ε < ( 1 − λ ) 2 /4 for depolarizing noise with λ < 1 \lambda< 1 λ < 1 .
This restricts only the requested accuracy. A larger ε \varepsilon ε can always be lowered below the cap, which strengthens the output guarantee, and the lowered value is then used consistently in the update budgets, the verifier gap, and the cost bounds. The cap applies to the total purity loss accumulated over all accepted updates, not to each update separately.
Lemma IV.7 (Compatibility). Under Assumption IV.6, any internally commuting Pauli groups S 1 , S 2 S_1,S_2 S 1 , S 2 with γ − γ S 1 ≤ ε \gamma-\gamma_{S_1}\le\varepsilon γ − γ S 1 ≤ ε and γ − γ S 2 ≤ ε \gamma-\gamma_{S_2}\le\varepsilon γ − γ S 2 ≤ ε commute with each other.
Proof. Let Δ γ ψ ( H ) \Delta\gamma_\psi(H) Δ γ ψ ( H ) denote the purity loss of H H H in the underlying pure state ψ \psi ψ . By Eq. (13) , a Pauli channel scales each coefficient by f i ≥ 1 − 2 λ f_i\ge1-2\lambda f i ≥ 1 − 2 λ , so Δ γ ( H ) ≥ ( 1 − 2 λ ) 2 Δ γ ψ ( H ) \Delta\gamma(H)\ge(1-2\lambda)^2\Delta\gamma_\psi(H) Δ γ ( H ) ≥ ( 1 − 2 λ ) 2 Δ γ ψ ( H ) . For depolarizing noise, Δ γ ( H ) = ( 1 − λ ) 2 Δ γ ψ ( H ) \Delta\gamma(H)=(1-\lambda)^2\Delta\gamma_\psi(H) Δ γ ( H ) = ( 1 − λ ) 2 Δ γ ψ ( H ) exactly, since only the identity coefficient escapes the common factor and it lies in every C ( H ) C(H) C ( H ) . Either way, Assumption IV.6 turns a loss of at most ε \varepsilon ε in ρ \rho ρ into a loss below 1 4 \frac{1}{4} 4 1 in ψ \psi ψ . If g ∈ S 1 g\in S_1 g ∈ S 1 and h ∈ S 2 h\in S_2 h ∈ S 2 anticommuted, then C ( S 1 ) ⊆ C ( g ) C(S_1)\subseteq C(g) C ( S 1 ) ⊆ C ( g ) and C ( S 2 ) ⊆ C ( h ) C(S_2)\subseteq C(h) C ( S 2 ) ⊆ C ( h ) , and Lemma IV.5 applied to ψ \psi ψ would give 1 = γ ψ < 1 2 + 1 4 + 1 4 1=\gamma_\psi<\frac{1}{2}+\frac{1}{4}+\frac{1}{4} 1 = γ ψ < 2 1 + 4 1 + 4 1 , a contradiction.
Lemma IV.7, not the numerical cap, is what the finder analyses generally use, and the cap is only a sufficient condition. Another sufficient condition is γ > 1 2 + 2 ε \gamma>\frac{1}{2}+2\varepsilon γ > 2 1 + 2 ε , from the approximate reading of Lemma IV.5 applied to ρ \rho ρ directly; under depolarizing noise it holds whenever λ < 1 − 1 2 + 2 ε \lambda<1-\sqrt{\frac{1}{2}+2\varepsilon} λ < 1 − 2 1 + 2 ε , whose right-hand side approaches 1 − 1 / 2 ≈ 0.293 1-1/\sqrt{2}\approx0.293 1 − 1/ 2 ≈ 0.293 as ε → 0 \varepsilon\to0 ε → 0 . More generally, compatibility can only fail through the nearly erased logical qubit described above. The states we target are noisy images of pure states in which every encoded qubit still carries information at resolution ε \varepsilon ε , so we expect compatibility to hold well beyond the cap. This is a physical expectation, not a theorem, which is why the cap is the formal assumption. From here on, the finder analyses and recovery guarantees use Assumption IV.6, and hence Lemma IV.7, unless stated otherwise.
Candidate Verification
The first step towards finding the weak stabilizer is the ability to verify whether some candidate group S ~ \widetilde{S} S , or a proposed extension of it, stays within its purity-loss budget, as in Δ γ = γ − γ S ~ ≤ ε \Delta\gamma=\gamma-\gamma_{\widetilde{S}}\le\varepsilon Δ γ = γ − γ S ≤ ε . It does not by itself certify S ⊆ S ~ S\subseteq\widetilde{S} S ⊆ S , which an ε \varepsilon ε -approximate weak stabilizer also requires; that condition is handled by the finder analyses supplied.
We build the verifier in two steps. First, we show that the projected purity γ S ~ \gamma_{\widetilde{S}} γ S is estimable from Bell samples (Lemma V.1) and turn this into a one-shot verifier, Algorithm 2, to fix ideas. § 1.4 A then upgrades it to the verifier the finders actually call, Algorithm 3: it estimates the relative drop γ S ~ − γ S ~ + Δ S ~ \gamma_{\widetilde{S}}-\gamma_{\widetilde{S}+\Delta\widetilde{S}} γ S − γ S + Δ S of a proposed extension and reuses one dataset across adaptive queries (Theorem V.4 ). § 1.4 B collects the statistical facts that the finder analyses rely on.
In Sec. III B, we already showed that γ \gamma γ can be efficiently estimated. Ref. [10 ] gives Bell-sample estimators for single-Pauli overlaps tr ( σ g ρ σ g ρ ) \operatorname{tr}(\sigma_g\rho\sigma_g\rho) tr ( σ g ρ σ g ρ ) . For a commuting S ~ \widetilde{S} S , the projected purity is their average, γ S ~ = 1 ∣ S ~ ∣ ∑ g ∈ S ~ tr ( σ g ρ σ g ρ ) \gamma_{\widetilde{S}}=\frac{1}{|\widetilde{S}|}\sum_{g\in\widetilde{S}}\operatorname{tr}(\sigma_g\rho\sigma_g\rho) γ S = ∣ S ∣ 1 ∑ g ∈ S tr ( σ g ρ σ g ρ ) , and with a bit of engineering the averaged estimator becomes a filter that only checks the generators of S ~ \widetilde{S} S :
Lemma V.1 (Projected Purity). For a commuting candidate group S ~ = ⟨ q 1 , q 2 , … , q m ⟩ \widetilde{S}=\langle q_1,q_2,\ldots,q_m\rangle S = ⟨ q 1 , q 2 , … , q m ⟩ , Bell sampling gives
γ S ~ = ⟨ ( − 1 ) π Y ( i ) ∏ k = 1 m [ ( − 1 ) π Y ( g k ) + ⟨ g k , i ⟩ = 1 ] ⟩ i ∼ B e l l . (33) \gamma_{\widetilde{S}}=\left\langle(-1)^{\pi_Y(i)}\prod_{k=1}^{m}\left[(-1)^{\pi_Y(g_k)+\langle g_k,i\rangle}=1\right]\right\rangle_{i\sim\mathrm{Bell}}. \tag*{(33)} γ S = ⟨ ( − 1 ) π Y ( i ) k = 1 ∏ m [ ( − 1 ) π Y ( g k ) + ⟨ g k , i ⟩ = 1 ] ⟩ i ∼ Bell . (33)
The proof can be found in Appendix A. As a justification, recall from Lemma III.1 that the purity γ \gamma γ can be estimated via γ = ⟨ ( − 1 ) π Y ( i ) ⟩ i ∼ B e l l \gamma=\left\langle(-1)^{\pi_Y(i)}\right\rangle_{i\sim\mathrm{Bell}} γ = ⟨ ( − 1 ) π Y ( i ) ⟩ i ∼ Bell . Eq. (33) is the usual purity estimator with an additional filter: outcomes contribute their usual sign when all conditions are satisfied, and zero otherwise.
By γ = ⟨ ( − 1 ) π Y ( i ) ⟩ i ∼ B e l l \gamma= \langle(-1)^{\pi_Y(i)} \rangle_{i\sim\mathrm{Bell}} γ = ⟨( − 1 ) π Y ( i ) ⟩ i ∼ Bell , we can also estimate the purity drop:
γ − γ ~ S = ⟨ ( − 1 ) π Y ( i ) ( 1 − ∏ k = 1 s [ ( − 1 ) π Y ( g k ) + ⟨ g k , i ⟩ = 1 ] ) ⟩ i ∼ B e l l (34) \gamma-\widetilde{\gamma}_S=\left\langle(-1)^{\pi_Y(i)}\left(1-\prod_{k=1}^{s}\left[(-1)^{\pi_Y(g_k)+\langle g_k,i\rangle}=1\right]\right)\right\rangle_{i\sim\mathrm{Bell}} \tag*{(34)} γ − γ S = ⟨ ( − 1 ) π Y ( i ) ( 1 − k = 1 ∏ s [ ( − 1 ) π Y ( g k ) + ⟨ g k , i ⟩ = 1 ] ) ⟩ i ∼ Bell (34)
which allows us to verify whether a candidate group keeps its purity loss within ε \varepsilon ε . A formal description is as follows:
Table 2 (PDF p. 14).
Proposition V.2. Let Δ γ = γ − γ ~ S \Delta\gamma=\gamma-\widetilde{\gamma}_S Δ γ = γ − γ S . With probability at least 1 − δ 1-\delta 1 − δ :
If γ − γ ~ S ≥ ε \gamma-\widetilde{\gamma}_S\ge\varepsilon γ − γ S ≥ ε , then Algorithm 2 is guaranteed to reject.
If γ − γ ~ S = 0 \gamma-\widetilde{\gamma}_S=0 γ − γ S = 0 (i.e., S ~ ⊆ S \widetilde{S}\subseteq S S ⊆ S is part of the exact weak stabilizer), then the algorithm is guaranteed to accept.
Proof. Let ε ′ = ε 2 \varepsilon'=\frac{\varepsilon}{2} ε ′ = 2 ε , so M = ⌈ 2 ε ′ 2 ln 2 δ ⌉ M=\left\lceil\frac{2}{\varepsilon'^2}\ln\frac{2}{\delta}\right\rceil M = ⌈ ε ′2 2 ln δ 2 ⌉ . Eq. (34) shows that Δ γ \Delta\gamma Δ γ is estimated correctly. Formally, because each sample i ∼ B e l l i\sim\mathrm{Bell} i ∼ Bell satisfies ( − 1 ) π Y ( i ) ( 1 − ∏ k = 1 s [ ( − 1 ) π Y ( g k ) + ⟨ g k , i ⟩ = 1 ] ) ∈ { − 1 , 0 , 1 } (-1)^{\pi_Y(i)}\left(1-\prod_{k=1}^{s}\left[(-1)^{\pi_Y(g_k)+\langle g_k,i\rangle}=1\right]\right)\in\{-1,0,1\} ( − 1 ) π Y ( i ) ( 1 − ∏ k = 1 s [ ( − 1 ) π Y ( g k ) + ⟨ g k , i ⟩ = 1 ] ) ∈ { − 1 , 0 , 1 } , by Hoeffding’s inequality, P ( ∣ Δ γ ^ − Δ γ ∣ ≥ ε ′ ) ≤ 2 e − 1 2 M ε ′ 2 ≤ δ P\left(\left|\widehat{\Delta\gamma}-\Delta\gamma\right|\ge\varepsilon'\right)\le2e^{-\frac{1}{2}M\varepsilon'^2}\le\delta P ( Δ γ − Δ γ ≥ ε ′ ) ≤ 2 e − 2 1 M ε ′2 ≤ δ . So with probability at least 1 − δ 1-\delta 1 − δ , ∣ Δ γ ^ − Δ γ ∣ < ε 2 \left|\widehat{\Delta\gamma}-\Delta\gamma\right|<\frac{\varepsilon}{2} Δ γ − Δ γ < 2 ε . In this case, when Δ γ = 0 \Delta\gamma=0 Δ γ = 0 , Δ γ ^ < ε ′ = ε 2 \widehat{\Delta\gamma}<\varepsilon'=\frac{\varepsilon}{2} Δ γ < ε ′ = 2 ε ; thus, the algorithm accepts. Meanwhile, if Δ γ ≥ ε = 2 ε ′ \Delta\gamma\ge\varepsilon=2\varepsilon' Δ γ ≥ ε = 2 ε ′ , then Δ γ ^ > ε ′ = ε 2 \widehat{\Delta\gamma}>\varepsilon'=\frac{\varepsilon}{2} Δ γ > ε ′ = 2 ε ; thus, the algorithm rejects.
Adaptive Candidate Verification
Algorithm 2 is a proof of concept. This is not sufficient as a subroutine for the full stabilizer-finding algorithm. Here, a finder algorithm needs to build the group step by step. It will maintain a guess S ~ \widetilde{S} S and request to add another group Δ S ~ \Delta\widetilde{S} Δ S via S ~ ← S ~ + Δ S ~ \widetilde{S}\leftarrow\widetilde{S}+\Delta\widetilde{S} S ← S + Δ S (S ~ ← span ( S ~ ∪ Δ S ~ ) \widetilde{S}\leftarrow\operatorname{span}(\widetilde{S}\cup\Delta\widetilde{S}) S ← span ( S ∪ Δ S ) ). A verifier algorithm will see whether this addition is valid by checking Δ γ = γ S ~ − γ S ~ + Δ S ~ ≤ ε \Delta\gamma=\gamma_{\widetilde{S}}-\gamma_{\widetilde{S}+\Delta\widetilde{S}}\le\varepsilon Δ γ = γ S − γ S + Δ S ≤ ε for some ε \varepsilon ε . For this purpose, we’ll need three upgrades to the simple candidate verifier in Algorithm 2:
Δ γ \Delta\gamma Δ γ : The verifier needs to estimate the relative purity drop γ S ~ − γ S ~ + Δ S ~ \gamma_{\widetilde{S}}-\gamma_{\widetilde{S}+\Delta\widetilde{S}} γ S − γ S + Δ S instead of the full purity drop from the original state γ − γ S ~ + Δ S ~ \gamma-\gamma_{\widetilde{S}+\Delta\widetilde{S}} γ − γ S + Δ S .
Δ ε − \Delta\varepsilon_- Δ ε − and Δ ε + \Delta\varepsilon_+ Δ ε + : It takes as input a pair of parameters Δ ε − \Delta\varepsilon_- Δ ε − and Δ ε + \Delta\varepsilon_+ Δ ε + with 0 ≤ Δ ε − < Δ ε + 0\le\Delta\varepsilon_-<\Delta\varepsilon_+ 0 ≤ Δ ε − < Δ ε + . The verifier guarantees acceptance if Δ γ ≤ Δ ε − \Delta\gamma\le\Delta\varepsilon_- Δ γ ≤ Δ ε − , and guarantees rejection if Δ γ > Δ ε + \Delta\gamma>\Delta\varepsilon_+ Δ γ > Δ ε + .
Adaptivity: If the number of requests from the finder is large, it is advantageous for the verifier to draw a large number of samples first and use this fixed set of samples to estimate Δ γ \Delta\gamma Δ γ whenever needed. This saves sample complexity. This is adaptive because each future query to the verifier will depend on results from the previous queries.
For our queries, a single set of Bell samples suffices, as in adaptive data analysis [47 ] . The key is to estimate the purity drops for all nested commuting group pairs accurately at once; the finder can then choose its queries adaptively. A crude simultaneous guarantee could already be obtained by union-bounding over all commuting Pauli groups: since each is generated by at most n n n Paulis, there are at most 4 n 2 4^{n^2} 4 n 2 candidates, giving O ( n 2 + log ( 1 / δ ) Δ ε g a p 2 ) O\left(\frac{n^2+\log(1/\delta)}{\Delta\varepsilon_{\mathrm{gap}}^2}\right) O ( Δ ε gap 2 n 2 + l o g ( 1/ δ ) ) Bell samples.
For a commuting group H = ⟨ g 1 , … , g s ⟩ H=\langle g_1,\ldots,g_s\rangle H = ⟨ g 1 , … , g s ⟩ , write the filter in Eq. (33) as
Q H ( b ) = ∏ k = 1 s [ ( − 1 ) π Y ( g k ) + ⟨ g k , b ⟩ = 1 ] . (35) Q_H(b)=\prod_{k=1}^{s}\left[(-1)^{\pi_Y(g_k)+\langle g_k,b\rangle}=1\right]. \tag*{(35)} Q H ( b ) = k = 1 ∏ s [ ( − 1 ) π Y ( g k ) + ⟨ g k , b ⟩ = 1 ] . (35)
The filter is independent of which generators we pick.2
The following lemma sharpens the union-bound estimate above by exploiting additional structure in the filters Q H Q_H Q H , reducing the dependence on n n n from quadratic to essentially linear.
Lemma V.3 (Uniform Bell-sample estimates). Let 0 < Δ ε g a p ≤ 1 0 < \Delta_{\varepsilon\mathrm{gap}} \le1 0 < Δ ε gap ≤ 1 and 0 < δ < 1 0 < \delta< 1 0 < δ < 1 . From M M M independent Bell samples, define
Δ ^ γ H , H ′ = 1 M ∑ i = 1 M ( − 1 ) π Y ( b i ) ( Q H ( b i ) − Q H ′ ( b i ) ) (36) \widehat{\Delta}_{\gamma_{H,H'}} = \frac{1}{M}\sum_{i=1}^{M}(-1)^{\pi_Y(b_i)}\left(Q_H(b_i)-Q_{H'}(b_i)\right) \tag*{(36)} Δ γ H , H ′ = M 1 i = 1 ∑ M ( − 1 ) π Y ( b i ) ( Q H ( b i ) − Q H ′ ( b i ) ) (36) for every pair of commuting groups H ⊆ H ′ H \subseteq H' H ⊆ H ′ , with purity drop Δ γ H , H ′ = γ H − γ H ′ \Delta_{\gamma_{H,H'}}=\gamma_H-\gamma_{H'} Δ γ H , H ′ = γ H − γ H ′ . A sample size
M = O ( n ln ( 2 / Δ ε g a p ) + ln ( 1 / δ ) ( Δ ε g a p ) 2 ) (37) M=O\left(\frac{n\ln(2/\Delta_{\varepsilon\mathrm{gap}})+\ln(1/\delta)}{(\Delta_{\varepsilon\mathrm{gap}})^2}\right) \tag*{(37)} M = O ( ( Δ ε gap ) 2 n ln ( 2/ Δ ε gap ) + ln ( 1/ δ ) ) (37) suffices to ensure ∣ Δ ^ γ H , H ′ − Δ γ H , H ′ ∣ ≤ Δ ε g a p / 2 |\widehat{\Delta}_{\gamma_{H,H'}}-\Delta_{\gamma_{H,H'}}|\le\Delta_{\varepsilon\mathrm{gap}}/2 ∣ Δ γ H , H ′ − Δ γ H , H ′ ∣ ≤ Δ ε gap /2 simultaneously for all such pairs, with probability at least 1 − δ 1-\delta 1 − δ . An explicit choice of M M M is given in Eq. (135) .
Proof. The condition Q H ( b ) = 1 Q_H(b)=1 Q H ( b ) = 1 is a system of affine linear equations in the 2 n 2n 2 n bits of b b b . On any set of sample points, its nonempty intersection with an affine subspace is determined by an affine basis of at most 2 n + 1 2n+1 2 n + 1 of those points. This bounds the number of distinct filter patterns on the samples. The number of patterns for Q H − Q H ′ Q_H-Q_{H'} Q H − Q H ′ is at most the square of this bound. The fixed signs ( − 1 ) π Y ( b ) (-1)^{\pi_Y(b)} ( − 1 ) π Y ( b ) do not change this count. Symmetrization and Hoeffding’s inequality then give Eq. (37) ; Appendix D gives the details.
Let Δ ε g a p > 0 \Delta_{\varepsilon\mathrm{gap}}>0 Δ ε gap > 0 be a known lower bound on every query’s gap Δ ε + − Δ ε − \Delta_{\varepsilon+}-\Delta_{\varepsilon-} Δ ε + − Δ ε − . Lemma V.3 makes every purity-drop estimate accurate to within Δ ε g a p / 2 \Delta_{\varepsilon\mathrm{gap}}/2 Δ ε gap /2 . This guarantee holds for any number of adaptive queries, using the same samples throughout.
Algorithm 3: Adaptive Candidate Verification
Initial Input: Minimum query gap 0 < Δ ε g a p ≤ 1 0<\Delta_{\varepsilon\mathrm{gap}}\le1 0 < Δ ε gap ≤ 1 ; failure probability δ \delta δ .
Draw M M M independent Bell samples b 1 , … , b M b_1,\ldots,b_M b 1 , … , b M , with M M M chosen by Eq. (135) ;
Data: Current commuting guess S ~ \widetilde{S} S supplied by the finder, initially { I } \{I\} { I } .
Query: A candidate increment Δ S ~ \Delta\widetilde{S} Δ S and thresholds 0 ≤ Δ ε − < Δ ε + ≤ 1 0\le\Delta_{\varepsilon-}<\Delta_{\varepsilon+}\le1 0 ≤ Δ ε − < Δ ε + ≤ 1 , with Δ ε + − Δ ε − ≥ Δ ε g a p \Delta_{\varepsilon+}-\Delta_{\varepsilon-}\ge\Delta_{\varepsilon\mathrm{gap}} Δ ε + − Δ ε − ≥ Δ ε gap .
Output: Approve or reject the candidate update S ~ ′ = S ~ + Δ S ~ \widetilde{S}'=\widetilde{S}+\Delta\widetilde{S} S ′ = S + Δ S .
Compute a basis of S ~ ′ \widetilde{S}' S ′ extending a basis of S ~ \widetilde{S} S ; reject if S ~ ′ \widetilde{S}' S ′ is not commuting;
Compute Δ ^ γ = 1 M ∑ i = 1 M ( − 1 ) π Y ( b i ) ( Q S ~ ( b i ) − Q S ~ ′ ( b i ) ) \widehat{\Delta}_{\gamma}=\frac{1}{M}\sum_{i=1}^{M}(-1)^{\pi_Y(b_i)}\left(Q_{\widetilde{S}}(b_i)-Q_{\widetilde{S}'}(b_i)\right) Δ γ = M 1 ∑ i = 1 M ( − 1 ) π Y ( b i ) ( Q S ( b i ) − Q S ′ ( b i ) ) ;
if Δ ^ γ ≤ Δ ε + + Δ ε − 2 \widehat{\Delta}_{\gamma}\le\frac{\Delta_{\varepsilon+}+\Delta_{\varepsilon-}}{2} Δ γ ≤ 2 Δ ε + + Δ ε − then approve the candidate S ~ ′ \widetilde{S}' S ′ ;
else reject;
Theorem V.4. Let Δ γ = γ S ~ − γ S ~ ′ \Delta_{\gamma}=\gamma_{\widetilde{S}}-\gamma_{\widetilde{S}'} Δ γ = γ S − γ S ′ . With probability at least 1 − δ 1-\delta 1 − δ , the following hold simultaneously for all queries satisfying Algorithm 3’s gap condition and having commuting S ~ ′ \widetilde{S}' S ′ :
Proof. By Lemma V.1, the purity-drop estimate has mean
Δ γ = γ S ~ − γ S ~ ′ = ⟨ ( − 1 ) π Y ( b ) ( Q S ~ ( b ) − Q S ~ ′ ( b ) ) ⟩ b ∼ B e l l . (38) \Delta_{\gamma}=\gamma_{\widetilde{S}}-\gamma_{\widetilde{S}'}=\left\langle(-1)^{\pi_Y(b)}\left(Q_{\widetilde{S}}(b)-Q_{\widetilde{S}'}(b)\right)\right\rangle_{b\sim\mathrm{Bell}}. \tag*{(38)} Δ γ = γ S − γ S ′ = ⟨ ( − 1 ) π Y ( b ) ( Q S ( b ) − Q S ′ ( b ) ) ⟩ b ∼ Bell . (38)
On the uniform event from Lemma V.3 , every query satisfies
∣ Δ ^ γ − Δ γ ∣ ≤ Δ ε g a p 2 ≤ Δ ε + − Δ ε − 2 . (39) \left|\widehat{\Delta}_{\gamma}-\Delta_{\gamma}\right|\le\frac{\Delta_{\varepsilon\mathrm{gap}}}{2}\le\frac{\Delta_{\varepsilon+}-\Delta_{\varepsilon-}}{2}. \tag*{(39)} Δ γ − Δ γ ≤ 2 Δ ε gap ≤ 2 Δ ε + − Δ ε − . (39)
The two claims follow by comparing with the midpoint of the thresholds, as Figure 4 illustrates. The uniform event already covers every possible nested commuting group pair, so adaptive choices require no further failure-probability allocation.
Figure 4. The decision requirements of Algorithm 3, on the axis of the true purity drop Δ γ \Delta\gamma Δ γ . Below Δ ε − \Delta\varepsilon_{-} Δ ε − the verifier must approve, above Δ ε + \Delta\varepsilon_{+} Δ ε + it must reject, and in the gap between them either answer is allowed. The algorithm decides by comparing its estimate Δ γ ^ \widehat{\Delta\gamma} Δ γ with the midpoint of the two thresholds, and on the uniform event of Lemma V.3 that estimate is accurate to Δ ε g a p / 2 \Delta\varepsilon_{\mathrm{gap}}/2 Δ ε gap /2 . The two ranges shown are therefore the worst cases: a true Δ γ \Delta\gamma Δ γ sitting on either threshold can only move as far as the decision line, never across it, which is exactly Theorem V.4 .
The verifier uses M M M Bell samples, or 2 M 2M 2 M state copies, once at initialization. To evaluate queries efficiently, cache the signs ( − 1 ) π Y ( b i ) (-1)^{\pi_Y(b_i)} ( − 1 ) π Y ( b i ) and the current filter values Q S ~ ( b i ) Q_{\widetilde{S}}(b_i) Q S ( b i ) . A proposal supplied by r r r generators costs O ( n r M + n 2 r ) O(nrM+n^2r) O ( n r M + n 2 r ) bit operations, including basis reduction and commutativity checks; redundant generators can be discarded during this reduction. Storage is O ( n M + n 2 ) O(nM+n^2) O ( n M + n 2 ) bits. The finder decides whether to apply an approved update; the cached filter values change only when it does so.
The cost of Algorithm 3 depends, among other things, on the gap Δ ε + − Δ ε − \Delta_{\varepsilon+}-\Delta_{\varepsilon-} Δ ε + − Δ ε − . In practice, it is often more convenient to think in terms of a single threshold Δ ε \Delta_{\varepsilon} Δ ε . As an example, we can do this by choosing
Δ ε − = ( 1 − o ( 1 ) ) Δ ε , Δ ε + = Δ ε , (40) \Delta_{\varepsilon-}=(1-o(1))\Delta_{\varepsilon},\qquad\Delta_{\varepsilon+}=\Delta_{\varepsilon}, \tag*{(40)} Δ ε − = ( 1 − o ( 1 )) Δ ε , Δ ε + = Δ ε , (40)
where the o ( 1 ) o(1) o ( 1 ) relative slack lies between 0 and 1. The verifier then effectively accepts updates with purity drop below Δ ε \Delta\varepsilon Δ ε and rejects updates with purity drop above Δ ε \Delta\varepsilon Δ ε , up to a vanishingly small window around the threshold. This lets us work with the single parameter Δ ε \Delta\varepsilon Δ ε , at the cost of an additional factor polynomial in the inverse slack. We can let the slack tend to zero sufficiently slowly, e.g. inverse-logarithmically, that this overhead remains polynomial in the problem parameters. From here on, a clean-mode query with threshold Δ ε \Delta\varepsilon Δ ε means this choice, and leading-order statements absorb the slack.
Discussion
Algorithm 3, the candidate verifier, will be the main subroutine inside a bigger stabilizer-finding algorithm. The verifier guards updates to the stabilizer guess by allowing at most Δ ε \Delta\varepsilon Δ ε per step. Hence, after multiple updates, the total allowed purity drop is ∑ Δ ε ≤ ε \sum\Delta\varepsilon\le\varepsilon ∑ Δ ε ≤ ε . The finder applies only nontrivial approved updates.
We may restrict algorithmic budgets to 0 < ε ≤ 1 0 < \varepsilon\le1 0 < ε ≤ 1 and 0 < δ ≤ 1 / 2 0 < \delta\le1/2 0 < δ ≤ 1/2 : reducing larger requested values to these limits gives a stronger guarantee. The clean and intermediate noise thresholds involving 1 / t 1/t 1/ t are stated for t ≥ 1 t \ge1 t ≥ 1 ; when t = 0 t = 0 t = 0 , the top-down algorithm already has polynomial cost under the same purity lower bound.
There are two additional considerations:
No Wrong Turns: The product-filter estimator above requires S ~ \widetilde{S} S to be a commuting Pauli group. Accordingly, at each update step we check that S ~ + Δ S ~ \widetilde{S} + \Delta\widetilde{S} S + Δ S is commuting. Our goal is eventually to reach a stage where S ⊆ S ~ S \subseteq\widetilde{S} S ⊆ S , where S S S denotes the exact weak stabilizer. If the verifier were ever to accept an update S ~ ← S ~ + Δ S ~ \widetilde{S} \leftarrow\widetilde{S} + \Delta\widetilde{S} S ← S + Δ S such that the resulting S ~ \widetilde{S} S does not commute with S S S , then the commutativity requirement would preclude any future update from reaching S ⊆ S ~ S \subseteq\widetilde{S} S ⊆ S . In this sense, such an update is a “wrong turn.”
Lemma IV.7 rules this out. On the uniform event of Lemma V.3 , every accepted update has true purity drop at most its Δ ε + \Delta\varepsilon_{+} Δ ε + , so the losses telescope:
γ − γ S ~ ≤ ∑ accepted updates Δ ε + ≤ ε , (41) \gamma-\gamma_{\widetilde{S}} \le\sum_{\text{accepted updates}} \Delta\varepsilon_{+} \le\varepsilon, \tag*{(41)} γ − γ S ≤ accepted updates ∑ Δ ε + ≤ ε , (41)
where the second inequality is how every finder below allocates its budget. The true S S S has zero loss, so by the lemma the current S ~ \widetilde{S} S commutes with S S S . A missing element of S S S therefore passes the commutativity check, and adding it costs no purity (Observation IV.2), so the verifier accepts it: no accepted update can block S ⊆ S ~ S \subseteq\widetilde{S} S ⊆ S .
Sample Reuse: The Bell samples used by the verifier are drawn once and reused across its queries. Bell difference samples used by the finder are drawn separately. Each finder batch still consists of fresh Bell difference samples, independent of the verifier data and of earlier batches.
In the finder analyses below, we assume the verifier is always correct: fix its dataset on the uniform-accuracy event of Lemma V.3 . This event depends only on the verifier dataset, so fresh finder batches keep their usual distribution conditional on it and on the preceding history. In these analyses and the finder pseudocode, δ \delta δ denotes the finder’s failure budget under this assumption. The verifier has a separate failure budget δ v e r \delta_{\mathrm{ver}} δ ver . The overall failure probability is at most δ + δ v e r \delta+ \delta_{\mathrm{ver}} δ + δ ver . For convenience, we leave their allocation free subject to the requested overall confidence.
To summarize what the verifier hands to the finder: given the current commuting guess S ~ \widetilde{S} S and a proposed commuting extension Δ S ~ \Delta\widetilde{S} Δ S , Algorithm 3 accepts if the purity drop Δ γ ≤ Δ ε − \Delta\gamma\le\Delta\varepsilon_{-} Δ γ ≤ Δ ε − and rejects if Δ γ > Δ ε + \Delta\gamma> \Delta\varepsilon_{+} Δ γ > Δ ε + , using one Bell-sample dataset drawn up front and reused across arbitrarily many adaptive queries ((Lemma V.3)). Its sample cost is therefore fixed before the finder starts; only its runtime grows with the number of queries. The finder, which we turn to next, never has to certify an update itself—its only job is to propose extensions that the verifier is likely to accept.
Learning Algorithms
With the verifier in hand, what remains is to propose extensions Δ S ~ \Delta\widetilde{S} Δ S that it will accept. We call this half of the pipeline the finder. This section develops the finders and their proposal rules, and deliberately stops short of proving that they work. Sec. VII establishes what a single batch achieves, and § 1.7 specifies the full schedules and parameter choices and analyzes them.
We start with the top-down algorithm in Sec. VI A, which feeds Bell difference samples to the verifier one at a time. It is a complete pipeline—pseudocode plus Theorem VI.2—and costs O ( 4 t ⋅ poly ) O(4^t \cdot\operatorname{poly}) O ( 4 t ⋅ poly ) , which is what we use in the noisy regime. Sec. VI B then introduces the up-down algorithm, Algorithm 5: it collects a batch of Bell difference samples, post-selects them against the current guess, and proposes updates from the radical of their span. Its propose subroutine comes in two modes, clean and intermediate, and Sec. VI C defines both through a small worked example.
Top-Down Algorithm
The Algorithm
With the candidate verifier guarding updates to the guess S ~ \widetilde{S} S , we need a finder to propose these updates. The most straightforward idea is to propose updates directly from the Bell difference samples.
Table 4.
Intuitively, S ~ \widetilde{S} S is like a sieve on the Pauli expansion ρ = ∑ i ∈ P n a i σ i \rho= \sum_{i \in\mathcal{P}_n} a_i \sigma_i ρ = ∑ i ∈ P n a i σ i : only terms commuting with S ~ \widetilde{S} S contribute to γ S ~ \gamma_{\widetilde{S}} γ S . As we build up S ~ \widetilde{S} S , the sieve becomes finer—more constraints, fewer survivors, so the remaining set of Pauli terms becomes smaller. Because we repeatedly narrow down by adding more constraints, we call this approach the top-down algorithm for stabilizer learning.
Proof of Correctness
We now show that Algorithm 4 succeeds with T ≈ 4 t n / γ 2 T \approx4^t n/\gamma^2 T ≈ 4 t n / γ 2 draws. The argument needs only two facts: the verifier always accepts a genuine element of S S S , and enough Bell difference samples land in S S S to span it.
Assumption VI.1 (Algorithm 4). To simplify calculations, for the top-down algorithm, we assume
Number of qubits n ≫ 1 n \gg1 n ≫ 1 ;
The failure probability of the algorithm is at most δ \delta δ , with ln 1 δ ≪ n \ln\frac{1}{\delta} \ll n ln δ 1 ≪ n .
Theorem VI.2. By taking T ≈ 4 t n γ 2 T \approx4^t \frac{n}{\gamma^2} T ≈ 4 t γ 2 n , with probability at least 1 − δ 1-\delta 1 − δ , Algorithm 4 successfully gives an ϵ \epsilon ϵ -approximate weak stabilizer S ~ \widetilde{S} S .
Proof. Since we set Δ ϵ ± = ϵ n \Delta\epsilon_{\pm}=\frac{\epsilon}{n} Δ ϵ ± = n ϵ , and any commuting subgroup in P n \mathcal{P}^{n} P n has dimension at most n n n , we would never run out of accuracy: γ − γ ~ S ≤ ∑ Δ ϵ ≤ ϵ \gamma-\widetilde{\gamma}_{S}\leq\sum\Delta\epsilon\leq\epsilon γ − γ S ≤ ∑ Δ ϵ ≤ ϵ . In the meantime, a Pauli in S S S not yet in S ~ \widetilde{S} S passes both checks of Algorithm 4: it commutes with S ~ \widetilde{S} S by Lemma IV.7, and adding it causes no purity drop, so the verifier accepts it (Theorem V.4 ). Therefore, as long as we get enough Bell difference samples to span S S S , S ~ ⊆ S \widetilde{S}\subseteq S S ⊆ S , which means S ~ \widetilde{S} S will be an ϵ \epsilon ϵ -approximate weak stabilizer. Say we need M M M samples in S S S for this to happen with high probability. Formally, we want to show:
With probability at least 1 − δ 1 1-\delta_{1} 1 − δ 1 , we have drawn M M M samples in S S S ;
Conditioned on having M M M samples in S S S , with probability at least 1 − δ 2 1-\delta_{2} 1 − δ 2 , these M M M samples span S S S .
We set δ 1 + δ 2 ≤ δ \delta_{1}+\delta_{2}\leq\delta δ 1 + δ 2 ≤ δ . For simplicity, say δ 1 = δ 2 = δ 2 \delta_{1}=\delta_{2}=\frac{\delta}{2} δ 1 = δ 2 = 2 δ .
Proof of 1: By Eq. (27) , P B e l l D i f f ( i ) P_{\mathrm{BellDiff}}(i) P BellDiff ( i ) is largest for i ∈ S i\in S i ∈ S . By Lemma IV.3, P B e l l D i f f ( C ( S ) ) ≥ γ S 2 = γ 2 P_{\mathrm{BellDiff}}(C(S))\geq\gamma_{S}^{2}=\gamma^{2} P BellDiff ( C ( S )) ≥ γ S 2 = γ 2 . So, P B e l l D i f f ( S ) ≥ ∣ S ∣ ∣ C ( S ) ∣ P B e l l D i f f ( C ( S ) ) ≥ 4 − ν γ 2 P_{\mathrm{BellDiff}}(S)\geq\frac{|S|}{|C(S)|}P_{\mathrm{BellDiff}}(C(S))\geq4^{-\nu}\gamma^{2} P BellDiff ( S ) ≥ ∣ C ( S ) ∣ ∣ S ∣ P BellDiff ( C ( S )) ≥ 4 − ν γ 2 . Let q = 4 − ν γ 2 q=4^{-\nu}\gamma^{2} q = 4 − ν γ 2 ; by the Chernoff bound, we need T ≥ M + 2 M ln 1 δ 1 + 2 ln 1 δ 1 q T\geq\frac{M+\sqrt{2M\ln\frac{1}{\delta_{1}}}+2\ln\frac{1}{\delta_{1}}}{q} T ≥ q M + 2 M l n δ 1 1 + 2 l n δ 1 1 .
Proof of 2: By Observation III.3, when conditioned on being in S S S , the Bell difference distribution is uniform. So we bound success probability by bounding the failure events. If failure happens, then all the samples in S S S must be contained in a proper subspace of S S S . Since S S S is a Pauli subgroup of dimension n − ν n-\nu n − ν , there are 2 n − ν − 1 2^{n-\nu}-1 2 n − ν − 1 codimension-1 subspaces (each subspace commutes with an element of P n / C ( S ) \mathcal{P}^{n}/C(S) P n / C ( S ) ). For each codimension-1 subspace, the probability of all the Bell difference samples in S S S falling inside this subspace is bounded above by 1 2 M \frac{1}{2^{M}} 2 M 1 . So, the probability of failure is bounded above by 2 n − ν − M − 2 − M ≤ 2 n − ν − M 2^{n-\nu-M}-2^{-M}\leq2^{n-\nu-M} 2 n − ν − M − 2 − M ≤ 2 n − ν − M . So, taking M ≥ n − ν + log 2 1 δ 2 M\geq n-\nu+\log_{2}\frac{1}{\delta_{2}} M ≥ n − ν + log 2 δ 2 1 suffices.
Combined, to leading order, it suffices to take T ≳ n − ν q = 4 ν n − ν γ 2 T\gtrsim\frac{n-\nu}{q}=4^{\nu}\frac{n-\nu}{\gamma^{2}} T ≳ q n − ν = 4 ν γ 2 n − ν . Since ν \nu ν is unknown, we should take T ≈ 4 t n γ 2 T\approx4^{t}\frac{n}{\gamma^{2}} T ≈ 4 t γ 2 n , where we used 0 ≤ ν ≤ t 0\leq\nu\leq t 0 ≤ ν ≤ t and ln 1 δ 1 = ln 1 δ 2 = ln 2 δ ≪ n \ln\frac{1}{\delta_{1}}=\ln\frac{1}{\delta_{2}}=\ln\frac{2}{\delta}\ll n ln δ 1 1 = ln δ 2 1 = ln δ 2 ≪ n .
In practice, setting T T T requires us to know purity γ \gamma γ , which can be estimated first via Bell sampling (Lemma III.1). The top-down algorithm also reaches noncommuting targets: when a Pauli channel with λ ≥ 1 2 \lambda\geq\frac{1}{2} λ ≥ 2 1 erases coefficients, S S S can grow beyond Stab ( ∣ ψ ⟩ ) \operatorname{Stab}(|\psi\rangle) Stab ( ∣ ψ ⟩) and become noncommuting (Sec. IV C). Dropping the commutativity check handles this, since the projected purity of any Pauli group is the average of the overlaps tr ( σ g ρ σ g ρ ) \operatorname{tr}(\sigma_{g}\rho\sigma_{g}\rho) tr ( σ g ρ σ g ρ ) (§ 1.4 ), which the verifier can estimate by drawing g g g at random. We do not pursue this case, since such an S S S is a symmetry created by the noise.
To summarize, when γ \gamma γ is at least a constant, the top-down algorithm uses time and samples scaling as
O ( 4 t ⋅ poly ( n , 1 ϵ , ln 1 δ , ln 1 δ v e r ) ) . O\left(4^{t}\cdot\operatorname{poly}\left(n,\frac{1}{\epsilon},\ln\frac{1}{\delta},\ln\frac{1}{\delta_{\mathrm{ver}}}\right)\right). O ( 4 t ⋅ poly ( n , ϵ 1 , ln δ 1 , ln δ ver 1 ) ) .
It is simple, generic, and somewhat inefficient due to the 4 t 4^{t} 4 t factor.
Up-Down Algorithm
For a pure state, the top-down algorithm takes time exponential in t t t , whereas Algorithm 1 runs in polynomial time. The up-down algorithm interpolates between the two. Like Algorithm 1, it spans Bell difference samples; under noise, some samples lie outside C ( S ) C(S) C ( S ) and shrink the radical of the span (Sec. II).
Definition VI.3 (Good & Bad Samples). A Bell difference sample in C ( S ) C(S) C ( S ) is called a good sample; conversely, a Bell difference sample not in C ( S ) C(S) C ( S ) is called a bad sample.
The solution to the bad sample problem is to combine bottom-up aggregation with top-down verification:
The algorithm is outlined in Algorithm 5. It is thus called the up-down algorithm for stabilizer finding. Algorithm 5 is the common framework for both propose modes: every batch is fresh and post-selected, the finder proposes updates from the span of the surviving samples, and an update is applied only after the verifier approves it. Its knobs are the choices of Δ ϵ \Delta\epsilon Δ ϵ , T T T , M M M , and the propose function. We will spell them out as we analyze the algorithm from Sec. VII to § 1.7 D, and § 1.7 A specifies the full schedule for each mode. For now, our goal is to understand the structure of Algorithm 5, which is illustrated in Figure 1 .
Algorithm 5: Up-Down Stabilizer Finding Algorithm (Generic Form)
Input: Accuracy parameter ε \varepsilon ε , confidence parameters δ \delta δ and δ v e r \delta_{\mathrm{ver}} δ ver
Output: An approximate weak stabilizer S ~ \widetilde{S} S for the density matrix.
Initialize the adaptive verifier, Algorithm 3, with failure probability δ v e r \delta_{\mathrm{ver}} δ ver and minimum query gap Δ ε g a p \Delta\varepsilon_{\mathrm{gap}} Δ ε gap , the smallest gap required by the accuracy schedule specified below; let its guess be S ~ = { I } \widetilde{S} = \{I\} S = { I } ;
Limit the following loop to n + 1 n+1 n + 1 iterations; report failure if its stopping condition is not reached;
repeat
Set Δ ε \Delta\varepsilon Δ ε , T T T ;
for i = 1 i=1 i = 1 to T T T do
Set M M M ;
Draw M M M Bell difference samples, say b = { b 1 , b 2 , … , b M } b = \{b_1,b_2,\ldots,b_M\} b = { b 1 , b 2 , … , b M } ;
Post-selection: keep all samples in C ( S ~ ) C(\widetilde{S}) C ( S ) and remove the others; now we have b ′ = { b 1 ′ , b 2 ′ , … , b M ′ ′ } b' = \{b'_1,b'_2,\ldots,b'_{M'}\} b ′ = { b 1 ′ , b 2 ′ , … , b M ′ ′ } ;
Set B ′ = span b ′ B' = \operatorname{span} b' B ′ = span b ′ , the span of the selected samples;
Run propose( B ′ , Δ ε ) (B',\Delta\varepsilon) ( B ′ , Δ ε ) , which uses B ′ B' B ′ to propose updates on S ~ \widetilde{S} S to the verifier with accuracy drop Δ ε \Delta\varepsilon Δ ε ;
if verifier approves then apply the approved update and break;
until (no approved nontrivial update was applied and dim S ~ ≥ n − t \dim\widetilde{S} \ge n-t dim S ≥ n − t ) or dim S ~ = n \dim\widetilde{S}=n dim S = n ;
return S ~ \widetilde{S} S ;
Post-Selection
We first examine the inner loop. In each iteration we draw a batch of Bell difference samples and form their span B B B . The algorithm then uses (a structured subset of) B B B to propose updates to the verifier.
The key new step is post-selection . After drawing samples, we retain only those lying in C ( S ~ ) C(\widetilde{S}) C ( S ) , i.e., those commuting with the current guess S ~ \widetilde{S} S . This is well motivated because every admissible update to S ~ \widetilde{S} S must preserve commutativity with S ~ \widetilde{S} S ; samples that anticommute with S ~ \widetilde{S} S cannot directly support such updates. Moreover, by Lemma IV.7, the target weak stabilizer S S S commutes with S ~ \widetilde{S} S , so post-selection does not discard the “useful” part of the distribution relevant for reaching S ⊆ S ~ S \subseteq\widetilde{S} S ⊆ S . At the same time, post-selection helps control bad samples . Even if the raw BellDiff distribution contains many bad samples (those outside C ( S ) C(S) C ( S ) ), restricting attention to C ( S ~ ) C(\widetilde{S}) C ( S ) can filter out a large fraction of samples that would otherwise contaminate the spanned subspace, making it substantially easier to extract stabilizer information from the remaining data.
Post-selection also changes the algebraic perspective. Once S ~ \widetilde{S} S is fixed, the algorithm can only enlarge it, so what matters about a proposed update is not the specific Pauli representative but its class modulo S ~ \widetilde{S} S . For example, when proposing a single-generator extension S ~ ← S ~ + { b } \widetilde{S} \leftarrow\widetilde{S}+\{b\} S ← S + { b } , translating b b b by any other element in S ~ \widetilde{S} S yields the same enlarged subgroup. More generally, when proposing S ~ ← S ~ + A \widetilde{S} \leftarrow\widetilde{S}+A S ← S + A , only the “new directions” contributed by A A A beyond S ~ \widetilde{S} S are relevant; this is captured by the quotient ( S ~ + A ) / S ~ ≅ A / ( A ∩ S ~ ) (\widetilde{S}+A)/\widetilde{S} \cong A/(A\cap\widetilde{S}) ( S + A ) / S ≅ A / ( A ∩ S ) by the second isomorphism theorem.
In summary, after post-selection the effective sample space is C ( S ~ ) C(\widetilde{S}) C ( S ) rather than P n \mathcal{P}^n P n , and proposed updates should be interpreted modulo S ~ \widetilde{S} S . To emphasize this shift, we use a superscript ∗ * ∗ to denote quantities defined with post-selection in mind.
Notation VI.4 (Starred (∗ * ∗ ) Quantities). A superscript ∗ * ∗ indicates that the corresponding quantity is defined with post-selection onto C ( S ~ ) C(\widetilde{S}) C ( S ) in mind, and hence is interpreted relative to the ambient space C ( S ~ ) C(\widetilde{S}) C ( S ) . A detailed list of these quantities can be found later in Table III .
Table III. Relevant quantities for the per-batch success analysis. On groups and spans, a star adds the already accepted directions S ~ \widetilde{S} S ; B g ⋆ \mathfrak{B}_g^\star B g ⋆ also adds the full target. Quantities that depend on S S S , including the good⋆ ^\star ⋆ /bad⋆ ^\star ⋆ split, are analysis objects that the algorithm does not know.
Loop Structure
In the inner loop, we take a batch of samples and propose an update to the verifier. When the noise is low enough, Sec. VII shows that this yields a (useful) update with at least constant probability. In the end, we want S ⊆ S ~ S \subseteq\widetilde{S} S ⊆ S with high probability.
To achieve such a goal, we group batches into iterations . Each iteration consists of (at most) T T T batch attempts (and the associated post-processing), until S ~ \widetilde{S} S is updated. Within Algorithm 5, one iteration corresponds to one execution of the repeat block, where we take at most T T T batches via the for loop inside. This way, one of the following happens:
The verifier accepts one update and exits the loop, or
no update is accepted, which we interpret as evidence that S ⊆ S ~ S \subseteq\widetilde{S} S ⊆ S , and we are successful.
Suppose we showed that one batch yields a successful update with probability at least a constant when S ⊈ S ~ S \not\subseteq\widetilde{S} S ⊆ S . Then repetition boosts this event: we should pick T = O ( ln n δ ) T=O\left(\ln\frac{n}{\delta}\right) T = O ( ln δ n ) to achieve a per-iteration success probability at least 1 − δ n + 1 1-\frac{\delta}{n+1} 1 − n + 1 δ . What counts as a successful update depends on the mode—an approved update need not be one—and § 1.7 A makes this precise.
The simplest stopping rule is to run iterations until no accepted updates occur. In practice, we may use a better stopping condition, as in Algorithm 5:
Repeat . . . until (no approved nontrivial update was applied and dim S ~ ≥ n − t \dim\widetilde{S} \ge n-t dim S ≥ n − t ) or dim S ~ = n \dim\widetilde{S}=n dim S = n
This stopping condition is justified by two facts:
S ⊆ S ~ S \subseteq\widetilde{S} S ⊆ S only happens when dim S ~ ≥ dim S ≥ n − t \dim\widetilde{S} \ge\dim S \ge n-t dim S ≥ dim S ≥ n − t .
If dim S ~ = n \dim\widetilde{S}=n dim S = n , we have already reached a maximal commuting group, and S S S commutes with it by Lemma IV.7, so S ⊆ S ~ S \subseteq\widetilde{S} S ⊆ S .
For the runtime bound, cap the total at n + 1 n+1 n + 1 iterations. There are at most n n n nontrivial updates, and an iteration without an update after S ⊆ S ~ S \subseteq\widetilde{S} S ⊆ S stops the algorithm. Thus either stopping before recovery or exhausting the cap requires an iteration without an update before recovery. The per-iteration bound above limits the probability of any such event to δ \delta δ .
The one piece of Algorithm 5 we have not described is propose itself. Rather than define it abstractly, we let a small example dictate its form.
An Example
In this section we use a schematic example to motivate the construction of the propose function in its two modes—the clean mode and the intermediate mode—and to illustrate the intuition behind Algorithm 5. The exact details—parameter choices, correctness proofs, and the noise thresholds that separate the regimes—are deferred to Sec. VII and § 1.7 .
Consider a state ρ \rho ρ on n = 5 n=5 n = 5 qubits, with weak stabilizer:
S = ⟨ Z 1 , Z 2 ⟩ , dim S = 2 , ν = 3. (42) S=\langle Z_1,Z_2\rangle,\qquad\dim S=2,\qquad\nu=3. \tag*{(42)} S = ⟨ Z 1 , Z 2 ⟩ , dim S = 2 , ν = 3. (42)
Qubitwise, S S S and its centralizer C ( S ) C(S) C ( S ) read
S = I / Z I / Z I I I , C ( S ) = I / Z I / Z I / X / Y / Z I / X / Y / Z I / X / Y / Z . (43) S=\boxed{I/Z}\ \boxed{I/Z}\ \boxed{I}\ \boxed{I}\ \boxed{I},\qquad
C(S)=\boxed{I/Z}\ \boxed{I/Z}\ \boxed{I/X/Y/Z}\ \boxed{I/X/Y/Z}\ \boxed{I/X/Y/Z}. \tag*{(43)} S = I / Z I / Z I I I , C ( S ) = I / Z I / Z I / X / Y / Z I / X / Y / Z I / X / Y / Z . (43)
Each box ranges independently over the Paulis shown. We will use this box notation throughout without further comment.
Fix ϵ ≪ 1 \epsilon\ll1 ϵ ≪ 1 , the purity-loss budget, at a small constant. We design the example ρ \rho ρ such that including Z 3 Z_3 Z 3 in S ~ \widetilde{S} S results in a purity loss Δ γ = O ( ϵ 2 ) \Delta_\gamma=O(\epsilon^2) Δ γ = O ( ϵ 2 ) , well below the ϵ \epsilon ϵ threshold. By contrast, including Z 4 Z_4 Z 4 causes a purity loss slightly above ϵ \epsilon ϵ , say 2 ϵ 2\epsilon 2 ϵ . In other words, S ~ = ⟨ Z 1 , Z 2 , Z 3 ⟩ \widetilde{S}=\langle Z_1,Z_2,Z_3\rangle S = ⟨ Z 1 , Z 2 , Z 3 ⟩ is an acceptable weak stabilizer, whereas S ~ = ⟨ Z 1 , Z 2 , Z 4 ⟩ \widetilde{S}=\langle Z_1,Z_2,Z_4\rangle S = ⟨ Z 1 , Z 2 , Z 4 ⟩ is a fake one. Having any other linearly independent Pauli in S ~ \widetilde{S} S would result in a significant O ( 1 ) O(1) O ( 1 ) purity drop and is thus unacceptable.
I / Z I / Z ⏟ true weak stabilizer I / Z ⏟ acceptable I / Z ⏟ fake I (44) \begin{aligned}
&\underbrace{\boxed{I/Z}\ \boxed{I/Z}}_{\text{true weak stabilizer}}\qquad
\underbrace{\boxed{I/Z}}_{\text{acceptable}}\qquad
\underbrace{\boxed{I/Z}}_{\text{fake}}\qquad
\boxed{I} \tag*{(44)}
\end{aligned} true weak stabilizer I / Z I / Z acceptable I / Z fake I / Z I (44)
As discussed in Sec. III C, the Bell difference distribution is tied to the Pauli coefficient structure of ρ \rho ρ . In our case, this means that depending on the noise, most samples are good samples, living in C ( S ) = I / Z I / Z I / X / Y / Z I / X / Y / Z I / X / Y / Z C(S)=\boxed{I/Z}\ \boxed{I/Z}\ \boxed{I/X/Y/Z}\ \boxed{I/X/Y/Z}\ \boxed{I/X/Y/Z} C ( S ) = I / Z I / Z I / X / Y / Z I / X / Y / Z I / X / Y / Z . However, since imposing the additional directions Z 3 Z_3 Z 3 and Z 4 Z_4 Z 4 incurs only O ( ϵ 2 ) O(\epsilon^2) O ( ϵ 2 ) and O ( ϵ ) O(\epsilon) O ( ϵ ) purity loss, respectively, most good samples will be in C ( S + ⟨ Z 3 , Z 4 ⟩ ) = I / Z I / Z I / Z I / Z I / X / Y / Z C(S+\langle Z_3,Z_4\rangle)=\boxed{I/Z}\ \boxed{I/Z}\ \boxed{I/Z}\ \boxed{I/Z}\ \boxed{I/X/Y/Z} C ( S + ⟨ Z 3 , Z 4 ⟩) = I / Z I / Z I / Z I / Z I / X / Y / Z , varying only in the last qubit. Only with probability O ( ϵ ) O(\epsilon) O ( ϵ ) will we see a sample that is not I I I or Z Z Z on qubit 4 (but still I I I or Z Z Z on qubit 3). The probability that a good sample does not have I I I or Z Z Z on qubit 3 is O ( ϵ 2 ) O(\epsilon^2) O ( ϵ 2 ) .
To better understand our example, we hold the accuracy parameter ϵ ≪ 1 \epsilon\ll1 ϵ ≪ 1 fixed and increase the noise rate λ \lambda λ from 0, following the trajectory of Figure 5 through the clean, intermediate, and noisy regimes. Each regime requires a different propose strategy, if applicable.
Figure 5. We consider fixing ε ≪ 1 \varepsilon\ll1 ε ≪ 1 and increasing λ \lambda λ starting from λ = 0 \lambda= 0 λ = 0 . Inside the diagram of Figure 2 , this corresponds to traversing a horizontal line from left to right: starting from no noise at λ = 0 \lambda= 0 λ = 0 , we pass through the clean regime, the intermediate regime, and finally the noisy regime. In each regime, the behavior of Bell difference samples changes qualitatively, requiring a different propose strategy if applicable.
Noiseless (λ = 0 \lambda=0 λ = 0 ): Keep taking Bell difference samples and let B B B be the group they span. Since the noise rate is 0, all samples are good and live in C ( S ) = I / Z I / Z I / X / Y / Z I / X / Y / Z I / X / Y / Z C(S)=\boxed{I/Z}\ \boxed{I/Z}\ \boxed{I/X/Y/Z}\ \boxed{I/X/Y/Z}\ \boxed{I/X/Y/Z} C ( S ) = I / Z I / Z I / X / Y / Z I / X / Y / Z I / X / Y / Z . However, as mentioned, since imposing both Z 3 Z_3 Z 3 and Z 4 Z_4 Z 4 incurs only O ( ϵ ) O(\epsilon) O ( ϵ ) purity loss, most samples concentrate in C ( S + ⟨ Z 3 , Z 4 ⟩ ) = I / Z I / Z I / Z I / Z I / X / Y / Z C(S+\langle Z_3,Z_4\rangle)=\boxed{I/Z}\ \boxed{I/Z}\ \boxed{I/Z}\ \boxed{I/Z}\ \boxed{I/X/Y/Z} C ( S + ⟨ Z 3 , Z 4 ⟩) = I / Z I / Z I / Z I / Z I / X / Y / Z . If we take O ( 1 ) O(1) O ( 1 ) samples, at most we can get B B B to span C ( S + ⟨ Z 3 , Z 4 ⟩ ) C(S+\langle Z_3,Z_4\rangle) C ( S + ⟨ Z 3 , Z 4 ⟩) , which is not useful.
However, if we take Ω ( 1 ϵ ) \Omega\left(\frac{1}{\epsilon}\right) Ω ( ϵ 1 ) samples, we will eventually see a sample that is not I I I or Z Z Z on qubit 4 (but still I I I or Z Z Z on qubit 3). In this way, we can get B B B to span C ( S + ⟨ Z 3 ⟩ ) C(S+\langle Z_3\rangle) C ( S + ⟨ Z 3 ⟩) . So, we simply output S ~ = C ( B ) = ⟨ Z 1 , Z 2 , Z 3 ⟩ = S + ⟨ Z 3 ⟩ \widetilde{S}=C(B)=\langle Z_1,Z_2,Z_3\rangle=S+\langle Z_3\rangle S = C ( B ) = ⟨ Z 1 , Z 2 , Z 3 ⟩ = S + ⟨ Z 3 ⟩ , which solves the problem. There is no need for interactive updates protected by the verifier. This is exactly the idea of Ref. [10 ] .
Clean regime: With low noise (bounded above by some value Θ ( ε ) \Theta(\varepsilon) Θ ( ε ) ), by the time we have drawn enough samples to span C ( S a c c ) C(S_{\mathrm{acc}}) C ( S acc ) for an acceptable S a c c S_{\mathrm{acc}} S acc , we may also get a few bad samples. However, if noise is sufficiently low, then there are very few bad samples, such that B B B is just C ( S a c c ) C(S_{\mathrm{acc}}) C ( S acc ) + some bad samples. We can still compute Δ S ~ = C ( B ) \Delta\widetilde{S} = C(B) Δ S = C ( B ) , except now the bad samples will make Δ S ~ \Delta\widetilde{S} Δ S smaller, so Δ S ~ ⊆ S a c c \Delta\widetilde{S} \subseteq S_{\mathrm{acc}} Δ S ⊆ S acc . This still leads to progress towards S a c c S_{\mathrm{acc}} S acc and motivates Algorithm 5 with propose defined in Algorithm 6. Note that instead of proposing Δ S ~ = C ( B ) \Delta\widetilde{S} = C(B) Δ S = C ( B ) , we propose Δ S ~ = rad ( B ) = B ∩ C ( B ) \Delta\widetilde{S} = \operatorname{rad}(B) = B \cap C(B) Δ S = rad ( B ) = B ∩ C ( B ) . This choice is not necessary, but it ensures that Δ S ~ \Delta\widetilde{S} Δ S is a commuting group and will be convenient later. We call this the clean mode of the up-down algorithm.
Intermediate regime: If the noise rate is higher, say ω ( ε ) \omega(\varepsilon) ω ( ε ) , then by the time we have drawn enough samples to span C ( S a c c ) C(S_{\mathrm{acc}}) C ( S acc ) for an acceptable S a c c S_{\mathrm{acc}} S acc , we will have drawn so many bad samples that B B B spans the whole Pauli group. In this case, Δ S ~ = C ( B ) = { I } \Delta\widetilde{S} = C(B) = \{I\} Δ S = C ( B ) = { I } is trivial and useless.
Therefore, we can no longer wait for B B B to span C ( S a c c ) C(S_{\mathrm{acc}}) C ( S acc ) . Instead, with O ( n ) O(n) O ( n ) samples, we can get B B B to span S S S , the true weak stabilizer. If the noise rate is less than some value Θ ( 1 ) \Theta(1) Θ ( 1 ) , then there will be a sufficiently large portion of rad B \operatorname{rad} B rad B that is in S S S . Therefore, we’ll need to iterate over rad ( B ) \operatorname{rad}(B) rad ( B ) and propose to the verifier to add each Pauli in rad ( B ) \operatorname{rad}(B) rad ( B ) to S ~ \widetilde{S} S , until the verifier accepts. This is the idea of propose in Algorithm 7. Each batch of samples could yield multiple linearly independent Paulis for successful updates, but for simplicity we stop once one is found. Here, Algorithm 5 operates in the intermediate mode .
Noisy regime: If the noise rate is too large, bad samples are too frequent and contaminate any attempts to build up B B B . We no longer have the same progress guarantee, so we turn to the top-down algorithm in Algorithm 4.
The example thus suggests two propose rules, written out in Algorithms 6 and 7. In clean mode, we hand the verifier the whole radical R = rad ( B ′ ) R = \operatorname{rad}(B') R = rad ( B ′ ) at once. In intermediate mode, we draw elements of R R R at random and hand them over one at a time, up to L L L attempts per batch.
Table 6.
At this point the finder–verifier framework is in place: the verifier (Algorithm 3), the top-down finder (Algorithm 4), the generic up-down finder (Algorithm 5), and its two propose modes (Algorithms 6 and 7). The next two sections choose the knobs—the batch size M M M , the number of attempts T T T , the per-update budget Δ ε \Delta\varepsilon Δ ε —and find the noise thresholds under which each mode succeeds, from the bottom up. Section VII asks when a single batch makes progress; § 1.7 chains batches into iterations and iterations into the final guarantees, specifying the full schedule for each mode along the way. A reader who only wants the end results can skip ahead to Theorems VIII.4–VIII.9.
Algorithm 7: propose – intermediate mode
Input: post-selected sample span B ′ B' B ′ ; accuracy budget Δ ε \Delta\varepsilon Δ ε
def propose(B ′ B' B ′ , Δ ε \Delta\varepsilon Δ ε )
Set L L L ;
Compute R ← rad ( B ′ ) R \leftarrow\operatorname{rad}(B') R ← rad ( B ′ ) ;
if R ⊆ S ~ R \subseteq\widetilde{S} R ⊆ S then reject;
for i = 1 i = 1 i = 1 to L L L do
Draw r r r uniformly at random from R ∖ S ~ R \setminus\widetilde{S} R ∖ S ;
Query Algorithm 3 to increment S ~ \widetilde{S} S by Δ S ~ = { r } \Delta\widetilde{S} = \{r\} Δ S = { r } with budget Δ ε − = 0 \Delta\varepsilon_- = 0 Δ ε − = 0 , Δ ε + = Δ ε \Delta\varepsilon_+ = \Delta\varepsilon Δ ε + = Δ ε ;
if the verifier approves then return the candidate update S ~ ← S ~ + { r } \widetilde{S} \leftarrow\widetilde{S} + \{r\} S ← S + { r } ;
reject ;
Single-Batch Progress
Having established the structure of Algorithm 5, we now prove its correctness and specify the parameter choices. The proof spans this section and the next; here we focus on a single batch and establish the corresponding success conditions for the clean and intermediate modes. Sec. VII A fixes the notation for one batch, Sec. VII B lower-bounds the number of good samples needed before the radical carries useful structure, and Sec. VII C upper-bounds the number of bad samples the radical can tolerate. The outputs of this section are Lemma VII.5 and Lemma VII.6, the per-batch success conditions of the two modes.
Setup
At the start of each batch, the algorithm has a current guess S ~ \widetilde{S} S . The goal is to enlarge S ~ \widetilde{S} S until it contains the true weak stabilizer S S S . For this purpose, we define the target group for the current batch as S ⋆ ≡ S + S ~ S^\star\equiv S + \widetilde{S} S ⋆ ≡ S + S . Thus, progress means updating S ~ \widetilde{S} S in a way that moves it closer to containing S ⋆ S^\star S ⋆ . The verifier guards each attempted update by allowing at most a purity drop of Δ ε \Delta\varepsilon Δ ε . We would like each batch to have a constant probability of producing a successful update toward S ⋆ S^\star S ⋆ . Define ν = n − dim S \nu= n - \dim S ν = n − dim S , ν ~ = n − dim S ~ \widetilde{\nu} = n - \dim\widetilde{S} ν = n − dim S , and ν ⋆ = n − dim S ⋆ \nu^\star= n - \dim S^\star ν ⋆ = n − dim S ⋆ to be the nullities of S S S , S ~ \widetilde{S} S , and S ⋆ S^\star S ⋆ respectively. Initially, dim S ~ = 0 \dim\widetilde{S} = 0 dim S = 0 and ν ~ = n \widetilde{\nu} = n ν = n . As the algorithm goes on, dim S ~ \dim\widetilde{S} dim S increases and ν ~ \widetilde{\nu} ν decreases. At the same time, ν ⋆ \nu^\star ν ⋆ also decreases, but at a much slower pace, until eventually S ~ \widetilde{S} S contains S S S , which means S ⋆ = S ~ S^\star= \widetilde{S} S ⋆ = S , so ν ~ = ν ⋆ \widetilde{\nu} = \nu^\star ν = ν ⋆ .
A Bell difference sample surviving post-selection lies in C ( S ~ ) C(\widetilde{S}) C ( S ) by construction. Following the principle from Notation VI.4, define good⋆ ^\star ⋆ and bad⋆ ^\star ⋆ samples as good and bad samples among these surviving samples. In other words, good⋆ ^\star ⋆ samples lie in C ( S ⋆ ) = C ( S ) ∩ C ( S ~ ) C(S^\star) = C(S) \cap C(\widetilde{S}) C ( S ⋆ ) = C ( S ) ∩ C ( S ) , and bad⋆ ^\star ⋆ samples lie in C ( S ~ ) ∖ C ( S ⋆ ) C(\widetilde{S}) \setminus C(S^\star) C ( S ) ∖ C ( S ⋆ ) . The post-selected span B ′ B' B ′ (as in Algorithm 5) is therefore generated by a mixture of good⋆ ^\star ⋆ and bad⋆ ^\star ⋆ samples. As we show below, good⋆ ^\star ⋆ samples carry information useful for updating S ~ \widetilde{S} S toward S ⋆ S^\star S ⋆ , while bad⋆ ^\star ⋆ samples can corrupt it. Figure 6 shows how these groups nest.
Figure 6. The groups of a single batch, drawn by nesting, and where a Bell difference sample can land. Post-selection keeps only the samples inside C ( S ~ ) C(\tilde{S}) C ( S ~ ) ; among those, good⋆ {}^{\star} ⋆ samples lie in C ( S ⋆ ) C(S^{\star}) C ( S ⋆ ) and bad⋆ {}^{\star} ⋆ samples in C ( S ~ ) ∖ C ( S ⋆ ) C(\tilde{S}) \setminus C(S^{\star}) C ( S ~ ) ∖ C ( S ⋆ ) . S S S and S ~ \tilde{S} S ~ need not contain one another, which is why the target for the batch is their join S ⋆ = S + S ~ S^{\star}=S+\tilde{S} S ⋆ = S + S ~ . Each region is labelled with its F 2 \mathbb{F}_2 F 2 -dimension; these are symmetric about n n n because dim C ( H ) = 2 n − dim H \dim C(H)=2n-\dim H dim C ( H ) = 2 n − dim H . The gaps used in the proofs follow by subtraction: dim C ( S ⋆ ) / S ⋆ = 2 ν ⋆ \dim C(S^{\star})/S^{\star}=2\nu^{\star} dim C ( S ⋆ ) / S ⋆ = 2 ν ⋆ , and dim S ⋆ / S ~ = dim C ( S ~ ) / C ( S ⋆ ) = ν ~ − ν ⋆ \dim S^{\star}/\tilde{S}=\dim C(\tilde{S})/C(S^{\star})=\tilde{\nu}-\nu^{\star} dim S ⋆ / S ~ = dim C ( S ~ ) / C ( S ⋆ ) = ν ~ − ν ⋆ . The dashed box illustrates the span B g ⋆ B_g^{\star} B g ⋆ of good⋆ {}^{\star} ⋆ samples that we seek (Sec. VII B): it contains S ⋆ S^{\star} S ⋆ and, in the clean mode, captures nearly all the projected purity.
The per-batch success probability is thus controlled by two quantities:
p g ⋆ p^\star_g p g ⋆ , the probability that a Bell difference sample is good⋆ ^\star ⋆ ;
p b ⋆ p^\star_b p b ⋆ , the probability that a Bell difference sample is bad⋆ ^\star ⋆ .
Suppose we draw a batch of M M M Bell difference samples. As a proof device, we first reveal each sample’s type: good⋆ ^\star ⋆ , bad⋆ ^\star ⋆ , or filtered out by post-selection. Let M g ⋆ M^\star_g M g ⋆ and M b ⋆ M^\star_b M b ⋆ denote the counts of good⋆ ^\star ⋆ and bad⋆ ^\star ⋆ samples; the remaining M − M g ⋆ − M b ⋆ M - M^\star_g - M^\star_b M − M g ⋆ − M b ⋆ are filtered out and do not contribute to B ′ B' B ′ .
Conditioned on this classification, we prove two conditions:
Good⋆ ^\star ⋆ sample condition: If M g ⋆ ≥ K g M^\star_g \ge K_g M g ⋆ ≥ K g for a suitable lower bound K g K_g K g , then with high probability the good⋆ ^\star ⋆ samples contain useful information for updating S ~ \widetilde{S} S toward S ⋆ S^\star S ⋆ .
Bad⋆ ^\star ⋆ sample condition: If M b ⋆ ≤ K b M^\star_b \le K_b M b ⋆ ≤ K b for a suitable upper bound K b K_b K b , then with high probability the bad⋆ ^\star ⋆ samples do not corrupt this useful information too much.
We will then use a lower bound q g ⋆ q^\star_g q g ⋆ on p g ⋆ p^\star_g p g ⋆ and an upper bound q b ⋆ q^\star_b q b ⋆ on p b ⋆ p^\star_b p b ⋆ , namely
p g ⋆ ≥ q g ⋆ , p b ⋆ ≤ q b ⋆ . (45) p^\star_g \ge q^\star_g,\qquad p^\star_b \le q^\star_b. \tag*{(45)} p g ⋆ ≥ q g ⋆ , p b ⋆ ≤ q b ⋆ . (45)
The quantities q g ⋆ q^\star_g q g ⋆ and q b ⋆ q^\star_b q b ⋆ will be computed in § 1.7 C and VIII D from the error model. If q g ⋆ q^\star_g q g ⋆ is sufficiently large relative to q b ⋆ q^\star_b q b ⋆ , then we can choose a batch size M M M such that both the good⋆ ^\star ⋆ and bad⋆ ^\star ⋆ sample conditions hold with high probability. This yields the desired per-batch correctness guarantee.
Sec. VII B proves the good⋆ {}^{\star} ⋆ sample condition, while Sec. VII C proves the bad⋆ {}^{\star} ⋆ sample condition and combines the two conditions into a per-batch success guarantee. The relevant quantities for these sections are summarized in Table III .
Two conditions govern whether the good⋆ {}^{\star} ⋆ samples carry enough useful information. Both analyses use the first condition; the clean analysis also uses the second, a purity-coverage condition. If both conditions can hold before total corruption by bad⋆ {}^{\star} ⋆ samples, then we are in the clean regime; if only the first can hold, we are in the intermediate regime. If even the first fails, we are in the noisy regime, where these bounds no longer guarantee progress for the up-down algorithm.
Good Samples
Suppose our batch contains M g ⋆ M_g^{\star} M g ⋆ good samples. Say these samples are b 1 , b 2 , … , b M g ⋆ b_1,b_2,\ldots,b_{M_g^{\star}} b 1 , b 2 , … , b M g ⋆ , and they span the subgroup B g = span { b 1 , … , b M g ⋆ } B_g=\operatorname{span}\{b_1,\ldots,b_{M_g^{\star}}\} B g = span { b 1 , … , b M g ⋆ } . As mentioned in Sec. VI B 1, since the goal is to extend S ~ \tilde{S} S ~ by some other group Δ S ~ \Delta\tilde{S} Δ S ~ based on these samples, what matters are not these samples themselves but these samples modulo S ~ \tilde{S} S ~ . In other words, only the new directions provided by these samples matter. To capture this mathematically, we consider B g ⋆ = B g + S ~ B_g^{\star}=B_g+\tilde{S} B g ⋆ = B g + S ~ , or alternatively, B g ⋆ / S ~ = span { b 1 ⋆ , b 2 ⋆ , … , b M g ⋆ ⋆ } B_g^{\star}/\tilde{S}=\operatorname{span}\{b_1^{\star},b_2^{\star},\ldots,b_{M_g^{\star}}^{\star}\} B g ⋆ / S ~ = span { b 1 ⋆ , b 2 ⋆ , … , b M g ⋆ ⋆ } where b i ⋆ = b i + S ~ b_i^{\star}=b_i+\tilde{S} b i ⋆ = b i + S ~ .
We want B g ⋆ B_g^{\star} B g ⋆ to be as large as possible. Since all the good⋆ {}^{\star} ⋆ samples are in C ( S ⋆ ) C(S^{\star}) C ( S ⋆ ) , ideally, the largest it can be is B g ⋆ = C ( S ⋆ ) B_g^{\star}=C(S^{\star}) B g ⋆ = C ( S ⋆ ) . In practice, however, this is too much to ask. At the bare minimum, progress is possible so long as S ⋆ ⊆ B g ⋆ S^{\star}\subseteq B_g^{\star} S ⋆ ⊆ B g ⋆ .
Lemma VII.1. If M g ⋆ ≥ ν ~ + ν ⋆ + log 2 1 δ M_g^{\star}\ge\tilde{\nu}+\nu^{\star}+\log_2\frac{1}{\delta} M g ⋆ ≥ ν ~ + ν ⋆ + log 2 δ 1 (0 < δ < 1 0<\delta<1 0 < δ < 1 ), then with success probability at least 1 − δ 1-\delta 1 − δ , S ⋆ ⊆ B g ⋆ S^{\star}\subseteq B_g^{\star} S ⋆ ⊆ B g ⋆ .
Proof idea. Think of each good⋆ {}^{\star} ⋆ sample as carrying two pieces of information: which S ⋆ S^{\star} S ⋆ -coset it lies in, and where it sits inside that coset. Only the second piece is useful, and since the Bell difference distribution is blind to shifts by S S S , it is uniformly random in S ⋆ / S ~ S^{\star}/\tilde{S} S ⋆ / S ~ . The first piece is junk living in C ( S ⋆ ) / S ⋆ C(S^{\star})/S^{\star} C ( S ⋆ ) / S ⋆ , but that space has only 2 ν ⋆ 2\nu^{\star} 2 ν ⋆ dimensions, so the junk can eat up at most 2 ν ⋆ 2\nu^{\star} 2 ν ⋆ samples: out of M g ⋆ M_g^{\star} M g ⋆ samples, we can always form M g ⋆ − 2 ν ⋆ M_g^{\star}-2\nu^{\star} M g ⋆ − 2 ν ⋆ independent combinations whose junk cancels, each a fresh uniform vector in S ⋆ / S ~ S^{\star}/\tilde{S} S ⋆ / S ~ . Spanning this ( ν ~ − ν ⋆ ) (\tilde{\nu}-\nu^{\star}) ( ν ~ − ν ⋆ ) -dimensional space takes ν ~ − ν ⋆ \tilde{\nu}-\nu^{\star} ν ~ − ν ⋆ such vectors, and each extra one halves the chance of missing a direction, so another log 2 1 δ \log_2\frac{1}{\delta} log 2 δ 1 vectors push the failure probability below δ \delta δ . Altogether, 2 ν ⋆ + ( ν ~ − ν ⋆ ) + log 2 1 δ = ν ~ + ν ⋆ + log 2 1 δ 2\nu^{\star}+(\tilde{\nu}-\nu^{\star})+\log_2\frac{1}{\delta}=\tilde{\nu}+\nu^{\star}+\log_2\frac{1}{\delta} 2 ν ⋆ + ( ν ~ − ν ⋆ ) + log 2 δ 1 = ν ~ + ν ⋆ + log 2 δ 1 .
Proof. Since S ~ ⊆ S ⋆ \widetilde{S} \subseteq S^\star S ⊆ S ⋆ , the target S ⋆ ⊆ B g ⋆ S^\star\subseteq B_g^\star S ⋆ ⊆ B g ⋆ is equivalent to S ⋆ / S ~ ⊆ B g ⋆ / S ~ = span { b 1 ⋆ , … , b M g ⋆ ⋆ } S^\star/\widetilde{S} \subseteq B_g^\star/\widetilde{S} = \operatorname{span}\{b_1^\star,\ldots,b_{M_g^\star}^\star\} S ⋆ / S ⊆ B g ⋆ / S = span { b 1 ⋆ , … , b M g ⋆ ⋆ } for b i ⋆ = b i + S ~ b_i^\star= b_i+\widetilde{S} b i ⋆ = b i + S , so it suffices to show S ⋆ / S ~ ∩ B g ⋆ / S ~ = S ⋆ / S ~ S^\star/\widetilde{S} \cap B_g^\star/\widetilde{S} = S^\star/\widetilde{S} S ⋆ / S ∩ B g ⋆ / S = S ⋆ / S .
We draw each good⋆ ^\star ⋆ sample b i b_i b i in two steps: first, we reveal the coset of S ⋆ S^\star S ⋆ that b i b_i b i lies in, i.e., b i ≡ b i + S ⋆ b_i \equiv b_i+S^\star b i ≡ b i + S ⋆ . Then, we reveal the specific b i b_i b i within this coset.
In this way, the first step determines the set of all possible linear combinations of good⋆ ^\star ⋆ samples that fall within S ⋆ S^\star S ⋆ , i.e.,
K = { x ∈ { 0 , 1 } M g ⋆ : ∑ i = 1 M g ⋆ x i b i = S ⋆ } = ker ϕ S ⋆ K = \left\{x \in\{0,1\}^{M_g^\star} : \sum_{i=1}^{M_g^\star} x_i b_i = S^\star\right\} = \ker\phi_{S^\star} K = ⎩ ⎨ ⎧ x ∈ { 0 , 1 } M g ⋆ : i = 1 ∑ M g ⋆ x i b i = S ⋆ ⎭ ⎬ ⎫ = ker ϕ S ⋆
where ϕ S ⋆ : x ↦ ∑ i = 1 M g ⋆ x i b i \phi_{S^\star}:x \mapsto\sum_{i=1}^{M_g^\star}x_i b_i ϕ S ⋆ : x ↦ ∑ i = 1 M g ⋆ x i b i . Since b i ∈ C ( S ⋆ ) / S ⋆ b_i \in C(S^\star)/S^\star b i ∈ C ( S ⋆ ) / S ⋆ and dim C ( S ⋆ ) / S ⋆ = 2 ν ⋆ \dim C(S^\star)/S^\star= 2^{\nu^\star} dim C ( S ⋆ ) / S ⋆ = 2 ν ⋆ , k ≡ dim K ≥ M g ⋆ − 2 ν ⋆ k \equiv\dim K \ge M_g^\star- 2\nu^\star k ≡ dim K ≥ M g ⋆ − 2 ν ⋆ (rank–nullity theorem).
The second step thus determines ( B g ⋆ / S ~ ) ∩ ( S ⋆ / S ~ ) = { ∑ i = 1 M g ⋆ x i b i ⋆ : x ∈ K } = ϕ S ~ ( K ) (B_g^\star/\widetilde{S}) \cap(S^\star/\widetilde{S}) = \left\{\sum_{i=1}^{M_g^\star} x_i b_i^\star: x \in K\right\} = \phi_{\widetilde{S}}(K) ( B g ⋆ / S ) ∩ ( S ⋆ / S ) = { ∑ i = 1 M g ⋆ x i b i ⋆ : x ∈ K } = ϕ S ( K ) where ϕ S ~ : x ↦ ∑ i = 1 M g ⋆ x i b i ⋆ \phi_{\widetilde{S}}:x \mapsto\sum_{i=1}^{M_g^\star}x_i b_i^\star ϕ S : x ↦ ∑ i = 1 M g ⋆ x i b i ⋆ . By Observation III.3, the BellDiff distribution is invariant under translation by S S S . Since S ⋆ = S + S ~ S^\star= S+\widetilde{S} S ⋆ = S + S , that means within each S ⋆ S^\star S ⋆ -coset, the distribution of a sample’s S ~ \widetilde{S} S -coset is uniform. Therefore, in the second step, each b i ⋆ b_i^\star b i ⋆ is uniformly distributed, even though b i b_i b i may not.
Intuitively, this means ( B g ⋆ / S ~ ) ∩ ( S ⋆ / S ~ ) = ϕ S ~ ( K ) (B_g^\star/\widetilde{S}) \cap(S^\star/\widetilde{S}) = \phi_{\widetilde{S}}(K) ( B g ⋆ / S ) ∩ ( S ⋆ / S ) = ϕ S ( K ) is generated by k ≡ dim K k \equiv\dim K k ≡ dim K i.i.d. uniform samples from S ⋆ / S ~ S^\star/\widetilde{S} S ⋆ / S . As a formal proof, fix a basis g 1 , … , g k g_1,\ldots,g_k g 1 , … , g k of K K K . We wish to show that ϕ S ~ ( { g } ) = ( ϕ S ~ ( g 1 ) , … , ϕ S ~ ( g k ) ) \phi_{\widetilde{S}}(\{g\}) = (\phi_{\widetilde{S}}(g_1),\ldots,\phi_{\widetilde{S}}(g_k)) ϕ S ({ g }) = ( ϕ S ( g 1 ) , … , ϕ S ( g k )) are uniformly random when we pick b i ⋆ b_i^\star b i ⋆ within their respective S ⋆ / S ~ S^\star/\widetilde{S} S ⋆ / S -cosets according to the second step. Consider shifting each b i ⋆ b_i^\star b i ⋆ by Δ b i ⋆ ∈ S ⋆ / S ~ \Delta b_i^\star\in S^\star/\widetilde{S} Δ b i ⋆ ∈ S ⋆ / S . Then,
( Δ ϕ S ~ ( g ) ) T = G ⋅ ( Δ b 1 ⋆ , … , Δ b M g ⋆ ⋆ ) T (\Delta\phi_{\widetilde{S}}(g))^T = G \cdot(\Delta b_1^\star,\ldots,\Delta b_{M_g^\star}^\star)^T ( Δ ϕ S ( g ) ) T = G ⋅ ( Δ b 1 ⋆ , … , Δ b M g ⋆ ⋆ ) T
where G = { ( g i ) j } ∈ F 2 k × M g ⋆ G=\{(g_i)_j\}\in\mathbb{F}_2^{k\times M_g^\star} G = {( g i ) j } ∈ F 2 k × M g ⋆ . Since k ≤ M g ⋆ k\le M_g^\star k ≤ M g ⋆ and G G G has rank k k k (because g 1 , … , g k g_1,\ldots,g_k g 1 , … , g k are linearly independent), the map { Δ b i ⋆ } i ↦ Δ ϕ S ~ ( g ) \{\Delta b_i^\star\}_i\mapsto\Delta\phi_{\widetilde{S}}(g) { Δ b i ⋆ } i ↦ Δ ϕ S ( g ) is a surjective linear map ( S ⋆ / S ~ ) M g ⋆ → ( S ⋆ / S ~ ) k (S^\star/\widetilde{S})^{M_g^\star}\to(S^\star/\widetilde{S})^k ( S ⋆ / S ) M g ⋆ → ( S ⋆ / S ) k . Because Δ b i ⋆ \Delta b_i^\star Δ b i ⋆ are uniform on S ⋆ / S ~ S^\star/\widetilde{S} S ⋆ / S , Δ ϕ S ~ ( g ) \Delta\phi_{\widetilde{S}}(g) Δ ϕ S ( g ) are uniform on ( S ⋆ / S ~ ) k (S^\star/\widetilde{S})^k ( S ⋆ / S ) k , and hence so are ϕ S ~ ( g ) \phi_{\widetilde{S}}(g) ϕ S ( g ) . So ϕ S ~ ( K ) \phi_{\widetilde{S}}(K) ϕ S ( K ) is effectively generated by k k k i.i.d. uniform samples in S ⋆ / S ~ S^\star/\widetilde{S} S ⋆ / S .
Then ϕ S ~ ( K ) ≠ S ⋆ / S ~ \phi_{\widetilde{S}}(K)\ne S^\star/\widetilde{S} ϕ S ( K ) = S ⋆ / S if these samples are all clustered within a codimension-1 subspace. There are 2 dim ( S ⋆ / S ~ ) − 1 = 2 ν ~ − ν ⋆ − 1 2^{\dim(S^\star/\widetilde{S})-1}=2^{\widetilde{\nu}-\nu^\star}-1 2 d i m ( S ⋆ / S ) − 1 = 2 ν − ν ⋆ − 1 such subgroups, and each contains all these samples with probability 2 − k 2^{-k} 2 − k . By the union bound,
P [ f a i l ] ≤ ( 2 ν ~ − ν ⋆ − 1 ) ⋅ 2 − k ≤ 2 ν ~ − ν ⋆ − k ≤ 2 ν ~ + ν ⋆ − M g ⋆ , (46) \mathbb{P}[\mathrm{fail}] \le(2^{\widetilde{\nu}-\nu^\star}-1)\cdot2^{-k} \le2^{\widetilde{\nu}-\nu^\star-k} \le2^{\widetilde{\nu}+\nu^\star-M_g^\star}, \tag*{(46)} P [ fail ] ≤ ( 2 ν − ν ⋆ − 1 ) ⋅ 2 − k ≤ 2 ν − ν ⋆ − k ≤ 2 ν + ν ⋆ − M g ⋆ , (46)
so P [ s u c c e s s ] ≥ 1 − δ \mathbb{P}[\mathrm{success}] \ge1-\delta P [ success ] ≥ 1 − δ once M g ⋆ ≥ ν ~ + ν ⋆ + log 2 1 δ M_g^\star\ge\widetilde{\nu}+\nu^\star+\log_2\frac{1}{\delta} M g ⋆ ≥ ν + ν ⋆ + log 2 δ 1 . □
In addition to Lemma VIII.1, we would like B g ⋆ B_g^\star B g ⋆ to “approximately” span C ( S ⋆ ) C(S^\star) C ( S ⋆ ) , if possible: the good⋆ ^\star ⋆ samples, together with S ⋆ S^\star S ⋆ , should capture almost all of the current projected purity. This can happen when M g ⋆ ≳ Ω ( ν ⋆ Δ ε ) M_g^\star\gtrsim\Omega\left(\frac{\nu^\star}{\Delta_\varepsilon}\right) M g ⋆ ≳ Ω ( Δ ε ν ⋆ ) :
Lemma VII.2. For ν ⋆ > 0 \nu^\star>0 ν ⋆ > 0 , 0 < δ < 1 0<\delta<1 0 < δ < 1 , 0 < Δ ε ≪ γ ~ S 0<\Delta_\varepsilon\ll\widetilde{\gamma}_S 0 < Δ ε ≪ γ S , and ln ( 1 / δ ) / ν ⋆ = O ( 1 ) \ln(1/\delta)/\nu^\star=O(1) ln ( 1/ δ ) / ν ⋆ = O ( 1 ) , if
M g ⋆ ≥ ν ⋆ Δ ε ( 1 + O ( ln ( 1 / δ ) ν ⋆ ) + O ( Δ ε γ ~ S ) ) , M_g^\star\ge\frac{\nu^\star}{\Delta_\varepsilon}\left(1+O\left(\sqrt{\frac{\ln(1/\delta)}{\nu^\star}}\right)+O\left(\frac{\Delta_\varepsilon}{\widetilde{\gamma}_S}\right)\right), M g ⋆ ≥ Δ ε ν ⋆ ( 1 + O ( ν ⋆ ln ( 1/ δ ) ) + O ( γ S Δ ε ) ) , then with probability at least 1 − δ 1-\delta 1 − δ , γ C ( B g ⋆ ) = 2 n ∑ i ∈ B g ⋆ a i 2 ≥ γ ~ S − Δ ε \gamma_{\mathcal{C}(\mathcal{B}_g^\star)}=2^n\sum_{i\in\mathcal{B}_g^\star}a_i^2\ge\widetilde{\gamma}_S-\Delta_\varepsilon γ C ( B g ⋆ ) = 2 n ∑ i ∈ B g ⋆ a i 2 ≥ γ S − Δ ε , where B g ⋆ = B g + S ⋆ \mathcal{B}_g^\star=B_g+S^\star B g ⋆ = B g + S ⋆ . An exact sufficient sample bound is given in Eq. (49) . If ν ⋆ = 0 \nu^\star=0 ν ⋆ = 0 or Δ ε ≥ γ ~ S \Delta_\varepsilon\ge\widetilde{\gamma}_S Δ ε ≥ γ S , this coverage condition already holds without samples.
Proof. Similar to the proof of Lemma VII.1, for each good⋆ ^\star ⋆ sample b i b_i b i , define b i = b i + S ⋆ b_i=b_i+S^\star b i = b i + S ⋆ to be the S ⋆ S^\star S ⋆ -coset it lies in. Let B i = S ⋆ + span { b 1 , … , b i } ⊆ C ( S ⋆ ) \mathcal{B}_i=S^\star+\operatorname{span}\{b_1,\ldots,b_i\}\subseteq\mathcal{C}(S^\star) B i = S ⋆ + span { b 1 , … , b i } ⊆ C ( S ⋆ ) , so B i / S ⋆ = span { b 1 , … , b i } \mathcal{B}_i/S^\star=\operatorname{span}\{b_1,\ldots,b_i\} B i / S ⋆ = span { b 1 , … , b i } is the space spanned by good⋆ ^\star ⋆ samples as we draw them (up to cosets of S ⋆ S^\star S ⋆ ). Then B 0 = S ⋆ \mathcal{B}_0=S^\star B 0 = S ⋆ and B M g ⋆ = B g ⋆ \mathcal{B}_{M_g^\star}=\mathcal{B}_g^\star B M g ⋆ = B g ⋆ ; set D i = dim ( B i / S ⋆ ) D_i=\dim(\mathcal{B}_i/S^\star) D i = dim ( B i / S ⋆ ) . Since S ⋆ ⊆ C ( B i ) ⊆ C ( S ⋆ ) S^\star\subseteq\mathcal{C}(\mathcal{B}_i)\subseteq\mathcal{C}(S^\star) S ⋆ ⊆ C ( B i ) ⊆ C ( S ⋆ ) , Lemma IV.4 applies with H = S ⋆ H=S^\star H = S ⋆ and H ′ = C ( B i ) H'=\mathcal{C}(\mathcal{B}_i) H ′ = C ( B i ) , even when H ′ H' H ′ is noncommuting. By Observation IV.2, γ S ⋆ = γ ~ S \gamma_{S^\star}=\widetilde{\gamma}_S γ S ⋆ = γ S . Thus the failure event γ C ( B i ) < γ ~ S − Δ ε \gamma_{\mathcal{C}(\mathcal{B}_i)}<\widetilde{\gamma}_S-\Delta_\varepsilon γ C ( B i ) < γ S − Δ ε implies
P b ∼ g o o d ⋆ [ b ∈ B i ] = P b ∼ g o o d ⋆ [ b ∈ B i / S ⋆ ] ≤ 1 − 2 Δ ε + 2 ( Δ ε ) 2 γ ~ S , (47) \mathbb{P}_{b\sim\mathrm{good}^\star}[b\in\mathcal{B}_i]=\mathbb{P}_{b\sim\mathrm{good}^\star}[b\in\mathcal{B}_i/S^\star]\le1-2\Delta_\varepsilon+\frac{2(\Delta_\varepsilon)^2}{\widetilde{\gamma}_S}, \tag*{(47)} P b ∼ good ⋆ [ b ∈ B i ] = P b ∼ good ⋆ [ b ∈ B i / S ⋆ ] ≤ 1 − 2 Δ ε + γ S 2 ( Δ ε ) 2 , (47)
where good⋆ ^\star ⋆ is the distribution of Bell difference samples conditioned on being good⋆ ^\star ⋆ , and we used C ( C ( B i ) ) = B i \mathcal{C}(\mathcal{C}(\mathcal{B}_i))=\mathcal{B}_i C ( C ( B i )) = B i .
While the coverage condition fails, the next sample b i + 1 b_{i+1} b i + 1 lands outside B i \mathcal{B}_i B i with probability at least 2 Δ ε ( 1 − Δ ε / γ ~ S ) 2\Delta_\varepsilon(1-\Delta_\varepsilon/\widetilde{\gamma}_S) 2 Δ ε ( 1 − Δ ε / γ S ) , which increases D D D by one. In other words, while the failure condition holds, Δ D \Delta D Δ D stochastically dominates Bernoulli ( 2 Δ ε ( 1 − Δ ε / γ ~ S ) ) \operatorname{Bernoulli}(2\Delta_\varepsilon(1-\Delta_\varepsilon/\widetilde{\gamma}_S)) Bernoulli ( 2 Δ ε ( 1 − Δ ε / γ S )) .
We then apply the Chernoff bound. For bookkeeping, define another process W W W parallel to D D D , with W 0 = 0 W_0=0 W 0 = 0 , Δ W = Δ D \Delta W=\Delta D Δ W = Δ D while the failure condition lasts, and Δ W = 1 \Delta W=1 Δ W = 1 afterward. The coverage condition is preserved as the span grows. In this way:
During the failure event, W = D W=D W = D . Since B i / S ⋆ ⊆ C ( S ⋆ ) / S ⋆ \mathcal{B}_i/S^\star\subseteq\mathcal{C}(S^\star)/S^\star B i / S ⋆ ⊆ C ( S ⋆ ) / S ⋆ , which has dimension 2 ν ⋆ 2\nu^\star 2 ν ⋆ , W ≤ 2 ν ⋆ W\le2\nu^\star W ≤ 2 ν ⋆ on failure.
W W W stochastically dominates a sum of i.i.d. Bernoulli( 2 Δ ε ( 1 − Δ ε / γ ~ S ) ) (2\Delta_\varepsilon(1-\Delta_\varepsilon/\widetilde{\gamma}_S)) ( 2 Δ ε ( 1 − Δ ε / γ S )) variables, so we can apply Chernoff to W W W .
So, for μ ≥ 2 ν ⋆ \mu\ge2\nu^\star μ ≥ 2 ν ⋆ , we have:
P [ f a i l u r e ] ≤ P [ W M g ⋆ ≤ 2 ν ⋆ ] ≤ exp ( − ( μ − 2 ν ⋆ ) 2 2 μ ) , (48) \mathbb{P}[\mathrm{failure}]\le\mathbb{P}[W_{M_g^\star}\le2\nu^\star]\le\exp\left(-\frac{(\mu-2\nu^\star)^2}{2\mu}\right), \tag*{(48)} P [ failure ] ≤ P [ W M g ⋆ ≤ 2 ν ⋆ ] ≤ exp ( − 2 μ ( μ − 2 ν ⋆ ) 2 ) , (48)
where μ = 2 Δ ε ( 1 − Δ ε / γ ~ S ) M g ⋆ \mu=2\Delta_\varepsilon(1-\Delta_\varepsilon/\widetilde{\gamma}_S)M_g^\star μ = 2 Δ ε ( 1 − Δ ε / γ S ) M g ⋆ is the mean of the binomial comparison. Setting the right-hand side ≤ δ \le\delta ≤ δ and solving gives the exact sufficient bound
M g ⋆ ≥ 2 ν ⋆ + ln ( 1 / δ ) + ln 2 ( 1 / δ ) + 4 ν ⋆ ln ( 1 / δ ) 2 Δ ε ( 1 − Δ ε / γ ~ S ) , (49) M_g^\star\ge\frac{2\nu^\star+\ln(1/\delta)+\sqrt{\ln^2(1/\delta)+4\nu^\star\ln(1/\delta)}}{2\Delta_\varepsilon(1-\Delta_\varepsilon/\widetilde{\gamma}_S)}, \tag*{(49)} M g ⋆ ≥ 2 Δ ε ( 1 − Δ ε / γ S ) 2 ν ⋆ + ln ( 1/ δ ) + ln 2 ( 1/ δ ) + 4 ν ⋆ ln ( 1/ δ ) , (49)
valid for all 0 < Δ ε < γ ~ S 0<\Delta_\varepsilon<\widetilde{\gamma}_S 0 < Δ ε < γ S and 0 < δ < 1 0<\delta<1 0 < δ < 1 . To leading order, this yields
M g ⋆ ≥ ν ⋆ Δ ε ( 1 + O ( ln ( 1 / δ ) ν ⋆ ) + O ( Δ ε γ ~ S ) ) . (50) M_g^\star\ge\frac{\nu^\star}{\Delta_\varepsilon}\left(1+O\left(\sqrt{\frac{\ln(1/\delta)}{\nu^\star}}\right)+O\left(\frac{\Delta_\varepsilon}{\widetilde{\gamma}_S}\right)\right). \tag*{(50)} M g ⋆ ≥ Δ ε ν ⋆ ( 1 + O ( ν ⋆ ln ( 1/ δ ) ) + O ( γ S Δ ε ) ) . (50)
Here, Chernoff gives a factor at most 1 + 2 ln ( 1 / δ ) / ( 2 ν ⋆ ) + 2 ln ( 1 / δ ) / ( 2 ν ⋆ ) 1+\sqrt{2\ln(1/\delta)/(2\nu^\star)}+2\ln(1/\delta)/(2\nu^\star) 1 + 2 ln ( 1/ δ ) / ( 2 ν ⋆ ) + 2 ln ( 1/ δ ) / ( 2 ν ⋆ ) . Eq. (50) 's big-O O O is intended for the regime ln ( 1 / δ ) / ν ⋆ ≲ O ( 1 ) \sqrt{\ln(1/\delta)/\nu^\star}\lesssim O(1) ln ( 1/ δ ) / ν ⋆ ≲ O ( 1 ) . The same can be said for all Chernoff bounds in this paper (Lemmas VII.5 and VII.6). The purity correction is O ( Δ ε ) O(\Delta_\varepsilon) O ( Δ ε ) whenever γ ~ S \widetilde{\gamma}_S γ S has a constant lower bound.
When ν ⋆ = 0 \nu^\star=0 ν ⋆ = 0 , S ⋆ = C ( S ⋆ ) S^\star=\mathcal{C}(S^\star) S ⋆ = C ( S ⋆ ) , so the initial span already retains purity γ S ⋆ \gamma_{S^\star} γ S ⋆ . The case Δ ε ≥ γ ~ S \Delta_\varepsilon\ge\widetilde{\gamma}_S Δ ε ≥ γ S follows from nonnegativity of purity.
Lemma VII.1 establishes the intermediate-mode condition; Lemma VII.2 establishes the additional condition for the clean mode.
At λ = 0 \lambda=0 λ = 0 every Bell difference sample is good (Proposition III.5), and these two lemmas alone give the sample complexity of the noise-free learner, Algorithm 1, in our accuracy measure:
Corollary VII.3 (Sample complexity of Algorithm 1). For a pure state ψ \psi ψ with stabilizer nullity ν ≤ t \nu\le t ν ≤ t , 0 < ε < 1 / 2 0<\varepsilon<1/2 0 < ε < 1/2 , and 0 < δ < 1 0<\delta<1 0 < δ < 1 , M = O ( n + t + ln ( 1 / δ ) ε ) M=O\left(n+\frac{t+\ln(1/\delta)}{\varepsilon}\right) M = O ( n + ε t + l n ( 1/ δ ) ) Bell difference samples suffice for Algorithm 1 to output a commuting group S ~ \widetilde{S} S satisfying
S ⊆ S ~ , 1 − γ S ~ ≤ ε , (51) S\subseteq\widetilde{S},\qquad1-\gamma_{\widetilde{S}}\le\varepsilon, \tag*{(51)} S ⊆ S , 1 − γ S ≤ ε , (51) with probability at least 1 − δ 1-\delta 1 − δ , where S = Stab ( ψ ) S=\operatorname{Stab}(\psi) S = Stab ( ψ ) .
Proof. The radical S ~ \widetilde{S} S is commuting by construction. Lemmas VII.1 and VII.2, applied with initial group { I } \{I\} { I } and Δ ε = ε \Delta_\varepsilon=\varepsilon Δ ε = ε and the exact bound of Eq. (49) , give S ⊆ S ^ S\subseteq\widehat{S} S ⊆ S and γ C ( S ^ ) ≥ 1 − ε \gamma_{\mathcal{C}(\widehat{S})}\ge1-\varepsilon γ C ( S ) ≥ 1 − ε at the stated sample count, with total failure probability at most δ \delta δ . Since S ^ ⊆ C ( S ) \widehat{S}\subseteq\mathcal{C}(S) S ⊆ C ( S ) , also S ⊆ C ( S ^ ) S\subseteq\mathcal{C}(\widehat{S}) S ⊆ C ( S ) , so S ⊆ S ~ S\subseteq\widetilde{S} S ⊆ S . Since S ~ ⊆ C ( S ^ ) \widetilde{S}\subseteq\mathcal{C}(\widehat{S}) S ⊆ C ( S ) , Observation IV.1 gives γ S ~ ≥ γ C ( S ^ ) ≥ 1 − ε \gamma_{\widetilde{S}}\ge\gamma_{\mathcal{C}(\widehat{S})}\ge1-\varepsilon γ S ≥ γ C ( S ) ≥ 1 − ε .
Considering Bad Samples
Sec. VII B established a lower bound on M g ⋆ M_g^\star M g ⋆ needed for good* samples to contain useful information. Here we bound M b ⋆ M_b^\star M b ⋆ from above to control bad* sample contamination. Within each batch, we have knowledge of bounds q g ⋆ , q b ⋆ q_g^\star,q_b^\star q g ⋆ , q b ⋆ (Table III ) satisfying p g ⋆ ≥ q g ⋆ p_g^\star\ge q_g^\star p g ⋆ ≥ q g ⋆ and p b ⋆ ≤ q b ⋆ p_b^\star\le q_b^\star p b ⋆ ≤ q b ⋆ , obtained by means discussed later. We also have an upper bound t t t on ν \nu ν (hence ν ⋆ ≤ ν ≤ t \nu^\star\le\nu\le t ν ⋆ ≤ ν ≤ t ) from the promise of Problem II.1. We prove two modes of success per batch: the intermediate mode (Algorithm 7) and the clean mode (Algorithm 6).
Both per-batch proofs condition on a batch with (strictly) more than K g K_g K g good* samples and (strictly) fewer than K b K_b K b bad* samples; each proof fixes its own thresholds K g K_g K g and K b K_b K b . The following window on M M M guarantees both.
Lemma VII.4 (Sampling window). Let K g , K b > 0 K_g,K_b>0 K g , K b > 0 and 0 < δ 1 , δ 2 < 1 0<\delta_1,\delta_2<1 0 < δ 1 , δ 2 < 1 , with q g ⋆ ≤ p g ⋆ q_g^\star\le p_g^\star q g ⋆ ≤ p g ⋆ and q b ⋆ ≥ p b ⋆ q_b^\star\ge p_b^\star q b ⋆ ≥ p b ⋆ . If a batch of M M M Bell difference samples satisfies
K g q g ⋆ ( 1 + O ( ln 1 δ 1 K g ) ) ≤ M ≤ K b q b ⋆ max ( 1 − O ( ln 1 δ 2 K b ) , δ 2 1 / ⌈ K b ⌉ e ) , (52) \frac{K_g}{q_g^\star}\left(1+O\left(\sqrt{\frac{\ln\frac{1}{\delta_1}}{K_g}}\right)\right) \le M \le\frac{K_b}{q_b^\star}\max\left(1-O\left(\sqrt{\frac{\ln\frac{1}{\delta_2}}{K_b}}\right),\frac{\delta_2^{1/\lceil K_b\rceil}}{e}\right), \tag*{(52)} q g ⋆ K g 1 + O K g ln δ 1 1 ≤ M ≤ q b ⋆ K b max 1 − O K b ln δ 2 1 , e δ 2 1/ ⌈ K b ⌉ , (52) then P [ M g ⋆ ≤ K g ] ≤ δ 1 \mathbb{P}[M_g^\star\le K_g]\le\delta_1 P [ M g ⋆ ≤ K g ] ≤ δ 1 and P [ M b ⋆ ≥ K b ] ≤ δ 2 \mathbb{P}[M_b^\star\ge K_b]\le\delta_2 P [ M b ⋆ ≥ K b ] ≤ δ 2 .
Proof. Intuitively, we have M g ⋆ ≳ M q g ⋆ M_g^\star\gtrsim Mq_g^\star M g ⋆ ≳ M q g ⋆ and M b ⋆ ≲ M q b ⋆ M_b^\star\lesssim Mq_b^\star M b ⋆ ≲ M q b ⋆ . Chernoff gives both bounds when M M M lies in the window.3 The second term in the max is a safeguard in the event that the first term becomes negative; it comes from P [ M b ⋆ ≥ K b ] ≤ ( M ⌈ K b ⌉ ) ( q b ⋆ ) ⌈ K b ⌉ ≤ ( e M q b ⋆ ⌈ K b ⌉ ) ⌈ K b ⌉ ≤ ( e M q b ⋆ K b ) ⌈ K b ⌉ ≤ δ 2 \mathbb{P}[M_b^\star\ge K_b]\le\binom{M}{\lceil K_b\rceil}(q_b^\star)^{\lceil K_b\rceil}\le\left(\frac{eMq_b^\star}{\lceil K_b\rceil}\right)^{\lceil K_b\rceil}\le\left(\frac{eMq_b^\star}{K_b}\right)^{\lceil K_b\rceil}\le\delta_2 P [ M b ⋆ ≥ K b ] ≤ ( ⌈ K b ⌉ M ) ( q b ⋆ ) ⌈ K b ⌉ ≤ ( ⌈ K b ⌉ e M q b ⋆ ) ⌈ K b ⌉ ≤ ( K b e M q b ⋆ ) ⌈ K b ⌉ ≤ δ 2 .4
In either mode, our formulas contain relative corrections of order ln ( 1 / δ ) / K \sqrt{\ln(1/\delta)/K} ln ( 1/ δ ) / K , such as the O ( ⋅ ) O(\cdot) O ( ⋅ ) terms in Eq. (52) . Here δ \delta δ is the per-batch failure probability and K K K is a sample count set by the current progress, such as K g ≈ ν ~ + t K_g\approx\tilde{\nu}+t K g ≈ ν ~ + t and K b ≈ ν ~ − t K_b\approx\tilde{\nu}-t K b ≈ ν ~ − t in the intermediate mode; since we don’t know ν ⋆ \nu^\star ν ⋆ , these counts already use the bound ν ⋆ ≤ t \nu^\star\le t ν ⋆ ≤ t . When K ≫ ln ( 1 / δ ) K\gg\ln(1/\delta) K ≫ ln ( 1/ δ ) , the corrections are negligible and the formulas simplify. Since we can always rerun a batch multiple times within one iteration to boost success probability, it is tolerable to take δ ≲ O ( 1 ) \delta\lesssim O(1) δ ≲ O ( 1 ) per batch. The only remaining regime where the corrections cannot be made negligible is therefore K = O ( 1 ) K=O(1) K = O ( 1 ) , which for the intermediate mode happens near the end, when ν ~ − t = O ( 1 ) \tilde{\nu}-t=O(1) ν ~ − t = O ( 1 ) (or negative). Accordingly, Lemma VII.5 distinguishes ν ~ − t ≫ ln ( 1 / δ ) \tilde{\nu}-t\gg\ln(1/\delta) ν ~ − t ≫ ln ( 1/ δ ) from ν ~ − t ≲ O ( 1 ) \tilde{\nu}-t\lesssim O(1) ν ~ − t ≲ O ( 1 ) , and Lemma VII.6 collects the corresponding corrections into constants.
Lemma VII.5 (Per-Batch Success Condition of Intermediate Mode). There are two cases:
ν ~ − t ≫ ln 1 δ \tilde{\nu}-t\gg\ln\frac{1}{\delta} ν ~ − t ≫ ln δ 1 : If q b ⋆ q g ⋆ ≈ ν ~ − t ν ~ + t \frac{q_b^\star}{q_g^\star}\approx\frac{\tilde{\nu}-t}{\tilde{\nu}+t} q g ⋆ q b ⋆ ≈ ν ~ + t ν ~ − t , take
M ≈ ν ~ + t q g ⋆ , L ≈ 2 t ln 1 δ (53) M\approx\frac{\tilde{\nu}+t}{q_g^\star},\qquad L\approx2^t\ln\frac{1}{\delta} \tag*{(53)} M ≈ q g ⋆ ν ~ + t , L ≈ 2 t ln δ 1 (53) in Algorithm 5 with propose from Algorithm 7. Then with probability at least 1 − δ 1-\delta 1 − δ , S ~ \tilde{S} S ~ is successfully incremented by one Pauli.
ν ~ − t ≲ O ( 1 ) \tilde{\nu}-t\lesssim O(1) ν ~ − t ≲ O ( 1 ) or negative: Let C 1 , C 2 > 1 C_1,C_2>1 C 1 , C 2 > 1 and let 0 < c < 1 0<c<1 0 < c < 1 be a constant, where C 1 ≈ 1 C_1\approx1 C 1 ≈ 1 when t ≫ 1 t\gg1 t ≫ 1 . If q b ⋆ q g ⋆ ≲ 1 c ν ~ + t \frac{q_b^\star}{q_g^\star}\lesssim\frac{1}{c\tilde{\nu}+t} q g ⋆ q b ⋆ ≲ c ν ~ + t 1 , take
M ≈ C 1 ν ~ + t q g ⋆ , L ≈ C 2 2 t (54) M\approx C_1\frac{\tilde{\nu}+t}{q_g^\star},\qquad L\approx C_2 2^t \tag*{(54)} M ≈ C 1 q g ⋆ ν ~ + t , L ≈ C 2 2 t (54) in Algorithm 5 with propose from Algorithm 7.
Either with constant probability, S ~ \tilde{S} S ~ is successfully incremented by one Pauli,
or we already have S ⊆ S ~ S\subseteq\tilde{S} S ⊆ S ~ .
Proof idea. We choose M M M so that, with high probability, the batch contains more than K g ≈ ν ~ + t K_g \approx\tilde{\nu}+t K g ≈ ν ~ + t good⋆ ^\star ⋆ samples—enough for their span to contain S ⋆ S^\star S ⋆ by Lemma VII.1—and fewer than K b K_b K b bad⋆ ^\star ⋆ samples. Each bad⋆ ^\star ⋆ sample imposes at most one linear constraint on the radical, so R ⋆ ∩ S ⋆ R^\star\cap S^\star R ⋆ ∩ S ⋆ has codimension at most ⌊ K b ⌋ < \lfloor K_b\rfloor_{<} ⌊ K b ⌋ < in S ⋆ S^\star S ⋆ ; on the other hand, R ⋆ ⊆ C ( S ⋆ ) R^\star\subseteq C(S^\star) R ⋆ ⊆ C ( S ⋆ ) forces at least a 2 − ν ⋆ ≥ 2 − t 2^{-\nu^\star} \ge2^{-t} 2 − ν ⋆ ≥ 2 − t fraction of R ⋆ R^\star R ⋆ to lie in S ⋆ S^\star S ⋆ . A uniformly random r ∈ R ∖ S ~ r \in R \setminus\widetilde{S} r ∈ R ∖ S therefore lands in S ⋆ ∖ S ~ S^\star\setminus\widetilde{S} S ⋆ ∖ S with probability ≳ 2 − t \gtrsim2^{-t} ≳ 2 − t , and any such r r r is accepted by the verifier at no purity cost, so L ≃ 2 t ln 1 δ L \simeq2^t \ln\frac{1}{\delta} L ≃ 2 t ln δ 1 draws suffice. The condition on q b ⋆ q g ⋆ \frac{q^\star_b}{q^\star_g} q g ⋆ q b ⋆ is exactly what makes the lower and upper requirements on M M M compatible. Figure 7 shows the two bounds at work.
Figure 7. Where the 2 − t 2^{-t} 2 − t of the intermediate mode comes from, in the nesting convention of Figure 6 . Once S ⋆ ⊆ B g ⋆ S^\star\subseteq B_g^\star S ⋆ ⊆ B g ⋆ , the radical R ⋆ R^\star R ⋆ lies inside C ( S ⋆ ) C(S^\star) C ( S ⋆ ) but straddles S ⋆ S^\star S ⋆ . Candidates are drawn from R ∖ S ~ R \setminus\widetilde{S} R ∖ S , so the gray region S ~ \widetilde{S} S of directions already accepted is omitted; a draw landing in the lens R ⋆ ∩ S ⋆ R^\star\cap S^\star R ⋆ ∩ S ⋆ is guaranteed to be accepted by the verifier at no purity cost. Two bounds squeeze the lens. From above, R ⋆ R^\star R ⋆ cannot escape S ⋆ S^\star S ⋆ by much, so at least a 2 − t 2^{-t} 2 − t fraction of it lies inside S ⋆ S^\star S ⋆ ; from below, each bad⋆ ^\star ⋆ sample imposes at most one linear constraint, so the lens loses at most ⌊ K b ⌋ < \lfloor K_b\rfloor_{<} ⌊ K b ⌋ < dimensions. Together they give the L ≃ 2 t ln 1 δ L \simeq2^t \ln\frac{1}{\delta} L ≃ 2 t ln δ 1 attempts per batch that Algorithm 7 makes. The regions are not drawn to scale: the guaranteed fraction 2 − t 2^{-t} 2 − t is far smaller than the lens shown.
Proof. Our proof is organized into sections. In total, it relies on four different high-probability events: enough good⋆ ^\star ⋆ samples (δ 1 \delta_1 δ 1 ), few enough bad⋆ ^\star ⋆ samples (δ 2 \delta_2 δ 2 ), a good⋆ ^\star ⋆ span containing S ⋆ S^\star S ⋆ (δ 3 \delta_3 δ 3 ), and a useful draw among the L L L attempts (δ 4 \delta_4 δ 4 ). Split the failure probability budget δ \delta δ into δ 1 + δ 2 + δ 3 + δ 4 \delta_1+\delta_2+\delta_3+\delta_4 δ 1 + δ 2 + δ 3 + δ 4 ; the exact allocation is fixed at the end.
Conditioning on the sample counts. In each batch, we draw M M M Bell difference samples, M g ⋆ M^\star_g M g ⋆ of which are good⋆ ^\star ⋆ and M b ⋆ M^\star_b M b ⋆ of which are bad⋆ ^\star ⋆ . We want (strictly) more than K g K_g K g good⋆ ^\star ⋆ samples, enough for them to be useful, and (strictly) fewer than K b K_b K b bad⋆ ^\star ⋆ samples, few enough not to be too corrupting, where K b K_b K b and K g K_g K g will be fixed later. By Lemma VII.4, this fails with probability at most δ 1 + δ 2 \delta_1+\delta_2 δ 1 + δ 2 whenever M M M lies in the window of Eq. (52) . From now on, assume good⋆ ^\star ⋆ and bad⋆ ^\star ⋆ samples are already decided and M g ⋆ > K g M^\star_g>K_g M g ⋆ > K g , M b ⋆ < K b M^\star_b<K_b M b ⋆ < K b .
Good⋆ ^\star ⋆ sample condition. Similar to Sec. VII.B, use the ⋆ \star ⋆ superscript to indicate structures coupled to S ~ \widetilde{S} S . That is, for each sample b i ′ b'_i b i ′ passing post-selection, b i ′ = b i ′ + S ~ b'_i=b'_i+\widetilde{S} b i ′ = b i ′ + S ; for each group G G G , G ⋆ = G + S ~ G^\star=G+\widetilde{S} G ⋆ = G + S . Let B g B_g B g and B b B_b B b denote the spans of good and bad samples, respectively, and B ′ = B g + B b B'=B_g+B_b B ′ = B g + B b the span of all post-selected samples. (So B g ⋆ = B g + S ~ B^\star_g=B_g+\widetilde{S} B g ⋆ = B g + S and B g ⋆ / S ~ = span { b g 1 ⋆ , … , b g M g ⋆ ⋆ } B^\star_g/\widetilde{S}=\operatorname{span}\{b^\star_{g1},\ldots,b^\star_{gM^\star_g}\} B g ⋆ / S = span { b g 1 ⋆ , … , b g M g ⋆ ⋆ } where the b g i b_{gi} b g i are the good samples; the same applies to B b B_b B b and B ′ B' B ′ .)
We set K g = ν ~ + t + log 2 1 δ 3 K_g=\tilde{\nu}+t+\log_2\frac{1}{\delta_3} K g = ν ~ + t + log 2 δ 3 1 . This way, Lemma VII.1 applies: with probability ≥ 1 − δ 3 \ge1-\delta_3 ≥ 1 − δ 3 , S ⋆ ⊆ B g ⋆ S^\star\subseteq B^\star_g S ⋆ ⊆ B g ⋆ . From now on, assume the samples b i b_i b i are drawn and S ⋆ ⊆ B g ⋆ S^\star\subseteq B^\star_g S ⋆ ⊆ B g ⋆ .
The radical in starred form. Let R ⋆ = R + S ~ R^\star=R+\widetilde{S} R ⋆ = R + S . As discussed in Sec. VII.B.1, uniform r ∈ R ∖ S ~ r\in R\setminus\widetilde{S} r ∈ R ∖ S induces a uniform non-zero coset in R ⋆ / S ~ R^\star/\widetilde{S} R ⋆ / S . So it suffices to study R ⋆ R^\star R ⋆ instead of R R R . Note R ⋆ = ( B ′ ∩ C ( B ′ ) ) + S ~ = ( B ′ + S ~ ) ∩ C ( B ′ ) = rad ( B ′ ) R^\star=(B'\cap C(B'))+\widetilde{S}=(B'+\widetilde{S})\cap C(B')=\operatorname{rad}(B') R ⋆ = ( B ′ ∩ C ( B ′ )) + S = ( B ′ + S ) ∩ C ( B ′ ) = rad ( B ′ ) .5
Surviving target directions, R ⋆ ∩ S ⋆ R^\star\cap S^\star R ⋆ ∩ S ⋆ . If the propose function proposes r ∈ S ⋆ ∖ S ~ r\in S^\star\setminus\widetilde{S} r ∈ S ⋆ ∖ S , the verifier always accepts because there is no purity loss (Theorem V.4 , where Δ γ = 0 \Delta\gamma=0 Δ γ = 0 because γ r + S ~ = γ S ~ = γ S ⋆ \gamma_{r+\widetilde{S}}=\gamma_{\widetilde{S}}=\gamma_{S^\star} γ r + S = γ S = γ S ⋆ , by Observation IV.2). So we need to bound ( R ⋆ ∩ S ⋆ ) ∖ S ~ (R^\star\cap S^\star)\setminus\widetilde{S} ( R ⋆ ∩ S ⋆ ) ∖ S by bounding dim R ⋆ ∩ S ⋆ S \dim\frac{R^\star\cap S^\star}{S} dim S R ⋆ ∩ S ⋆ . To that end, using S ⋆ ⊆ B g ⋆ ⊆ B ′ ⋆ S^\star\subseteq B_g^\star\subseteq B^{\prime\star} S ⋆ ⊆ B g ⋆ ⊆ B ′ ⋆ and S ⋆ ⊆ C ( B g ⋆ ) S^\star\subseteq C(B_g^\star) S ⋆ ⊆ C ( B g ⋆ ) ,
R ⋆ ∩ S ⋆ = B ′ ⋆ ∩ C ( B g + S ~ + B b ) ∩ S ⋆ = B ′ ⋆ ∩ C ( B g ⋆ ) ∩ C ( B b ) ∩ S ⋆ = S ⋆ ∩ C ( B b ) = { x : x ∈ S ⋆ , ⟨ x , b ⟩ = 0 ∀ b ∈ B b } . (55) \begin{aligned}
R^\star\cap S^\star&= B^{\prime\star} \cap C(B_g+\widetilde{S}+B_b) \cap S^\star\\
&= B^{\prime\star} \cap C(B_g^\star) \cap C(B_b) \cap S^\star\\
&= S^\star\cap C(B_b)=\{x:x\in S^\star,\langle x,b\rangle=0\ \forall b\in B_b\}. \tag*{(55)}
\end{aligned} R ⋆ ∩ S ⋆ = B ′ ⋆ ∩ C ( B g + S + B b ) ∩ S ⋆ = B ′ ⋆ ∩ C ( B g ⋆ ) ∩ C ( B b ) ∩ S ⋆ = S ⋆ ∩ C ( B b ) = { x : x ∈ S ⋆ , ⟨ x , b ⟩ = 0 ∀ b ∈ B b } . (55)
which is S ⋆ S^\star S ⋆ with additional dim B b \dim B_b dim B b additional constraints, so each bad⋆ ^\star ⋆ sample removes at most one independent target direction. Since dim B b < K b \dim B_b<K_b dim B b < K b , we have dim B b ≤ ⌊ K b ⌋ < \dim B_b\leq\lfloor K_b\rfloor_{<} dim B b ≤ ⌊ K b ⌋ < , where ⌊ K b ⌋ < = ⌈ K b ⌉ − 1 \lfloor K_b\rfloor_{<}=\lceil K_b\rceil-1 ⌊ K b ⌋ < = ⌈ K b ⌉ − 1 is the largest integer smaller than K b K_b K b . Hence, dim ( R ⋆ ∩ S ⋆ ) ≥ dim S ⋆ − ⌊ K b ⌋ < \dim(R^\star\cap S^\star)\geq\dim S^\star-\lfloor K_b\rfloor_{<} dim ( R ⋆ ∩ S ⋆ ) ≥ dim S ⋆ − ⌊ K b ⌋ < and dim ( R ⋆ ∩ S ⋆ / S ~ ) ≥ ν ~ − ν ⋆ − ⌊ K b ⌋ < \dim(R^\star\cap S^\star/\widetilde{S})\geq\widetilde{\nu}-\nu^\star-\lfloor K_b\rfloor_{<} dim ( R ⋆ ∩ S ⋆ / S ) ≥ ν − ν ⋆ − ⌊ K b ⌋ < .
The radical stays close to the target , dim R ⋆ ∩ S ⋆ / S ~ \dim R^\star\cap S^\star/\widetilde{S} dim R ⋆ ∩ S ⋆ / S . Given that S ⋆ ⊆ B g ⋆ ⊆ B ⋆ = rad ( B ′ ⋆ ) ⊆ C ( S ⋆ ) S^\star\subseteq B_g^\star\subseteq B^\star=\operatorname{rad}(B^{\prime\star})\subseteq C(S^\star) S ⋆ ⊆ B g ⋆ ⊆ B ⋆ = rad ( B ′ ⋆ ) ⊆ C ( S ⋆ ) .6 Because any commuting group in C ( S ⋆ ) / S ⋆ C(S^\star)/S^\star C ( S ⋆ ) / S ⋆ has dimension at most ν ⋆ \nu^\star ν ⋆ , dim R ⋆ + S ⋆ S ⋆ ≤ ν ⋆ \dim\frac{R^\star+S^\star}{S^\star}\leq\nu^\star dim S ⋆ R ⋆ + S ⋆ ≤ ν ⋆ and hence dim R ⋆ R ⋆ ∩ S ⋆ = dim R ⋆ + S ⋆ S ⋆ ≤ ν ⋆ \dim\frac{R^\star}{R^\star\cap S^\star}=\dim\frac{R^\star+S^\star}{S^\star}\leq\nu^\star dim R ⋆ ∩ S ⋆ R ⋆ = dim S ⋆ R ⋆ + S ⋆ ≤ ν ⋆ (second isomorphism theorem). Therefore, at least a 2 − ν ⋆ ≥ 2 − t 2^{-\nu^\star}\geq2^{-t} 2 − ν ⋆ ≥ 2 − t fraction of R ⋆ R^\star R ⋆ lies in S ⋆ S^\star S ⋆ .
Conclusion. Therefore, each random r ∈ R ∖ S ~ r\in R\setminus\widetilde{S} r ∈ R ∖ S (or equivalently r ∈ R ⋆ ∖ S ~ r\in R^\star\setminus\widetilde{S} r ∈ R ⋆ ∖ S ) has success probability:
P [ r ∈ S ⋆ ∖ S ~ ] = ∣ R ⋆ ∩ S ⋆ ∣ − ∣ S ~ ∣ ∣ R ⋆ ∣ − ∣ S ~ ∣ = ∣ R ⋆ ∩ S ⋆ ∣ ∣ S ~ ∣ − 1 ∣ R ⋆ ∣ ∣ S ~ ∣ − 1 = ∣ R ⋆ ∩ S ⋆ ∣ ∣ S ~ ∣ − 1 2 ν ⋆ ∣ R ⋆ ∩ S ⋆ ∣ ∣ S ~ ∣ − 1 ≥ ∣ R ⋆ ∩ S ⋆ ∣ ∣ S ~ ∣ − 1 2 ν ⋆ ∣ R ⋆ ∩ S ⋆ ∣ ∣ S ~ ∣ − 1 ≥ 2 − ν ⋆ ( 1 − 2 − ( ν ~ − ν ⋆ − ⌊ K b ⌋ < ) ) . (56) \mathbb{P}[r\in S^\star\setminus\widetilde{S}]
=\frac{|R^\star\cap S^\star|-|\widetilde{S}|}{|R^\star|-|\widetilde{S}|}
=\frac{\frac{|R^\star\cap S^\star|}{|\widetilde{S}|}-1}{\frac{|R^\star|}{|\widetilde{S}|}-1}
=\frac{\frac{|R^\star\cap S^\star|}{|\widetilde{S}|}-1}{2^{\nu^\star}\frac{|R^\star\cap S^\star|}{|\widetilde{S}|}-1}
\geq\frac{\frac{|R^\star\cap S^\star|}{|\widetilde{S}|}-1}{2^{\nu^\star}\frac{|R^\star\cap S^\star|}{|\widetilde{S}|}-1}
\geq2^{-\nu^\star}\left(1-2^{-(\widetilde{\nu}-\nu^\star-\lfloor K_b\rfloor_{<})}\right). \tag*{(56)} P [ r ∈ S ⋆ ∖ S ] = ∣ R ⋆ ∣ − ∣ S ∣ ∣ R ⋆ ∩ S ⋆ ∣ − ∣ S ∣ = ∣ S ∣ ∣ R ⋆ ∣ − 1 ∣ S ∣ ∣ R ⋆ ∩ S ⋆ ∣ − 1 = 2 ν ⋆ ∣ S ∣ ∣ R ⋆ ∩ S ⋆ ∣ − 1 ∣ S ∣ ∣ R ⋆ ∩ S ⋆ ∣ − 1 ≥ 2 ν ⋆ ∣ S ∣ ∣ R ⋆ ∩ S ⋆ ∣ − 1 ∣ S ∣ ∣ R ⋆ ∩ S ⋆ ∣ − 1 ≥ 2 − ν ⋆ ( 1 − 2 − ( ν − ν ⋆ − ⌊ K b ⌋ < ) ) . (56)
Two situations:
ν ~ − t ≫ ln 1 δ 1 \widetilde{\nu}-t\gg\ln\frac{1}{\delta_1} ν − t ≫ ln δ 1 1 : We will choose the allocation at the end of the proof so that ln 1 δ 1 , ln 1 δ 2 ≪ ν ~ − t \ln\frac{1}{\delta_1},\ln\frac{1}{\delta_2}\ll\widetilde{\nu}-t ln δ 1 1 , ln δ 2 1 ≪ ν − t . Since K g K_g K g was set to be ≈ ν ~ + t ≫ ln 1 δ 1 \approx\widetilde{\nu}+t\gg\ln\frac{1}{\delta_1} ≈ ν + t ≫ ln δ 1 1 , the lower bound of Eq. (52) becomes M ≳ ν ~ + t q g ⋆ M\gtrsim\frac{\widetilde{\nu}+t}{q_g^\star} M ≳ q g ⋆ ν + t . So we set M ≈ ν ~ + t q g ⋆ M\approx\frac{\widetilde{\nu}+t}{q_g^\star} M ≈ q g ⋆ ν + t for efficiency. On the bad⋆ ^\star ⋆ sample side, we want K b K_b K b as large as possible to relax the upper bound on M M M in Eq. (52) . This is done by K b = ν ~ − t − ξ K_b=\widetilde{\nu}-t-\xi K b = ν − t − ξ for some scale ξ \xi ξ with 1 ≪ ξ ≪ ν ~ − t 1\ll\xi\ll\widetilde{\nu}-t 1 ≪ ξ ≪ ν − t .7 Then, by Eq. (56) , P [ r ∈ S ⋆ ∖ S ~ ] ≥ 2 − t ( 1 − 2 − ξ ) ≈ 2 − t \mathbb{P}[r\in S^\star\setminus\widetilde{S}]\geq2^{-t}(1-2^{-\xi})\approx2^{-t} P [ r ∈ S ⋆ ∖ S ] ≥ 2 − t ( 1 − 2 − ξ ) ≈ 2 − t . So setting L ≈ 2 t ln 1 δ 4 L\approx2^t\ln\frac{1}{\delta_4} L ≈ 2 t ln δ 4 1 gives a guaranteed update with probability at least 1 − δ 4 1-\delta_4 1 − δ 4 . Taking the first term of the max, Eq. (52) simplifies to M ≈ ν ~ + t q g ⋆ ≲ ν ~ − t q b ⋆ M\approx\frac{\widetilde{\nu}+t}{q_g^\star}\lesssim\frac{\widetilde{\nu}-t}{q_b^\star} M ≈ q g ⋆ ν + t ≲ q b ⋆ ν − t , which requires q b ⋆ q g ⋆ ≲ ν ~ − t ν ~ + t \frac{q_b^\star}{q_g^\star}\lesssim\frac{\widetilde{\nu}-t}{\widetilde{\nu}+t} q g ⋆ q b ⋆ ≲ ν + t ν − t .
ν ~ − t = O ( 1 ) \widetilde{\nu}-t=O(1) ν − t = O ( 1 ) or negative: We set δ \delta δ (and δ 1 , … , δ 4 \delta_1,\ldots,\delta_4 δ 1 , … , δ 4 ) to be appropriate constants. Then K g = ν ~ + t + O ( 1 ) K_g=\widetilde{\nu}+t+O(1) K g = ν + t + O ( 1 ) , so we take M ≈ C 1 ν ~ + t q g ⋆ M\approx C_1\frac{\widetilde{\nu}+t}{q_g^\star} M ≈ C 1 q g ⋆ ν + t , where constant C 1 > 1 C_1>1 C 1 > 1 and C 1 ≈ 1 C_1\approx1 C 1 ≈ 1 when ν ~ + t ≫ 1 \widetilde{\nu}+t\gg1 ν + t ≫ 1 , i.e., t ≫ 1 t\gg1 t ≫ 1 .
Unlike in the case ν ~ − t ≫ ln 1 δ 1 \widetilde{\nu}-t\gg\ln\frac{1}{\delta_1} ν − t ≫ ln δ 1 1 , we set K b = 1 K_b=1 K b = 1 such that ⌊ K b ⌋ < = 0 \lfloor K_b\rfloor_{<}=0 ⌊ K b ⌋ < = 0 , i.e., the batch contains no bad⋆ ^\star ⋆ samples. This way, if ν ⋆ < ν ~ \nu^\star<\widetilde{\nu} ν ⋆ < ν , by Eq. (56) , P [ r ∈ S ⋆ ∖ S ~ ] ≥ 2 − ( t + 1 ) \mathbb{P}[r\in S^\star\setminus\widetilde{S}]\geq2^{-(t+1)} P [ r ∈ S ⋆ ∖ S ] ≥ 2 − ( t + 1 ) . Therefore it suffices to take L = ⌈ 2 × 2 t ln 1 δ 4 ⌉ = 2 t × Θ ( 1 ) L=\lceil2\times2^t\ln\frac{1}{\delta_4}\rceil=2^t\times\Theta(1) L = ⌈ 2 × 2 t ln δ 4 1 ⌉ = 2 t × Θ ( 1 ) ; if ν ⋆ = ν ~ \nu^\star=\widetilde{\nu} ν ⋆ = ν , then dim S ⋆ = dim S ~ \dim S^\star=\dim\widetilde{S} dim S ⋆ = dim S , so S ⋆ = S ~ S^\star=\widetilde{S} S ⋆ = S and we are already done.8
It remains to check that Eq. (52) is compatible with this choice. Since the first term in the max in the upper bound of Eq. (52) can become negative, we use the second term as a safeguard. With δ 2 = Θ ( 1 ) \delta_2=\Theta(1) δ 2 = Θ ( 1 ) , this gives the sufficient condition
M = C 1 ν ~ + t q g ⋆ ≲ C ′ 1 q b ⋆ , 0 < C ′ < 1 (57) M=C_1\frac{\widetilde{\nu}+t}{q_g^\star}\lesssim C'\frac{1}{q_b^\star},\qquad0<C'<1 \tag*{(57)} M = C 1 q g ⋆ ν + t ≲ C ′ q b ⋆ 1 , 0 < C ′ < 1 (57)
Equivalently, q b ⋆ q g ⋆ ≲ c 1 ν ~ + t \frac{q_b^\star}{q_g^\star}\lesssim c\frac{1}{\widetilde{\nu}+t} q g ⋆ q b ⋆ ≲ c ν + t 1 for c = C ′ C 1 < 1 c=\frac{C'}{C_1}<1 c = C 1 C ′ < 1 .
Failure budget. In the case ν ~ − t ≫ ln 1 δ \widetilde{\nu}-t\gg\ln\frac{1}{\delta} ν − t ≫ ln δ 1 , allocate
{ δ 1 = δ 2 = δ 3 = δ 4 = δ 4 , if ln 1 δ ≫ 1 , δ 4 = ( 1 − η ) δ , δ 1 = δ 2 = δ 3 = η 3 δ , if ln 1 δ = O ( 1 ) (58) \begin{cases}
\delta_1=\delta_2=\delta_3=\delta_4=\frac{\delta}{4}, & \text{if }\ln\frac{1}{\delta}\gg1,\\
\delta_4=(1-\eta)\delta,\quad\delta_1=\delta_2=\delta_3=\frac{\eta}{3}\delta, & \text{if }\ln\frac{1}{\delta}=O(1) \tag*{(58)}
\end{cases} { δ 1 = δ 2 = δ 3 = δ 4 = 4 δ , δ 4 = ( 1 − η ) δ , δ 1 = δ 2 = δ 3 = 3 η δ , if ln δ 1 ≫ 1 , if ln δ 1 = O ( 1 ) (58)
where η \eta η is some scale with 1 ≪ ln 1 η ≪ ν ~ − t 1\ll\ln\frac{1}{\eta}\ll\widetilde{\nu}-t 1 ≪ ln η 1 ≪ ν − t . This keeps ln 1 δ 1 , ln 1 δ 2 ≪ ν ~ − t \ln\frac{1}{\delta_1},\ln\frac{1}{\delta_2}\ll\widetilde{\nu}-t ln δ 1 1 , ln δ 2 1 ≪ ν − t , as used above, and gives L ≈ 2 t ln 1 δ L\approx2^t\ln\frac{1}{\delta} L ≈ 2 t ln δ 1 . In the case ν ~ − t = O ( 1 ) \widetilde{\nu}-t=O(1) ν − t = O ( 1 ) , the δ i \delta_i δ i are the constants chosen there. Either way, δ 1 + δ 2 + δ 3 + δ 4 ≤ δ \delta_1+\delta_2+\delta_3+\delta_4\leq\delta δ 1 + δ 2 + δ 3 + δ 4 ≤ δ .
The lemma for the clean mode is similar. Note that in addition to the cases determined by t t t versus ln 1 δ \ln\frac{1}{\delta} ln δ 1 , the parameters also depend on q b ∗ q g ∗ \frac{q_b^*}{q_g^*} q g ∗ q b ∗ versus ln 1 δ χ \frac{\ln\frac{1}{\delta}}{\chi} χ l n δ 1 . As discussed above, we take δ \delta δ to be a Θ ( 1 ) \Theta(1) Θ ( 1 ) constant to delay the transition between regimes, thereby absorbing the ln 1 δ \ln\frac{1}{\delta} ln δ 1 terms into constants on one side.
Assume the verifier is always correct. In the sample bounds, γ S ~ \gamma_{\widetilde{S}} γ S can be replaced by any known lower bound, such as γ − ε a c c \gamma-\varepsilon_{\mathrm{acc}} γ − ε acc , provided the accuracy budget is smaller than that bound.
Lemma VII.6 (Per-Batch Success Condition of Clean Mode). For 0 < Δ ε ≪ γ ~ S 0 < \Delta_{\varepsilon} \ll\widetilde{\gamma}_{S} 0 < Δ ε ≪ γ S , define χ ≡ max { C 1 t Δ ε , C 2 ( ν ~ + t ) } \chi\equiv\max\left\{C_1\frac{t}{\Delta_{\varepsilon}}, C_2(\widetilde{\nu}+t)\right\} χ ≡ max { C 1 Δ ε t , C 2 ( ν + t ) } . We take M = χ q g ∗ M=\frac{\chi}{q_g^*} M = q g ∗ χ in Algorithm 5 with propose from Algorithm 6. With probability at least 1 − δ 1-\delta 1 − δ , the verifier accepts the whole proposed radical R R R if queried. If the update is denoted by S ~ ← R ~ ∗ = R + S ~ \widetilde{S}\leftarrow\widetilde{R}^*=R+\widetilde{S} S ← R ∗ = R + S , then
dim S ∗ S ∗ ∩ R ~ ∗ ≤ ⌊ K b ⌋ < (59) \dim\frac{S^*}{S^*\cap\widetilde{R}^*}\leq\lfloor K_b\rfloor_{<} \tag*{(59)} dim S ∗ ∩ R ∗ S ∗ ≤ ⌊ K b ⌋ < (59) where K b = C 3 q b ∗ q g ∗ χ K_b=C_3\frac{q_b^*}{q_g^*}\chi K b = C 3 q g ∗ q b ∗ χ for q b ∗ > 0 q_b^*>0 q b ∗ > 0 and ⌊ K b ⌋ < = ⌈ K b ⌉ − 1 \lfloor K_b\rfloor_{<}=\lceil K_b\rceil-1 ⌊ K b ⌋ < = ⌈ K b ⌉ − 1 is the largest integer smaller than K b K_b K b . In other words, we are ⌊ K b ⌋ < \lfloor K_b\rfloor_{<} ⌊ K b ⌋ < away from final success. Here, δ ≤ Θ ( 1 ) \delta\leq\Theta(1) δ ≤ Θ ( 1 ) , constants C 1 , C 2 , C 3 > 1 C_1,C_2,C_3>1 C 1 , C 2 , C 3 > 1 , C 1 ≈ 1 C_1\approx1 C 1 ≈ 1 when t ≫ ln 1 δ t\gg\ln\frac{1}{\delta} t ≫ ln δ 1 , C 2 ≈ 1 C_2\approx1 C 2 ≈ 1 when ν ~ + t ≫ ln 1 δ \widetilde{\nu}+t\gg\ln\frac{1}{\delta} ν + t ≫ ln δ 1 , and C 3 ≈ 1 C_3\approx1 C 3 ≈ 1 when q b ∗ q g ∗ χ ≫ ln 1 δ \frac{q_b^*}{q_g^*}\chi\gg\ln\frac{1}{\delta} q g ∗ q b ∗ χ ≫ ln δ 1 .
Proof idea. The bookkeeping is the same as in Lemma VII.5, with one more requirement on the good∗ ^* ∗ samples: their span must be large enough that its centralizer retains purity γ ~ S − Δ ε − \widetilde{\gamma}_{S}-\Delta_{\varepsilon-} γ S − Δ ε − (Lemma VII.2). This costs K g ≈ t Δ ε K_g\approx\frac{t}{\Delta_{\varepsilon}} K g ≈ Δ ε t samples and is where χ \chi χ comes from. Since the radical sits inside that centralizer, its purity is at least as large, so the verifier accepts all of R R R at once. The bad∗ ^* ∗ samples again cut at most ⌊ K b ⌋ < \lfloor K_b\rfloor_{<} ⌊ K b ⌋ < dimensions off S ∗ S^* S ∗ , which is the distance to final success in Eq. (59) ; K b K_b K b is then the smallest value compatible with the batch size M = χ / q g ∗ M=\chi/q_g^* M = χ / q g ∗ .
Proof. Probability bounds. Split the failure probability as δ = δ 1 + δ 2 + δ 3 + δ 4 \delta=\delta_1+\delta_2+\delta_3+\delta_4 δ = δ 1 + δ 2 + δ 3 + δ 4 . As in the intermediate case, Lemma VII.4 gives M g ∗ > K g M_g^*>K_g M g ∗ > K g and M b ∗ < K b M_b^*<K_b M b ∗ < K b with probability at least 1 − δ 1 − δ 2 1-\delta_1-\delta_2 1 − δ 1 − δ 2 whenever M M M lies in the window of Eq. (52) , where δ 1 \delta_1 δ 1 and δ 2 \delta_2 δ 2 are failure probability budgets for the respective conditions, and K b K_b K b and K g K_g K g will be fixed later. Assume we have a good∗ ^* ∗ /bad∗ ^* ∗ /selected-out assignment with such a property.
Good∗ ^* ∗ sample conditions. We use the same quantities and their properties as in the intermediate mode proof. This time, however,
K g ≈ max { t Δ ε ( 1 + O ( ln 1 δ 4 t ) + O ( Δ ε γ ~ S ) ) , ν ~ + t + log 2 1 δ 3 } (60) K_g\approx\max\left\{\frac{t}{\Delta_{\varepsilon}}\left(1+O\left(\sqrt{\frac{\ln\frac{1}{\delta_4}}{t}}\right)+O\left(\frac{\Delta_{\varepsilon}}{\widetilde{\gamma}_{S}}\right)\right),\widetilde{\nu}+t+\log_2\frac{1}{\delta_3}\right\} \tag*{(60)} K g ≈ max ⎩ ⎨ ⎧ Δ ε t 1 + O t ln δ 4 1 + O ( γ S Δ ε ) , ν + t + log 2 δ 3 1 ⎭ ⎬ ⎫ (60)
where we used Δ ε − ≈ Δ ε \Delta_{\varepsilon-}\approx\Delta_{\varepsilon} Δ ε − ≈ Δ ε as in Eq. (40) . For an exact choice of K g K_g K g , replace the first term of the maximum by the right-hand side of Eq. (49) , with ν ∗ = t \nu^*=t ν ∗ = t , δ = δ 4 \delta=\delta_4 δ = δ 4 , and Δ ε = Δ ε − \Delta_{\varepsilon}=\Delta_{\varepsilon-} Δ ε = Δ ε − ; omit that term if t = 0 t=0 t = 0 . Then, conditioned on the good∗ ^* ∗ /bad∗ ^* ∗ /selected-out assignment, Lemma VII.1 applies with failure probability budget δ 3 \delta_3 δ 3 and Lemma VII.2 applies with failure budget δ 4 \delta_4 δ 4 (where Δ ε \Delta_{\varepsilon} Δ ε is replaced with Δ ε − \Delta_{\varepsilon-} Δ ε − ). Assume these hold; then S ∗ ⊆ B g ∗ S^*\subseteq B_g^* S ∗ ⊆ B g ∗ . Once this containment holds, B g ∗ = B g + S ∗ = B g ∗ \mathcal{B}_g^*=B_g+S^*=B_g^* B g ∗ = B g + S ∗ = B g ∗ , so the coverage bound reads γ C ( B g ∗ ) ≥ γ ~ S − Δ ε − \gamma_{\mathcal{C}(B_g^*)}\geq\widetilde{\gamma}_{S}-\Delta_{\varepsilon-} γ C ( B g ∗ ) ≥ γ S − Δ ε − .
The verifier accepts the radical. As in the intermediate-mode proof, R ∗ = rad ( B ∗ ) R^*=\operatorname{rad}(B^*) R ∗ = rad ( B ∗ ) , so R ∗ ⊆ C ( B g ∗ ) R^*\subseteq\mathcal{C}(B_g^*) R ∗ ⊆ C ( B g ∗ ) . Therefore, by Observation VI.1, γ C ( B g ∗ ) ≤ γ R ∗ \gamma_{\mathcal{C}(B_g^*)}\leq\gamma_{R^*} γ C ( B g ∗ ) ≤ γ R ∗ , so γ R + S ~ = γ R ∗ ≥ γ C ( B g ∗ ) ≥ γ ~ S − Δ ε − \gamma_{R+\widetilde{S}}=\gamma_{R^*}\geq\gamma_{\mathcal{C}(B_g^*)}\geq\widetilde{\gamma}_{S}-\Delta_{\varepsilon-} γ R + S = γ R ∗ ≥ γ C ( B g ∗ ) ≥ γ S − Δ ε − .
Distance from S ∗ S^* S ∗ . Moreover, Eq. (55) shows R ∗ ∩ S ∗ ⊆ C ( B b ) R^*\cap S^* \subseteq\mathcal{C}(B_b) R ∗ ∩ S ∗ ⊆ C ( B b ) , so dim S ∗ R ∗ ∩ S ∗ ≤ dim B b ≤ M b ∗ < K b \dim\frac{S^*}{R^*\cap S^*}\leq\dim B_b\leq M_b^*<K_b dim R ∗ ∩ S ∗ S ∗ ≤ dim B b ≤ M b ∗ < K b . Or, dim S R ∗ ∩ S = dim S ∗ R ∗ ∩ S ∗ ≤ K b \dim\frac{S}{R^*\cap S}=\dim\frac{S^*}{R^*\cap S^*}\leq K_b dim R ∗ ∩ S S = dim R ∗ ∩ S ∗ S ∗ ≤ K b by applying the second isomorphism theorem twice. Since dim S ∗ R ∗ ∩ S ∗ \dim\frac{S^*}{R^*\cap S^*} dim R ∗ ∩ S ∗ S ∗ is an integer, dim S ∗ R ∗ ∩ S ∗ ≤ ⌊ K b ⌋ < \dim\frac{S^*}{R^*\cap S^*}\leq\lfloor K_b\rfloor_{<} dim R ∗ ∩ S ∗ S ∗ ≤ ⌊ K b ⌋ < . This matches Eq. (59) , with K b K_b K b left for us to determine.
Choosing K b K_b K b . Lastly, we simplify Eqs. (52) and (60) and choose appropriate δ 1 , … , δ 4 \delta_1,\ldots,\delta_4 δ 1 , … , δ 4 . Generally speaking, we pick δ 1 , δ 2 , δ 3 , δ 4 = δ O ( 1 ) \delta_1,\delta_2,\delta_3,\delta_4=\frac{\delta}{O(1)} δ 1 , δ 2 , δ 3 , δ 4 = O ( 1 ) δ , set M M M to the left-hand side of Eq. (52) , and LHS ≤ \leq ≤ RHS of Eq. (52) gives the smallest K b K_b K b we can take. We can write M = χ / q g ∗ M=\chi/q_g^* M = χ / q g ∗ where χ = max { C 1 t Δ ε , C 2 ( ν ~ + t ) } \chi=\max\left\{C_1\frac{t}{\Delta_{\varepsilon}},C_2(\widetilde{\nu}+t)\right\} χ = max { C 1 Δ ε t , C 2 ( ν + t ) } , for constants C 1 , C 2 C_1,C_2 C 1 , C 2 , where, by the corrections in Eq. (60) , C 1 ≈ 1 C_1\approx1 C 1 ≈ 1 when t ≫ ln 1 δ t\gg\ln\frac{1}{\delta} t ≫ ln δ 1 and Δ ε ≪ γ ~ S \Delta_{\varepsilon}\ll\widetilde{\gamma}_{S} Δ ε ≪ γ S , and C 2 ≈ 1 C_2\approx1 C 2 ≈ 1 when ν ~ + t ≫ ln 1 δ \widetilde{\nu}+t\gg\ln\frac{1}{\delta} ν + t ≫ ln δ 1 . So it suffices to solve:
χ q g ∗ ≲ K b q b ∗ max ( 1 − O ( ln 1 δ 2 K b , δ 2 ⌈ K b ⌉ e ) ) (61) \frac{\chi}{q_g^*}\lesssim\frac{K_b}{q_b^*}\max\left(1-O\left(\sqrt{\frac{\ln\frac{1}{\delta_2}}{K_b}},\frac{\delta_2^{\lceil K_b\rceil}}{e}\right)\right) \tag*{(61)} q g ∗ χ ≲ q b ∗ K b max 1 − O K b ln δ 2 1 , e δ 2 ⌈ K b ⌉ (61)
and find the smallest admissible K b K_b K b . While the maximum on the right-hand side depends on K b K_b K b , notice it is always Θ ( 1 ) \Theta(1) Θ ( 1 ) in the regime of interest. Indeed, as discussed in Sec. VI B 2, our philosophy dictates that we set δ = Θ ( 1 ) \delta=\Theta(1) δ = Θ ( 1 ) , so even when the first term in the max becomes too small, the second, δ 2 1 / ⌈ K b ⌉ / e \delta_2^{1/\lceil K_b\rceil}/e δ 2 1/ ⌈ K b ⌉ / e , is still Θ ( 1 ) \Theta(1) Θ ( 1 ) . Therefore, LHS ≤ \leq ≤ RHS of Eq. (52) simplifies to K b ≳ C 3 q b ∗ q g ∗ χ K_b\gtrsim C_3\frac{q_b^*}{q_g^*}\chi K b ≳ C 3 q g ∗ q b ∗ χ , where C 3 > 1 C_3 > 1 C 3 > 1 and C 3 ≈ 1 C_3 \approx1 C 3 ≈ 1 when q b ∗ q g ∗ χ ≫ ln 1 δ \frac{q_b^*}{q_g^*}\chi\gg\ln\frac{1}{\delta} q g ∗ q b ∗ χ ≫ ln δ 1 . Deciding exact values of C 1 , C 2 , C 3 C_1, C_2, C_3 C 1 , C 2 , C 3 is not needed for our purposes; for an explicit choice, Appendix E fixes δ 1 = ⋯ = δ 4 = 1 16 \delta_1 = \cdots= \delta_4 = \frac{1}{16} δ 1 = ⋯ = δ 4 = 16 1 and applies the concentration bounds directly, without optimizing.
Remark VII.7. When q b ∗ q g ∗ χ ≪ 1 \frac{q_b^*}{q_g^*}\chi\ll1 q g ∗ q b ∗ χ ≪ 1 , ⌊ K b ⌋ = 0 \lfloor K_b\rfloor= 0 ⌊ K b ⌋ = 0 . Then, Eq. (59) implies S ∗ ⊆ R ∗ S^* \subseteq R^* S ∗ ⊆ R ∗ and we are done.
In conclusion, Lemma VII.5 describes the intermediate mode of success, where O ( 2 t ) O(2^t) O ( 2 t ) verifier queries are needed to increment S ~ \widetilde{S} S by one. In contrast, when the clean-mode conditions of Lemma VII.6 hold, the whole radical can be accepted at once, allowing S ~ \widetilde{S} S to jump directly to within a controlled remaining distance of the true weak stabilizer.
Both lemmas are single-batch statements: they succeed with probability 1 − δ 1-\delta 1 − δ for a per-batch budget δ \delta δ that we will take to be a constant, and they are phrased in terms of the bounds q g ∗ q_g^* q g ∗ and q b ∗ q_b^* q b ∗ rather than the true probabilities p g ∗ p_g^* p g ∗ and p b ∗ p_b^* p b ∗ . The next section removes both restrictions—boosting the per-batch probability by repetition and computing q g ∗ , q b ∗ q_g^*,q_b^* q g ∗ , q b ∗ from the noise model—and arrives at the main theorems.
End-to-End Guarantees
The per-batch lemmas of Sec. VII hold only with constant probability and are stated relative to bounds q g ∗ , q b ∗ q_g^*,q_b^* q g ∗ , q b ∗ that we have not yet computed. This section closes both gaps and delivers the main theorems. § 1.7 A boosts a batch into an iteration that updates S ~ \widetilde{S} S with high probability; for the clean mode this requires splitting the run into a main stage and a terminal stage, giving the final pseudocode in Algorithm 8. § 1.7 B explains how iterations are chained and how the accuracy budget ϵ \epsilon ϵ is spent across them. The last two subsections then instantiate q g ∗ , q b ∗ q_g^*,q_b^* q g ∗ , q b ∗ for depolarizing noise (§ 1.7 C, Theorems VIII.4 and VIII.5) and for arbitrary Pauli noise (§ 1.7 D, Theorems VIII.8 and VIII.9).
From Batches to Iterations
Lemmas VII.5 and VII.6 in Sec. VII described success conditions for each batch. As discussed in Sec. VI B 2, an iteration consists of running T T T batches in order to boost the success probability. For the intermediate mode, this is straightforward because any update to S ~ \widetilde{S} S must increase its dimension by 1.
Observation VIII.1 (Per-Iteration Success Condition of Intermediate Mode). Let δ 0 \delta_0 δ 0 be the failure probability budget in Lemma VII.5. By running at most T = ⌈ ln 1 δ ln 1 δ 0 ⌉ T=\left\lceil\frac{\ln\frac{1}{\delta}}{\ln\frac{1}{\delta_0}}\right\rceil T = ⌈ l n δ 0 1 l n δ 1 ⌉ batches and taking the first successful update, the probability of success is boosted to ≥ 1 − δ \ge1-\delta ≥ 1 − δ .
The clean mode, however, introduces additional complications. The success event for the clean mode is dim S ∗ S ∗ ∩ S ~ ≤ ∣ K b ∣ \dim\frac{S^*}{S^*\cap\widetilde{S}}\le|K_b| dim S ∗ ∩ S S ∗ ≤ ∣ K b ∣ . However, we cannot observe dim S ∗ S ∗ ∩ S ~ \dim\frac{S^*}{S^*\cap\widetilde{S}} dim S ∗ ∩ S S ∗ directly. Instead, we can only see the consequence dim S ~ ≥ n − t − ∣ K b ∣ \dim\widetilde{S}\ge n-t-|K_b| dim S ≥ n − t − ∣ K b ∣ . This observable consequence can be boosted:
Observation VIII.2 (Per-Iteration Success Condition of Clean Mode, Main Stage). Let δ 0 \delta_0 δ 0 be the failure probability budget in Lemma VII.6. By running at most T = ⌈ ln 1 δ ln 1 δ 0 ⌉ T=\left\lceil\frac{\ln\frac{1}{\delta}}{\ln\frac{1}{\delta_0}}\right\rceil T = ⌈ l n δ 0 1 l n δ 1 ⌉ batches, we obtain a candidate S ~ ′ \widetilde{S}' S ′ approved by the verifier with dim S ~ ′ ≥ n − t − ∣ K b ∣ \dim\widetilde{S}'\ge n-t-|K_b| dim S ′ ≥ n − t − ∣ K b ∣ with probability at least 1 − δ 1-\delta 1 − δ .
To implement this idea, in each iteration, we may take the proposed candidate with the largest dimension, or take the first proposed update with dimension ≥ n − t − ∣ K b ∣ \ge n-t-|K_b| ≥ n − t − ∣ K b ∣ .
Admittedly, dim S ~ ≥ n − t − ∣ K b ∣ \dim\widetilde{S}\ge n-t-|K_b| dim S ≥ n − t − ∣ K b ∣ is a weaker statement than dim S ∗ S ∗ ∩ S ~ ≤ ∣ K b ∣ \dim\frac{S^*}{S^*\cap\widetilde{S}}\le|K_b| dim S ∗ ∩ S S ∗ ≤ ∣ K b ∣ . As a result, we may accept an update with dimension n − t − ∣ K b ∣ n-t-|K_b| n − t − ∣ K b ∣ , but not necessarily one that is ∣ K b ∣ |K_b| ∣ K b ∣ -close to containing S ∗ S^* S ∗ . This issue becomes the most severe at the end of the algorithm, when we need to take K b = 1 K_b=1 K b = 1 so that ∣ K b ∣ = 0 |K_b|=0 ∣ K b ∣ = 0 . Here, it follows from Lemma VII.6 (and Remark VII.7) that S ∗ ⊆ S ~ S^*\subseteq\widetilde{S} S ∗ ⊆ S with constant probability. Nevertheless, boosting will weaken this statement to dim S ~ ≥ n − t \dim\widetilde{S}\ge n-t dim S ≥ n − t , which may be far from success. The solution is to run the iteration, but keep accepting nontrivial approved updates, such that one of them leads to final success with high probability. This comes with a tradeoff: we could accept up to min { t , T } \min\{t,T\} min { t , T } updates in the last iteration (t t t coming from the starting dimension being at least n − t n-t n − t and each update increasing dim S ~ \dim\widetilde{S} dim S by at least 1), so purity loss Δ ϵ \Delta\epsilon Δ ϵ accumulates.
Observation VIII.3 (Per-Iteration Success Condition of Clean Mode, Terminal Stage). Suppose the terminal stage starts with dim S ~ ≥ n − t \dim\widetilde{S}\ge n-t dim S ≥ n − t , and the clean-mode conditions with K b = 1 K_b=1 K b = 1 hold at each attempt . Let δ 0 \delta_0 δ 0 be the failure probability budget in Lemma VII.6. By running at most T = ⌈ ln 1 δ ln 1 δ 0 ⌉ T=\left\lceil\frac{\ln\frac{1}{\delta}}{\ln\frac{1}{\delta_0}}\right\rceil T = ⌈ l n δ 0 1 l n δ 1 ⌉ fresh batches and accepting all nontrivial proposed updates that pass the verifier, we reach S ∗ ⊆ S ~ S^*\subseteq\widetilde{S} S ∗ ⊆ S with probability at least 1 − δ 1-\delta 1 − δ . This iteration may apply at most min { t , T } \min\{t,T\} min { t , T } updates.
Algorithm 8: Up-Down Stabilizer Finding Algorithm (Clean Mode)
Input: Accuracy parameter ε \varepsilon ε , confidence parameters δ \delta δ and δ v e r \delta_{\mathrm{ver}} δ ver
Output: An approximate weak stabilizer S ~ \widetilde{S} S for the density matrix.
Initialize the adaptive verifier, Algorithm 3, with failure probability δ v e r \delta_{\mathrm{ver}} δ ver and minimum query gap Δ ε g a p \Delta\varepsilon_{\mathrm{gap}} Δ ε gap , the smallest gap required by the accuracy schedule specified below; let its guess be S ~ = { I } \widetilde{S} = \{I\} S = { I } ;
while dim S ~ < n − t \dim\widetilde{S} < n-t dim S < n − t do
Set Δ ε \Delta\varepsilon Δ ε , T T T ;
for i = 1 i = 1 i = 1 to T T T do
Set M M M ;
Draw M M M Bell difference samples, say b = { b 1 , b 2 , … , b M } b = \{b_1,b_2,\ldots,b_M\} b = { b 1 , b 2 , … , b M } ;
Post-selection: keep all samples in C ( S ~ ) C(\widetilde{S}) C ( S ) and remove the others; now we have b ′ = { b 1 ′ , b 2 ′ , … , b M ′ ′ } b' = \{b'_1,b'_2,\ldots,b'_{M'}\} b ′ = { b 1 ′ , b 2 ′ , … , b M ′ ′ } ;
Set B ′ = span b ′ B' = \operatorname{span} b' B ′ = span b ′ , the span of the selected samples;
Run propose ( B ′ , Δ ε ) \operatorname{propose}(B',\Delta\varepsilon) propose ( B ′ , Δ ε ) , which rejects or approves candidate update S ~ ′ \widetilde{S}' S ′ ;
if propose approves and dim S ~ ′ ≥ n − t − ⌊ K b ⌋ < \dim\widetilde{S}' \ge n-t-\lfloor K_b\rfloor_{\lt} dim S ′ ≥ n − t − ⌊ K b ⌋ < , where K b K_b K b is from Lemma VII.6 then
apply the update S ~ ← S ~ ′ \widetilde{S}\leftarrow\widetilde{S}' S ← S ′ and break
if no update was applied then return failure;
Set Δ ε \Delta\varepsilon Δ ε , T T T ;
for i = 1 i = 1 i = 1 to T T T do
Set M M M ;
Draw M M M Bell difference samples, say b = { b 1 , b 2 , … , b M } b = \{b_1,b_2,\ldots,b_M\} b = { b 1 , b 2 , … , b M } ;
Post-selection: keep all samples in C ( S ~ ) C(\widetilde{S}) C ( S ) and remove the others; now we have b ′ = { b 1 ′ , b 2 ′ , … , b M ′ ′ } b' = \{b'_1,b'_2,\ldots,b'_{M'}\} b ′ = { b 1 ′ , b 2 ′ , … , b M ′ ′ } ;
Set B ′ = span b ′ B' = \operatorname{span} b' B ′ = span b ′ , the span of the selected samples;
Run propose ( B ′ , Δ ε ) \operatorname{propose}(B',\Delta\varepsilon) propose ( B ′ , Δ ε ) ;
if verifier approves then apply the approved update but do not break ;
return S ~ \widetilde{S} S ;
Therefore, the up-down algorithm in the clean mode is partitioned into two stages. In the main stage , we iteratively grow S ~ \widetilde{S} S using Observation VIII.2. Once dim S ~ ≥ n − t \dim\widetilde{S} \ge n-t dim S ≥ n − t , we choose parameters so that ⌊ K b ⌋ < = 0 \lfloor K_b\rfloor_{\lt} = 0 ⌊ K b ⌋ < = 0 and reach final success in one iteration. This way, we go to the terminal stage and finish our task. The pseudocode for the clean mode is displayed in Algorithm 8.
Allocate failure budgets δ j \delta_j δ j to the main-stage iterations and δ t e r m \delta_{\mathrm{term}} δ term to the terminal stage, with ∑ j δ j + δ t e r m ≤ δ \sum_j \delta_j+\delta_{\mathrm{term}}\le\delta ∑ j δ j + δ term ≤ δ . For the asymptotic bounds, we may allocate a constant fraction of δ \delta δ to the terminal stage and comparable shares of the remaining budget to the main-stage iterations.
To keep the cost polynomial, we impose a lower bound on Δ ε \Delta\varepsilon Δ ε . If 0 < ε t o t ≤ ε 0<\varepsilon_{\mathrm{tot}}\le\varepsilon 0 < ε tot ≤ ε is the chosen total execution budget, reserve an o ( 1 ) o(1) o ( 1 ) fraction of it and arrange that the original update budgets sum to at most the remaining ( 1 − o ( 1 ) ) ε t o t (1-o(1))\varepsilon_{\mathrm{tot}} ( 1 − o ( 1 )) ε tot . Since there are at most n n n nontrivial updates, the choice
Δ ε = max { Δ ε o r i g i n a l , o ( 1 ) ε t o t n } , (62) \Delta\varepsilon=\max\left\{\Delta\varepsilon_{\mathrm{original}},\frac{o(1)\,\varepsilon_{\mathrm{tot}}}{n}\right\}, \tag*{(62)} Δ ε = max { Δ ε original , n o ( 1 ) ε tot } , (62)
with the same reserved fraction, keeps the total loss within ε t o t \varepsilon_{\mathrm{tot}} ε tot .
With per-iteration success in hand, what is left is to choose q a ∗ q_a^* q a ∗ , q b ∗ q_b^* q b ∗ , and Δ ε \Delta\varepsilon Δ ε at each iteration. These depend on the noise model, which is where we go next: § 1.7 C and VIII D make these choices for depolarizing and arbitrary Pauli noise, and for depolarizing noise, Eq. (151) gives the resulting verifier gap.
Full Learning Algorithm
We now piece together iterations into a full stabilizer learning algorithm. At the beginning of each iteration, the algorithm observes S ~ \widetilde{S} S and calculates a lower bound q g ∗ q_g^* q g ∗ on p g ∗ p_g^* p g ∗ and an upper bound q b ∗ q_b^* q b ∗ on p b ∗ p_b^* p b ∗ , along with the allocated purity drop Δ ε \Delta\varepsilon Δ ε . The per-iteration success conditions from § 1.7 A then ensure that each iteration grows S ~ \widetilde{S} S with high probability, leading to the next.
The exact calculation of q g ∗ q_g^* q g ∗ , q b ∗ q_b^* q b ∗ , and Δ ε \Delta\varepsilon Δ ε depends on our assumptions on the input state. For our purposes, suppose that the sampled state ρ \rho ρ is a noisy implementation of an ideal pure state ρ ′ = ∣ ψ ⟩ ⟨ ψ ∣ \rho' = \lvert\psi\rangle\langle\psi\rvert ρ ′ = ∣ ψ ⟩ ⟨ ψ ∣ :
ρ = E ( ρ ′ ) (63) \rho=\mathcal{E}(\rho') \tag*{(63)} ρ = E ( ρ ′ ) (63)
for some noise channel E \mathcal{E} E .
We analyze two representative settings, in § 1.7 C and § 1.7 D respectively. The first is depolarizing noise. In this case, the Pauli coefficients are suppressed in a uniform way, and post-selection becomes increasingly effective as S ~ \widetilde{S} S grows. In particular, the bad⋆ ^\star ⋆ probability p b ⋆ p_b^\star p b ⋆ is suppressed as S ~ \widetilde{S} S grows, allowing progress to become exponentially easier after the first iteration.
The second is arbitrary Pauli noise. Here E \mathcal{E} E is any Pauli channel, and we do not assume any favorable structure in the distribution of errors. Consequently, the bad⋆ ^\star ⋆ probability need not decay in the same way. This leads to more restrictive noise thresholds for the intermediate and clean modes.
The total time and sample costs of the algorithm have two contributions: the cost of the verifier, Algorithm 3, and the cost of the main up-down algorithm, Algorithms 5 and 8. The verifier sample cost follows from Lemma V.3 and is independent of the number of queries; its runtime still accumulates over those queries. We therefore suppress polynomial factors and focus on the possible exponential dependence on t t t .
Guarantees under Depolarizing Noise
This subsection carries out the program of § 1.7 B for depolarizing noise: we compute q b ⋆ q_b^\star q b ⋆ and q g ⋆ q_g^\star q g ⋆ , observe that q b ⋆ q_b^\star q b ⋆ halves with every generator added to S ~ \widetilde{S} S while q g ⋆ q_g^\star q g ⋆ remains within a constant factor of its initial value, and turn this into Theorems VIII.4 and VIII.5.
Depolarizing noise is one of the simplest and most common noise models. It is defined by
ρ = E ( ρ ′ ) ≡ ( 1 − λ ) ρ ′ + λ I 2 n (64) \rho= \mathcal{E}(\rho') \equiv(1-\lambda)\rho' + \lambda\frac{I}{2^n} \tag*{(64)} ρ = E ( ρ ′ ) ≡ ( 1 − λ ) ρ ′ + λ 2 n I (64)
where the parameter λ \lambda λ is given. 9 Denote the Pauli coefficients for ρ \rho ρ and ρ ′ \rho' ρ ′ by a i a_i a i and a i ′ a_i' a i ′ , respectively. In other words, ρ = ∑ i ∈ P n a i σ i \rho= \sum_{i\in\mathcal{P}^n} a_i \sigma_i ρ = ∑ i ∈ P n a i σ i and ρ ′ = ∑ i ∈ P n a i ′ σ i \rho' = \sum_{i\in\mathcal{P}^n} a_i' \sigma_i ρ ′ = ∑ i ∈ P n a i ′ σ i . Eq. (64) implies a i = ( 1 − λ ) a i ′ + λ δ i 0 2 n a_i=(1-\lambda)a_i' + \lambda\frac{\delta_{i0}}{2^n} a i = ( 1 − λ ) a i ′ + λ 2 n δ i 0 . To paraphrase, a i = ( 1 − λ ) a i ′ a_i=(1-\lambda)a_i' a i = ( 1 − λ ) a i ′ except for the identity element, which remains a 0 = 1 2 n a_0=\frac{1}{2^n} a 0 = 2 n 1 . Therefore, every bad sample i ∈ P n ∖ C ( S ) i\in\mathcal{P}^n\setminus C(S) i ∈ P n ∖ C ( S ) has the same Bell-difference probability:
P B e l l D i f f ( i ) = 4 n ∑ j ∈ P n ( − 1 ) ⟨ i , j ⟩ a j 4 by Eq. (27) = ( 1 − λ ) 4 ( 4 n ∑ j ∈ P n ( − 1 ) ⟨ i , j ⟩ ( a j ′ ) 4 ) + 4 n ( ( 1 2 n ) 4 − ( 1 − λ 2 n ) 4 ) = ( 1 − λ ) 4 P B e l l D i f f ′ ( i ) + 1 − ( 1 − λ ) 4 2 2 n by Eq. (27) = 1 − ( 1 − λ ) 4 2 2 n by Proposition III.5 (65) \begin{aligned}
P_{\mathrm{BellDiff}}(i) &= 4^n \sum_{j\in\mathcal{P}^n}(-1)^{\langle i,j\rangle}a_j^4 && \text{by Eq. (27)}\\
&=(1-\lambda)^4\left(4^n\sum_{j\in\mathcal{P}^n}(-1)^{\langle i,j\rangle}(a_j')^4\right)+4^n\left(\left(\frac{1}{2^n}\right)^4-\left(\frac{1-\lambda}{2^n}\right)^4\right)\\
&=(1-\lambda)^4P'_{\mathrm{BellDiff}}(i)+\frac{1-(1-\lambda)^4}{2^{2n}} && \text{by Eq. (27)}\\
&=\frac{1-(1-\lambda)^4}{2^{2n}} && \text{by Proposition III.5} \tag*{(65)}
\end{aligned} P BellDiff ( i ) = 4 n j ∈ P n ∑ ( − 1 ) ⟨ i , j ⟩ a j 4 = ( 1 − λ ) 4 4 n j ∈ P n ∑ ( − 1 ) ⟨ i , j ⟩ ( a j ′ ) 4 + 4 n ( ( 2 n 1 ) 4 − ( 2 n 1 − λ ) 4 ) = ( 1 − λ ) 4 P BellDiff ′ ( i ) + 2 2 n 1 − ( 1 − λ ) 4 = 2 2 n 1 − ( 1 − λ ) 4 by Eq. (27) by Eq. (27) by Proposition III.5 (65)
where P B e l l D i f f ′ P'_{\mathrm{BellDiff}} P BellDiff ′ denotes the Bell difference distribution for ρ ′ \rho' ρ ′ . Thus,
p b = ∣ P n ∖ C ( S ) ∣ × 1 − ( 1 − λ ) 4 2 2 n ≤ 1 − ( 1 − λ ) 4 (66) p_b=|\mathcal{P}^n\setminus C(S)|\times\frac{1-(1-\lambda)^4}{2^{2n}}\leq1-(1-\lambda)^4 \tag*{(66)} p b = ∣ P n ∖ C ( S ) ∣ × 2 2 n 1 − ( 1 − λ ) 4 ≤ 1 − ( 1 − λ ) 4 (66)
because ∣ P n ∖ C ( S ) ∣ ≤ ∣ P n ∣ |\mathcal{P}^n\setminus C(S)|\leq|\mathcal{P}^n| ∣ P n ∖ C ( S ) ∣ ≤ ∣ P n ∣ . So we may use q b ≡ 1 − ( 1 − λ ) 4 ≤ 4 λ q_b\equiv1-(1-\lambda)^4\leq4\lambda q b ≡ 1 − ( 1 − λ ) 4 ≤ 4 λ as an upper bound on p b p_b p b , the probability of bad samples before post-selection. Then, by the same logic:
p b ⋆ = ∣ C ( S ~ ) ∖ C ( S ) ∣ × 1 − ( 1 − λ ) 4 2 2 n ≤ q b 2 dim S ~ (67) p_b^\star=|C(\widetilde{S})\setminus C(S)|\times\frac{1-(1-\lambda)^4}{2^{2n}}\leq\frac{q_b}{2^{\dim\widetilde{S}}} \tag*{(67)} p b ⋆ = ∣ C ( S ) ∖ C ( S ) ∣ × 2 2 n 1 − ( 1 − λ ) 4 ≤ 2 d i m S q b (67)
where we used ∣ C ( S ~ ) ∖ C ( S ) ∣ ≤ ∣ C ( S ~ ) ∣ = 2 2 n − dim S ~ |C(\widetilde{S})\setminus C(S)|\leq|C(\widetilde{S})|=2^{2n-\dim\widetilde{S}} ∣ C ( S ) ∖ C ( S ) ∣ ≤ ∣ C ( S ) ∣ = 2 2 n − d i m S . In other words, the upper bound q b ⋆ q_b^\star q b ⋆ for p b ⋆ p_b^\star p b ⋆ is set as q b ⋆ = q b 2 dim S ~ = 1 − ( 1 − λ ) 4 2 dim S ~ q_b^\star=\frac{q_b}{2^{\dim\widetilde{S}}}=\frac{1-(1-\lambda)^4}{2^{\dim\widetilde{S}}} q b ⋆ = 2 d i m S q b = 2 d i m S 1 − ( 1 − λ ) 4 . So q b ⋆ q_b^\star q b ⋆ decreases exponentially in the dimension of S ~ \widetilde{S} S . At the same time, q g ⋆ q_g^\star q g ⋆ , the lower bound on p g ⋆ p_g^\star p g ⋆ , largely remains the same:
p g ⋆ ≥ γ S ~ ⋆ 2 = γ S ~ 2 ≥ ( γ − ϵ a c c ) 2 ≫ ( ( 1 − λ ) 2 − ϵ a c c 2 ) ≡ q g ⋆ (68) p_g^\star\geq\gamma_{\widetilde{S}}^{\star2}=\gamma_{\widetilde{S}}^2\geq(\gamma-\epsilon_{\mathrm{acc}})^2\gg((1-\lambda)^2-\epsilon_{\mathrm{acc}}^2)\equiv q_g^\star \tag*{(68)} p g ⋆ ≥ γ S ⋆ 2 = γ S 2 ≥ ( γ − ϵ acc ) 2 ≫ (( 1 − λ ) 2 − ϵ acc 2 ) ≡ q g ⋆ (68)
Here, the first inequality follows from Lemma IV.3, γ S ⋆ = γ S ~ \gamma_{S^\star}=\gamma_{\widetilde{S}} γ S ⋆ = γ S by Observation IV.2, and ε a c c \varepsilon_{\mathrm{acc}} ε acc is the accumulated purity-loss budget from all previous iterations: an upper bound on their accumulated purity loss, obtained by summing the budgets of accepted updates.
In a nutshell, as we increment S ~ \widetilde{S} S , the concentration of bad{sup}* samples drastically decreases, while good{sup}* samples remain abundant. This works strongly in our favor: as long as we are able to make the first move towards constructing S ~ \widetilde{S} S , everything that follows becomes much easier. Hence, we prove Theorem VIII.4 for the intermediate mode, and Theorem VIII.5 for the clean mode.
For convenience of proof, assume n ≫ 1 n \gg1 n ≫ 1 .
Theorem VIII.4 (Intermediate Regime Under Depolarizing Noise). Assume n − t ≫ 1 n-t \gg1 n − t ≫ 1 . When 1 − ( 1 − λ ) 4 ( 1 − λ ) 4 ≲ n − t n + t \frac{1-(1-\lambda)^4}{(1-\lambda)^4}\lesssim\frac{n-t}{n+t} ( 1 − λ ) 4 1 − ( 1 − λ ) 4 ≲ n + t n − t , which simplifies to λ ≲ 1 − 2 − 1 / 4 ≈ 0.159 \lambda\lesssim1-2^{-1/4}\approx0.159 λ ≲ 1 − 2 − 1/4 ≈ 0.159 when n ≫ t n\gg t n ≫ t , the intermediate mode of the up-down algorithm succeeds. The algorithm uses O ( poly ) O(\operatorname{poly}) O ( poly ) samples and O ( 2 t ⋅ poly ) O(2^t\cdot\operatorname{poly}) O ( 2 t ⋅ poly ) time to return an approximate weak stabilizer.
Proof idea. The first iteration sets the noise threshold in our analysis; later iterations become easier. Plugging q b ⋆ = 1 − ( 1 − λ ) 4 q_b^\star=1-(1-\lambda)^4 q b ⋆ = 1 − ( 1 − λ ) 4 , q g ⋆ = ( 1 − λ ) 4 q_g^\star=(1-\lambda)^4 q g ⋆ = ( 1 − λ ) 4 , and ν ~ = n \widetilde{\nu}=n ν = n into Lemma VII.5 gives the stated threshold. Every later iteration faces a weaker condition, because q b ⋆ q_b^\star q b ⋆ halves with each accepted generator while q g ⋆ q_g^\star q g ⋆ and ν ~ − t ν ~ + t \frac{\widetilde{\nu}-t}{\widetilde{\nu}+t} ν + t ν − t barely move; by the time the lemma switches to its ν ~ − t = O ( 1 ) \widetilde{\nu}-t=O(1) ν − t = O ( 1 ) case and loses a polynomial factor, the exponential suppression 2 − ( n − t ) 2^{-(n-t)} 2 − ( n − t ) has long paid for it. Figure 8 plots both effects.
Figure 8. The intermediate mode under depolarizing noise, drawn for illustrative n = 30 n=30 n = 30 , t = 6 t=6 t = 6 , λ = 0.11 \lambda=0.11 λ = 0.11 and c = 0.5 c=0.5 c = 0.5 . Every accepted generator halves q b ⋆ q_b^\star q b ⋆ by Eq. (67) while q g ⋆ q_g^\star q g ⋆ stays within a constant factor of its initial value (the plot holds it there, as in the leading-order analysis), so the ratio the finder must clear falls by a factor of two per step—a straight line on this logarithmic axis. The bar, below which Lemma VII.5 guarantees success, is the envelope of that lemma’s two cases: ν ~ − t ν ~ + t \frac{\widetilde{\nu}-t}{\widetilde{\nu}+t} ν + t ν − t through the main stage, flattening onto the second case’s floor c ν ~ + t \frac{c}{\widetilde{\nu}+t} ν + t c , which is what keeps the requirement from collapsing to zero as ν ~ → t \widetilde{\nu}\to t ν → t . Those two cases differ in their conclusions as well as their thresholds, so the bar is an envelope rather than a single condition. The initial step, dim S ~ = 0 \dim\widetilde{S}=0 dim S = 0 , imposes the strongest condition: there it reduces to the hypothesis of Theorem VIII.4, and every later step has more room. The clean mode races differently: there the same ratio enters through K b K_b K b in Lemma VII.6, measuring how far an accepted update still falls short of S ⋆ S^\star S ⋆ rather than whether one is possible. The shape here does not depend on the chosen parameters—changing λ \lambda λ slides the line up or down without bending it.
Proof.
First iteration. At the first iteration, q b ⋆ = q b = 1 − ( 1 − λ ) 4 q_b^\star=q_b=1-(1-\lambda)^4 q b ⋆ = q b = 1 − ( 1 − λ ) 4 , q g ⋆ = ( 1 − λ ) 4 q_g^\star=(1-\lambda)^4 q g ⋆ = ( 1 − λ ) 4 , and ν ~ = n \widetilde{\nu}=n ν = n . So, the first case in Lemma VII.5 requires
1 − ( 1 − λ ) 4 ( 1 − λ ) 4 ≲ n − t n + t (69) \frac{1-(1-\lambda)^4}{(1-\lambda)^4}\lesssim\frac{n-t}{n+t} \tag*{(69)} ( 1 − λ ) 4 1 − ( 1 − λ ) 4 ≲ n + t n − t (69)
When n ≫ t n\gg t n ≫ t , RHS ≈ 1 \approx1 ≈ 1 , so the condition simplifies to λ ≲ 1 − 2 − 1 / 4 ≈ 0.159 \lambda\lesssim1-2^{-1/4}\approx0.159 λ ≲ 1 − 2 − 1/4 ≈ 0.159 .
All later iterations. Once the first iteration is satisfied, the conditions for all later iterations are weaker and therefore the algorithm succeeds. Indeed, when ν ~ − t = ω ( 1 ) \widetilde{\nu}-t=\omega(1) ν − t = ω ( 1 ) , the condition needed is:
q b ⋆ q g ⋆ ≲ ν ~ − t ν ~ + t (70) \frac{q_b^\star}{q_g^\star}\lesssim\frac{\widetilde{\nu}-t}{\widetilde{\nu}+t} \tag*{(70)} q g ⋆ q b ⋆ ≲ ν + t ν − t (70)
where q b ⋆ = ( 1 − ( 1 − λ ) 4 ) 2 − dim S ~ q_b^\star=(1-(1-\lambda)^4)2^{-\dim\widetilde{S}} q b ⋆ = ( 1 − ( 1 − λ ) 4 ) 2 − d i m S and q g ⋆ = ( ( 1 − λ ) 2 − ε a c c ) 2 q_g^\star=((1-\lambda)^2-\varepsilon_{\mathrm{acc}})^2 q g ⋆ = (( 1 − λ ) 2 − ε acc ) 2 . After each successful iteration,
since the intermediate-mode condition does not depend on Δ ε \Delta\varepsilon Δ ε , we can limit Δ ε \Delta\varepsilon Δ ε to sufficiently small values so that q g ∗ q_g^* q g ∗ does not change significantly. For example, take Δ ε = ε t o t n \Delta\varepsilon= \frac{\varepsilon_{\mathrm{tot}}}{n} Δ ε = n ε tot with total maximum purity loss ε t o t = min { ε , o ( ( 1 − λ ) 2 ) } = min { ε , o ( 1 ) } \varepsilon_{\mathrm{tot}} = \min\{\varepsilon, o((1-\lambda)^2)\} = \min\{\varepsilon, o(1)\} ε tot = min { ε , o (( 1 − λ ) 2 )} = min { ε , o ( 1 )} , where ε \varepsilon ε is the input accuracy parameter.
So the condition becomes weaker at this stage.
Near the end, when ν ~ − t = O ( 1 ) \tilde{\nu}-t=O(1) ν ~ − t = O ( 1 ) and we switch to the second case in Lemma VII.5, the condition becomes:
q b ∗ q g ∗ ≲ 1 ν ~ + t , c = Θ ( 1 ) (71) \frac{q_b^*}{q_g^*} \lesssim\frac{1}{\tilde{\nu}+t}, \qquad c=\Theta(1) \tag*{(71)} q g ∗ q b ∗ ≲ ν ~ + t 1 , c = Θ ( 1 ) (71)
The RHS of the inequality is reduced to Ω ( 1 t ) \Omega\left(\frac{1}{t}\right) Ω ( t 1 ) . Compared to Eq. (69) , this is reduced by a factor at most O ( n − t n + t t ) = O ( ( n − t ) t n + t ) ≤ O ( n − t ) O\left(\frac{n-t}{\frac{n+t}{t}}\right)=O\left((n-t)\frac{t}{n+t}\right)\leq O(n-t) O ( t n + t n − t ) = O ( ( n − t ) n + t t ) ≤ O ( n − t ) . Fortunately, by this point dim S ~ ≥ n − t − O ( 1 ) \dim\tilde{S}\geq n-t-O(1) dim S ~ ≥ n − t − O ( 1 ) , so the LHS has already been suppressed by a factor of Ω ( 2 − ( n − t ) ) \Omega(2^{-(n-t)}) Ω ( 2 − ( n − t ) ) . Since we assume n − t ≫ 1 n-t\gg1 n − t ≫ 1 , this exponential suppression beats the additional polynomial loss. Thus the terminal condition remains weaker than the first iteration condition.
Cost analysis. In each batch, the up-down algorithm takes polynomially many fresh Bell difference samples and makes O ~ ( 2 t ) \widetilde{O}(2^t) O ( 2 t ) queries to the verifier, where O ~ \widetilde{O} O omits polylogarithmic factors. With Δ ε = ε t o t / n \Delta\varepsilon=\varepsilon_{\mathrm{tot}}/n Δ ε = ε tot / n , Lemma V.3 lets the verifier handle all these queries with one polynomial-size dataset. Since there are at most n n n updates and O ( n ln ( n / δ ) ) O(n\ln(n/\delta)) O ( n ln ( n / δ )) batch attempts, the total sample complexity is O ( p o l y ) O(\mathrm{poly}) O ( poly ) , while the time complexity is O ( 2 t ⋅ p o l y ) O(2^t\cdot\mathrm{poly}) O ( 2 t ⋅ poly ) .
Theorem VIII.5 (Main Theorem for Clean Regime Under Depolarizing Noise). Assume n − t − ( log 2 t + log 2 log 2 t ) ≫ 1 n-t-(\log_2 t+\log_2\log_2 t)\gg1 n − t − ( log 2 t + log 2 log 2 t ) ≫ 1 .10 When 1 − ( 1 − λ ) 4 ( 1 − λ ) 4 ≲ n − t n + t \frac{1-(1-\lambda)^4}{(1-\lambda)^4}\lesssim\frac{n-t}{n+t} ( 1 − λ ) 4 1 − ( 1 − λ ) 4 ≲ n + t n − t , and C 1 − ( 1 − λ ) 4 n − t ≲ ε ≪ 1 C\frac{1-(1-\lambda)^4}{n-t}\lesssim\varepsilon\ll1 C n − t 1 − ( 1 − λ ) 4 ≲ ε ≪ 1 , the clean mode of the up-down algorithm succeeds, where constant C > 1 C>1 C > 1 and C ≈ 1 C\approx1 C ≈ 1 when t ≫ 1 t\gg1 t ≫ 1 . The algorithm uses O ( p o l y ) O(\mathrm{poly}) O ( poly ) samples and O ( p o l y ) O(\mathrm{poly}) O ( poly ) time to return an approximate weak stabilizer.
Proof idea. The clean mode spends accuracy budget: an iteration that jumps dim S ~ \dim\tilde{S} dim S ~ from s ~ ′ \tilde{s}' s ~ ′ to s ~ \tilde{s} s ~ costs Δ ε ≈ C 1 t / χ \Delta\varepsilon\approx C_1t/\chi Δ ε ≈ C 1 t / χ , where χ \chi χ is the batch size the jump needs. Since ε ≪ 1 \varepsilon\ll1 ε ≪ 1 while the purity stays above a constant, each update’s budget is small compared with the purity, as Lemma VII.6 requires, and together with t ≫ 1 t\gg1 t ≫ 1 this gives C ≈ 1 C\approx1 C ≈ 1 . The first jump, 0 → Λ 0\to\Lambda 0 → Λ with 1 ≪ Λ ≪ n − t 1\ll\Lambda\ll n-t 1 ≪ Λ ≪ n − t , costs ≈ C 1 t n − t q b q g \approx C_1\frac{t}{n-t}\frac{q_b}{q_g} ≈ C 1 n − t t q g q b —the accuracy threshold in the statement—and keeps q g ∗ q_g^* q g ∗ within a constant factor of its initial value. Later jumps are exponentially cheaper because q b ∗ q_b^* q b ∗ has been suppressed by 2 − Λ 2^{-\Lambda} 2 − Λ , and the terminal stage is cheaper still provided t ( n − t ) 2 − ( n − t ) ≪ 1 t(n-t)2^{-(n-t)}\ll1 t ( n − t ) 2 − ( n − t ) ≪ 1 , which is the assumption on n − t n-t n − t . So the first jump dominates the total. Finally, we raise the exponentially small Δ ε \Delta\varepsilon Δ ε ’s to a floor o ( 1 ) ε / N t o t o(1)\,\varepsilon/N_{\mathrm{tot}} o ( 1 ) ε / N tot so that the sample cost stays polynomial.
Proof We want the clean mode to succeed at all steps under the conditions from Lemma VII.6. Due to boosting as discussed in § 1.7 A, we first increment S ~ \tilde{S} S ~ until dim S ~ \dim\tilde{S} dim S ~ is sufficiently large (main stage, Observation VIII.2), and then finish it off in one iteration containing multiple updates (terminal stage, Observation VIII.3).
Cost of one jump. Each iteration spends accuracy budget, and we must show that the total stays within ε \varepsilon ε . Let Δ ε ( s ~ ′ → s ~ ) \Delta\varepsilon(\tilde{s}'\to\tilde{s}) Δ ε ( s ~ ′ → s ~ ) be the per-update budget that certifies a jump from dim S ~ = s ~ ′ \dim\tilde{S}=\tilde{s}' dim S ~ = s ~ ′ to dim S ~ ≥ s ~ \dim\tilde{S}\geq\tilde{s} dim S ~ ≥ s ~ in one iteration. In Lemma VII.6, a smaller budget requires a larger batch scale χ \chi χ , which raises K b = C 3 q b ∗ q g ∗ χ K_b=C_3\frac{q_b^*}{q_g^*}\chi K b = C 3 q g ∗ q b ∗ χ . The jump needs ∣ K b ∣ ≤ ν ~ − t \lvert K_b\rvert\leq\tilde{\nu}-t ∣ K b ∣ ≤ ν ~ − t with ν ~ = n − s ~ \tilde{\nu}=n-\tilde{s} ν ~ = n − s ~ (Observation VIII.2), i.e., K b ≤ ν ~ − t + 1 K_b\leq\tilde{\nu}-t+1 K b ≤ ν ~ − t + 1 , so we take the largest χ \chi χ this allows. This gives:
Δ ε ( s ~ ′ → s ~ ) = { C 1 t χ m ( s ~ ′ → s ~ ) if C 2 ( ν ~ ′ + t ) ≤ χ m ( s ~ ′ → s ~ ) ∞ otherwise (72) \Delta\varepsilon(\tilde{s}'\to\tilde{s})=
\begin{cases}
C_1\frac{t}{\chi_m(\tilde{s}'\to\tilde{s})} & \text{if } C_2(\tilde{\nu}'+t)\leq\chi_m(\tilde{s}'\to\tilde{s})\\
\infty& \text{otherwise}
\end{cases} \tag*{(72)} Δ ε ( s ~ ′ → s ~ ) = { C 1 χ m ( s ~ ′ → s ~ ) t ∞ if C 2 ( ν ~ ′ + t ) ≤ χ m ( s ~ ′ → s ~ ) otherwise (72)
where χ m ( s ~ ′ → s ~ ) = 1 C 3 K b m ( s ~ ) q g ∗ ( s ~ ′ ) q b ∗ ( s ~ ′ ) \chi_m(\tilde{s}'\to\tilde{s})=\frac{1}{C_3}K_{bm}(\tilde{s})\frac{q_g^*(\tilde{s}')}{q_b^*(\tilde{s}')} χ m ( s ~ ′ → s ~ ) = C 3 1 K bm ( s ~ ) q b ∗ ( s ~ ′ ) q g ∗ ( s ~ ′ ) for K b m ( s ~ ) = ν ~ − t + 1 K_{bm}(\tilde{s})=\tilde{\nu}-t+1 K bm ( s ~ ) = ν ~ − t + 1 , q a ∗ ( s ~ ′ ) = ( ( 1 − λ ) 2 − ε a c c ( s ~ ′ ) ) 2 q_a^*(\tilde{s}')=((1-\lambda)^2-\varepsilon_{\mathrm{acc}}(\tilde{s}'))^2 q a ∗ ( s ~ ′ ) = (( 1 − λ ) 2 − ε acc ( s ~ ′ ) ) 2 with ε a c c ( s ~ ′ ) \varepsilon_{\mathrm{acc}}(\tilde{s}') ε acc ( s ~ ′ ) the purity-loss budget accumulated before the jump, and q b ∗ ( s ~ ′ ) = q b 2 s ′ = 1 − ( 1 − λ ) 4 2 2 s ′ q_b^*(\tilde{s}')=\frac{q_b}{2^{s'}}=\frac{1-(1-\lambda)^4}{2^{2s'}} q b ∗ ( s ~ ′ ) = 2 s ′ q b = 2 2 s ′ 1 − ( 1 − λ ) 4 . Here, ν ~ = n − s ~ \tilde{\nu}=n-\tilde{s} ν ~ = n − s ~ and ν ~ ′ = n − s ~ ′ \tilde{\nu}'=n-\tilde{s}' ν ~ ′ = n − s ~ ′ . The constants C 1 C_1 C 1 , C 2 C_2 C 2 , C 3 C_3 C 3 are from Lemma VII.6. The ∞ \infty ∞ case means that χ \chi χ is below the lemma’s minimum C 2 ( ν ~ ′ + t ) C_2(\tilde{\nu}'+t) C 2 ( ν ~ ′ + t ) , so our bounds certify no such jump. The first condition of the theorem forces λ ≲ 1 − 2 − 1 / 4 \lambda\lesssim1-2^{-1/4} λ ≲ 1 − 2 − 1/4 , so γ ≳ ( 1 − λ ) 2 ≳ 1 / 2 \gamma\gtrsim(1-\lambda)^2\gtrsim1/\sqrt{2} γ ≳ ( 1 − λ ) 2 ≳ 1/ 2 . Every budget we use is at most ε ≪ 1 \varepsilon\ll1 ε ≪ 1 , and γ S ~ ≳ γ − ε ≈ γ \gamma_{\tilde{S}}\gtrsim\gamma-\varepsilon\approx\gamma γ S ~ ≳ γ − ε ≈ γ , so Δ ε ≪ γ S ~ \Delta\varepsilon\ll\gamma_{\tilde{S}} Δ ε ≪ γ S ~ throughout. Lemma VII.6 applies at every step, with C 1 ≈ 1 C_1\approx1 C 1 ≈ 1 when t ≫ 1 t\gg1 t ≫ 1 . The same bound keeps the total, floor included, below the cap ( 1 − λ ) 2 / 4 ≈ 0.18 (1-\lambda)^2/4\approx0.18 ( 1 − λ ) 2 /4 ≈ 0.18 of Assumption IV.6.
An iteration may overshoot its target dimension s ~ \widetilde{s} s . This can only help the clean-mode analysis, since q b ∗ q_b^* q b ∗ decreases, the number of good∗ ^* ∗ samples needed in Lemma VII.1 decreases, and the remaining conditions, including the budget-based bound q g ∗ q_g^* q g ∗ , are unchanged. Remark VIII.7 shows how to keep the bookkeeping exact.
The first jump. We now show that under appropriate assumptions, the total purity loss is dominated by the first update, just as in the intermediate mode. Consider the transition s ~ = 0 → Λ \widetilde{s}=0\to\Lambda s = 0 → Λ :
Δ ε ( 0 → Λ ) = { C 1 C 3 t n − t + 1 − Λ q b q g if q b q g ≤ 1 C 2 C 3 n − t + 1 − Λ n + t , ∞ otherwise (73) \Delta\varepsilon(0\to\Lambda)=
\begin{cases}
C_1C_3\frac{t}{n-t+1-\Lambda}\frac{q_b}{q_g} & \text{if }\frac{q_b}{q_g}\leq\frac{1}{C_2C_3}\frac{n-t+1-\Lambda}{n+t},\\
\infty& \text{otherwise}
\end{cases} \tag*{(73)} Δ ε ( 0 → Λ ) = { C 1 C 3 n − t + 1 − Λ t q g q b ∞ if q g q b ≤ C 2 C 3 1 n + t n − t + 1 − Λ , otherwise (73)
where q g = ( 1 − λ ) 4 q_g=(1-\lambda)^4 q g = ( 1 − λ ) 4 , q b = 1 − ( 1 − λ ) 4 q_b=1-(1-\lambda)^4 q b = 1 − ( 1 − λ ) 4 , and we used C 2 ≈ 1 C_2\approx1 C 2 ≈ 1 because ν ~ ′ + t = n + t ≫ 1 \widetilde{\nu}' +t=n+t\gg1 ν ′ + t = n + t ≫ 1 . Since n − t ≫ 1 n-t\gg1 n − t ≫ 1 , we may pick Λ \Lambda Λ such that 1 ≪ Λ ≪ n − t 1\ll\Lambda\ll n-t 1 ≪ Λ ≪ n − t . In this way, C 3 ≈ 1 C_3\approx1 C 3 ≈ 1 , and the first jump is possible so long as q b q g ≲ n − t n + t \frac{q_b}{q_g}\lesssim\frac{n-t}{n+t} q g q b ≲ n + t n − t , where
Δ ε ( 0 → Λ ) ≈ C 1 t n − t q b q g (74) \Delta\varepsilon(0\to\Lambda)\approx C_1\frac{t}{n-t}\frac{q_b}{q_g} \tag*{(74)} Δ ε ( 0 → Λ ) ≈ C 1 n − t t q g q b (74)
To leading order, this is also the tightest first-jump condition these bounds give.
q g ∗ q_g^* q g ∗ stays within a constant factor. Before turning to later jumps, we check that q g ∗ q_g^* q g ∗ loses at most a constant factor whenever ε a c c ≈ C 1 q b q g t n − t \varepsilon_{\mathrm{acc}}\approx C_1\frac{q_b}{q_g}\frac{t}{n-t} ε acc ≈ C 1 q g q b n − t t is maintained. We have
ε a c c ≲ C 1 t n + t ( 1 − λ ) 2 ≳ n + t 2 n (75) \begin{aligned}
\varepsilon_{\mathrm{acc}}&\lesssim C_1\frac{t}{n+t}\\
(1-\lambda)^2&\gtrsim\sqrt{\frac{n+t}{2n}} \tag*{(75)}
\end{aligned} ε acc ( 1 − λ ) 2 ≲ C 1 n + t t ≳ 2 n n + t (75)
Both lines utilize q b q g = 1 − ( 1 − λ ) 4 ( 1 − λ ) 4 ≲ n − t n + t \frac{q_b}{q_g}=\frac{1-(1-\lambda)^4}{(1-\lambda)^4}\lesssim\frac{n-t}{n+t} q g q b = ( 1 − λ ) 4 1 − ( 1 − λ ) 4 ≲ n + t n − t . Substituting ξ ≡ t n \xi\equiv\frac{t}{n} ξ ≡ n t gives
ε a c c ( 1 − λ ) 2 ≲ C 1 2 ξ 2 ( 1 + ξ ) 3 (76) \frac{\varepsilon_{\mathrm{acc}}}{(1-\lambda)^2}\lesssim C_1\sqrt{\frac{2\xi^2}{(1+\xi)^3}} \tag*{(76)} ( 1 − λ ) 2 ε acc ≲ C 1 ( 1 + ξ ) 3 2 ξ 2 (76)
If t ≫ 1 t\gg1 t ≫ 1 , then C 1 ≈ 1 C_1\approx1 C 1 ≈ 1 , and since 0 < ξ ≤ 1 0<\xi\leq1 0 < ξ ≤ 1 , the RHS is at most 1 2 \frac{1}{2} 2 1 to leading order. If t = O ( 1 ) t=O(1) t = O ( 1 ) , then ξ ≪ 1 \xi\ll1 ξ ≪ 1 , so RHS ≪ 1 \ll1 ≪ 1 . Hence q g ∗ = ( ( 1 − λ ) 2 − ε a c c ) 2 ≳ 1 4 ( 1 − λ ) 4 = 1 4 q g q_g^*=\left((1-\lambda)^2-\varepsilon_{\mathrm{acc}}\right)^2\gtrsim\frac{1}{4}(1-\lambda)^4=\frac{1}{4}q_g q g ∗ = ( ( 1 − λ ) 2 − ε acc ) 2 ≳ 4 1 ( 1 − λ ) 4 = 4 1 q g .
Later jumps are negligible. To make the domination by the first jump precise, view the main stage as choosing target dimensions 0 = s ~ 0 < s ~ 1 < s ~ 2 < ⋯ 0=\widetilde{s}_0<\widetilde{s}_1<\widetilde{s}_2<\cdots 0 = s 0 < s 1 < s 2 < ⋯ , where s ~ 1 = Λ \widetilde{s}_1=\Lambda s 1 = Λ , and write K j ≡ K b m ( s ~ j ) = n − t − s ~ j + 1 K_j\equiv K_{\mathrm{bm}}(\widetilde{s}_j)=n-t-\widetilde{s}_j+1 K j ≡ K bm ( s j ) = n − t − s j + 1 . The first jump has size Λ ≫ 1 \Lambda\gg1 Λ ≫ 1 , so before the second jump the bad∗ ^* ∗ rate has already been suppressed by a factor 2 − Λ ≪ 1 2^{-\Lambda}\ll1 2 − Λ ≪ 1 . Therefore, when choosing s ~ 2 \widetilde{s}_2 s 2 , we may decrease K 2 K_2 K 2 from K 1 K_1 K 1 by any factor R 1 R_1 R 1 satisfying 1 ≪ R 1 ≪ 2 Λ 1\ll R_1\ll2^\Lambda 1 ≪ R 1 ≪ 2 Λ . This still makes χ m ( s ~ 1 → s ~ 2 ) \chi_m(\widetilde{s}_1\to\widetilde{s}_2) χ m ( s 1 → s 2 ) larger than χ m ( 0 → Λ ) \chi_m(0\to\Lambda) χ m ( 0 → Λ ) by a factor ≫ 1 \gg1 ≫ 1 , because the exponential suppression of q b ∗ q_b^* q b ∗ more than compensates for the decrease in K b m K_{\mathrm{bm}} K bm .
The same argument then repeats. As long as K j ≫ 1 K_j\gg1 K j ≫ 1 , choose K j + 1 K_{j+1} K j + 1 smaller than K j K_j K j by a factor R j ≫ 1 R_j\gg1 R j ≫ 1 , but still much smaller than 2 s ~ j − s ~ j − 1 2^{\widetilde{s}_j-\widetilde{s}_{j-1}} 2 s j − s j − 1 , the previous reduction factor in q b ∗ q_b^* q b ∗ . Since K j − K j + 1 = s ~ j + 1 − s ~ j K_j-K_{j+1}=\widetilde{s}_{j+1}-\widetilde{s}_j K j − K j + 1 = s j + 1 − s j , this choice also makes the next dimension jump ≫ 1 \gg1 ≫ 1 , and hence prepares another suppression factor 2 − ( s ~ j + 1 − s ~ j ) ≪ 1 2^{-(\widetilde{s}_{j+1}-\widetilde{s}_j)}\ll1 2 − ( s j + 1 − s j ) ≪ 1 for the following step. The remaining quantities in Eq. (72) , such as q g ∗ q_g^* q g ∗ , C 1 C_1 C 1 , C 2 C_2 C 2 , C 3 C_3 C 3 , and ν ~ ′ + t \widetilde{\nu}'+t ν ′ + t , change only by constant factors or in the favorable direction. Thus each later χ m \chi_m χ m increases by a factor ≫ 1 \gg1 ≫ 1 , so each corresponding purity-loss increment Δ ε \Delta\varepsilon Δ ε decreases by a factor ≫ 1 \gg1 ≫ 1 . The remaining purity-loss tail is negligible, and ∑ Δ ε \sum\Delta\varepsilon ∑ Δ ε is dominated by the first jump from s ~ = 0 \widetilde{s}=0 s = 0 to s ~ = Λ \widetilde{s}=\Lambda s = Λ .
Terminal stage. This continues until K b m = O ( 1 ) K_{\mathrm{bm}}=O(1) K bm = O ( 1 ) , i.e., n − t − dim S ~ = O ( 1 ) n-t-\dim\widetilde{S}=O(1) n − t − dim S = O ( 1 ) . At this point, we may take n − t n-t n − t as the final main-stage target, i.e., K b m = 1 K_{\mathrm{bm}}=1 K bm = 1 . A successful update then gives dim S ~ ≥ n − t \dim\widetilde{S}\geq n-t dim S ≥ n − t , which ends the main stage, and after this update we enter the terminal stage. Indeed, compared to χ m ( 0 → Λ ) \chi_m(0\to\Lambda) χ m ( 0 → Λ ) , χ m \chi_m χ m for this final main-stage jump and at the terminal stage is larger by a factor ∝ 2 2 n − t n − t \propto2^{\frac{2^{n-t}}{n-t}} ∝ 2 n − t 2 n − t , while the ( ν ~ ′ + t ) (\widetilde{\nu}'+t) ( ν ′ + t ) term only decreases. So n − t ≫ 1 n-t\gg1 n − t ≫ 1 ensures success in both—the same reasoning as in the intermediate mode.
Total accuracy expenditure. Adding up, the total purity loss is at most
ε a c c ( n − t ) + min { t , O ( ln 1 δ ) } Δ ε t e r m i n a l , (77) \varepsilon_{\mathrm{acc}}(n-t)+\min\left\{t,O\left(\ln\frac{1}{\delta}\right)\right\}\Delta\varepsilon_{\mathrm{terminal}}, \tag*{(77)} ε acc ( n − t ) + min { t , O ( ln δ 1 ) } Δ ε terminal , (77)
where ε a c c ( n − t ) \varepsilon_{\mathrm{acc}}(n-t) ε acc ( n − t ) is the main-stage purity-loss budget accumulated to reach dim S ~ ≥ n − t \dim\widetilde{S}\geq n-t dim S ≥ n − t , and Δ ε t e r m i n a l \Delta\varepsilon_{\mathrm{terminal}} Δ ε terminal is the max purity loss for one batch in the terminal stage. The terminal multiplier counts its updates, at most min { t , T } \min\{t,T\} min { t , T } with T = O ( ln 1 δ ) T=O\left(\ln\frac{1}{\delta}\right) T = O ( ln δ 1 ) (Observation VIII.3). The main-stage part is dominated by the first jump. The terminal part carries the extra factor min { t , O ( ln 1 δ ) } \min\{t,O(\ln\frac{1}{\delta})\} min { t , O ( ln δ 1 )} , so to make it negligible in the leading-order purity loss, we need the terminal χ m \chi_m χ m to be larger than the first-jump χ m \chi_m χ m by a factor ≫ t \gg t ≫ t .
Since the terminal χ m \chi_m χ m is larger by a factor proportional to 2 n − t n − t \frac{2^{n-t}}{n-t} n − t 2 n − t , it is enough to require t ( n − t ) 2 − ( n − t ) ≪ 1 t(n-t)2^{-(n-t)} \ll1 t ( n − t ) 2 − ( n − t ) ≪ 1 , which is guaranteed by n − t − ( log 2 t + log 2 log 2 t ) ≫ 1 n-t-(\log_2 t+\log_2\log_2 t)\gg1 n − t − ( log 2 t + log 2 log 2 t ) ≫ 1 . Under this assumption, both the later main-stage jumps and the terminal-stage contribution are asymptotically negligible, so the first jump dominates.
Keeping the cost polynomial. If we strictly follow the above strategy, the cost may be exponential: the number of samples required by each batch and each verifier query grows polynomially with 1 Δ ε \frac{1}{\Delta_\varepsilon} Δ ε 1 . As Δ ε \Delta_\varepsilon Δ ε becomes exponentially small, the cost grows exponentially. Let N t o t N_{\mathrm{tot}} N tot be the upper bound on nontrivial accepted updates given by the number of main-stage targets plus the terminal-stage bound min { t , T } \min\{t,T\} min { t , T } , capped at n n n . Then
N t o t = O ( min { n , log ( n − t + 1 ) + ln 1 δ } ) . (78) N_{\mathrm{tot}}=O\left(\min\left\{n,\log(n-t+1)+\ln\frac{1}{\delta}\right\}\right). \tag*{(78)} N tot = O ( min { n , log ( n − t + 1 ) + ln δ 1 } ) . (78)
Reserve an o ( 1 ) o(1) o ( 1 ) fraction of the input accuracy for a threshold floor: choose the original budgets to sum to at most the remaining ( 1 − o ( 1 ) ) ε (1-o(1))\varepsilon ( 1 − o ( 1 )) ε , and replace each by
Δ ε = max { Δ ε o r i g i n a l , o ( 1 ) ε N t o t } . (79) \Delta\varepsilon=\max\left\{\Delta\varepsilon_{\mathrm{original}},\frac{o(1)\varepsilon}{N_{\mathrm{tot}}}\right\}. \tag*{(79)} Δ ε = max { Δ ε original , N tot o ( 1 ) ε } . (79)
with the same reserved fraction. The total budget increases by at most the reserve and remains within ε \varepsilon ε . This requires the corresponding vanishing margin in the accuracy condition. With an inverse-logarithmic reserve, both the verifier and finder costs are polynomial. Appendix E gives one explicit schedule along these lines, with an additive floor instead of the maximum, and shows that it recovers the conditions of the theorem given a fixed margin.
Remark VIII.6. When 1 ≪ t ≪ n 1\ll t\ll n 1 ≪ t ≪ n and λ ≪ 1 \lambda\ll1 λ ≪ 1 , the conditions in Theorem VIII.5 simplify to:
λ ≲ 1 − 2 − 1 / 4 , 4 λ t n ≲ ε ≪ 1 (80) \lambda\lesssim1-2^{-1/4},\qquad4\lambda\frac{t}{n}\lesssim\varepsilon\ll1 \tag*{(80)} λ ≲ 1 − 2 − 1/4 , 4 λ n t ≲ ε ≪ 1 (80)
In the weak-noise limit, the window for ε \varepsilon ε in Theorem VIII.5 is open when λ t / ( n − t ) ≪ 1 \lambda t/(n-t)\ll1 λ t / ( n − t ) ≪ 1 . For t ≪ n t\ll n t ≪ n this is automatic. The theorem does not need t ≪ n t\ll n t ≪ n , though: suitably small noise also accommodates t = Θ ( n ) t=\Theta(n) t = Θ ( n ) . Bare λ ≪ 1 \lambda\ll1 λ ≪ 1 , however, does not give a uniform guarantee as t t t approaches n n n .
Remark VIII.7. (Sufficient-budget bookkeeping). The proof of Theorem VIII.5 follows one feasible schedule of target dimensions. One can also ask for the smallest main-stage budget that Lemma VII.6 and Observation VIII.2 certify for reaching dim S ~ ≥ s ~ \dim\widetilde{S}\geq\widetilde{s} dim S ≥ s . Taking ε a c c ( s ~ ) \varepsilon_{\mathrm{acc}}(\widetilde{s}) ε acc ( s ) to be the smallest cumulative purity-loss budget certified by such a schedule, it satisfies
ε a c c ( 0 ) = 0 , ε a c c ( s ~ ) = min s ~ ′ < s ~ { ε a c c ( s ~ ′ ) + Δ ε ( s ~ ′ → s ~ ) } . (81) \varepsilon_{\mathrm{acc}}(0)=0,\qquad\varepsilon_{\mathrm{acc}}(\widetilde{s})=\min_{\widetilde{s}'<\widetilde{s}}\left\{\varepsilon_{\mathrm{acc}}(\widetilde{s}')+\Delta\varepsilon(\widetilde{s}'\to\widetilde{s})\right\}. \tag*{(81)} ε acc ( 0 ) = 0 , ε acc ( s ) = s ′ < s min { ε acc ( s ′ ) + Δ ε ( s ′ → s ) } . (81)
with Δ ε ( s ~ ′ → s ~ ) \Delta\varepsilon(\widetilde{s}'\to\widetilde{s}) Δ ε ( s ′ → s ) from Eq. (72) , and the schedule in the proof bounds it from above. This is sufficient-budget bookkeeping, not an optimality statement about the algorithm: “smallest” refers only to what our bounds certify. A schedule certified for one budget also works for any larger ε \varepsilon ε , although larger accuracy budgets may allow more cost-efficient choices.
For completeness, the polynomial factors can be made explicit for the single-dataset verifier above. For the clean and intermediate modes, assume 1 ≤ t ≤ n 1\leq t\leq n 1 ≤ t ≤ n , 0 < ε ≤ 1 0<\varepsilon\leq1 0 < ε ≤ 1 , constant lower bounds on retained purity and good-sample probability, and sufficient margin in the depolarizing success conditions for the stated schedule and inverse-logarithmic slacks. The following pairs give upper bounds on (state copies, classical bit operations), respectively:
clean: ( O ~ ( n / ε 2 ) , O ~ ( n 3 / ε 2 ) ) , intermediate: ( O ~ ( n 3 / ε 2 ) , O ~ ( t 2 n 5 / ε 2 ) ) , top-down: ( O ~ ( t 4 n + n 3 / ε 2 ) , O ~ ( t 4 n 5 / ε 2 ) ) . (82) \begin{aligned}
\text{clean:}\quad&\left(\widetilde{O}(n/\varepsilon^2),\widetilde{O}(n^3/\varepsilon^2)\right),\\
\text{intermediate:}\quad&\left(\widetilde{O}(n^3/\varepsilon^2),\widetilde{O}(t^2n^5/\varepsilon^2)\right),\\
\text{top-down:}\quad&\left(\widetilde{O}(t^4n+n^3/\varepsilon^2),\widetilde{O}(t^4n^5/\varepsilon^2)\right). \tag*{(82)}
\end{aligned} clean: intermediate: top-down: ( O ( n / ε 2 ) , O ( n 3 / ε 2 ) ) , ( O ( n 3 / ε 2 ) , O ( t 2 n 5 / ε 2 ) ) , ( O ( t 4 n + n 3 / ε 2 ) , O ( t 4 n 5 / ε 2 ) ) . (82)
Here O ~ \widetilde{O} O suppresses logarithmic factors in n n n , 1 / ε 1/\varepsilon 1/ ε , 1 / δ 1/\delta 1/ δ , and 1 / δ v e r 1/\delta_{\mathrm{ver}} 1/ δ ver . These are bounds for this implementation; Appendix F gives the accounting. The top-down bound only requires the purity lower bound, not the depolarizing success conditions.
Guarantees under Arbitrary Pauli Noise
With depolarizing noise, the bad∗ ^{*} ∗ probability p b ∗ p_b^{*} p b ∗ is suppressed exponentially as we increase S ~ \widetilde{S} S . For an arbitrary Pauli channel, however, this is not necessarily the case. In particular, p b ∗ p_b^{*} p b ∗ may remain the same even as S ~ \widetilde{S} S grows. A particularly stark example is single-Pauli noise , a Pauli channel whose noise is concentrated on a single Pauli error:
ρ = E ( ρ ′ ) = ( 1 − λ ) ρ ′ + λ σ k ρ ′ σ k † (83) \rho= \mathcal{E}(\rho^{\prime}) = (1-\lambda)\rho^{\prime}+\lambda\sigma_k\rho^{\prime}\sigma_k^{\dagger} \tag*{(83)} ρ = E ( ρ ′ ) = ( 1 − λ ) ρ ′ + λ σ k ρ ′ σ k † (83)
for some k ∈ P n ∖ C ( S ) k \in\mathcal{P}^{n}\setminus C(S) k ∈ P n ∖ C ( S ) . A direct calculation gives
P B e l l D i f f ( i ) = ( 1 − p b ) P B e l l D i f f ′ ( i ) + p b P B e l l D i f f ′ ( i + k ) (84) P_{\mathrm{BellDiff}}(i)=(1-p_b)P_{\mathrm{BellDiff}}^{\prime}(i)+p_bP_{\mathrm{BellDiff}}^{\prime}(i+k) \tag*{(84)} P BellDiff ( i ) = ( 1 − p b ) P BellDiff ′ ( i ) + p b P BellDiff ′ ( i + k ) (84)
where p b = 1 − ( 1 − 2 λ ) 4 2 p_b=\frac{1-(1-2\lambda)^4}{2} p b = 2 1 − ( 1 − 2 λ ) 4 and hence p g = 1 − p b = 1 + ( 1 − 2 λ ) 4 2 p_g=1-p_b=\frac{1+(1-2\lambda)^4}{2} p g = 1 − p b = 2 1 + ( 1 − 2 λ ) 4 . In other words, the resulting distribution is a mixture of the pure-state distribution and a shifted version of it. This means that p b ∗ p_b^{*} p b ∗ and p g ∗ p_g^{*} p g ∗ remain largely unchanged as S ~ \widetilde{S} S grows while commuting with σ k \sigma_k σ k . If an element of S S S that anticommutes with σ k \sigma_k σ k is added to S ~ \widetilde{S} S , p b ∗ p_b^{*} p b ∗ drops to zero.
More concretely, when S ~ \widetilde{S} S commutes with σ k \sigma_k σ k , we find:
{ p g ∗ ≥ p g ( 1 − ε a c c γ ) 2 , p b ( 1 − ε a c c γ ) 2 ≤ p b ∗ ≤ p b (85) \begin{cases}
p_g^{*}\ge p_g\left(1-\frac{\varepsilon_{\mathrm{acc}}}{\gamma}\right)^2,\\
p_b\left(1-\frac{\varepsilon_{\mathrm{acc}}}{\gamma}\right)^2\le p_b^{*}\le p_b \tag*{(85)}
\end{cases} ⎩ ⎨ ⎧ p g ∗ ≥ p g ( 1 − γ ε acc ) 2 , p b ( 1 − γ ε acc ) 2 ≤ p b ∗ ≤ p b (85)
because ∣ a i + s ′ ∣ = ∣ a i ′ ∣ \lvert a_{i+s}^{\prime}\rvert=\lvert a_i^{\prime}\rvert ∣ a i + s ′ ∣ = ∣ a i ′ ∣ for s ∈ S s\in S s ∈ S (each s ∈ S s\in S s ∈ S stabilizes ψ \psi ψ up to sign, so coefficients on a coset of S S S can differ only in sign), and each coset of S S S (a) either entirely survives or gets entirely filtered by T S ~ T_{\widetilde{S}} T S , and (b) exactly half commutes with k k k and half does not. So γ ~ S γ S = 1 2 ( 1 + ( 1 − 2 λ ) 2 ) = γ \frac{\widetilde{\gamma}_{S}}{\gamma_{S}}=\frac{1}{2}(1+(1-2\lambda)^2)=\gamma γ S γ S = 2 1 ( 1 + ( 1 − 2 λ ) 2 ) = γ . Therefore, a maximum purity loss of ε a c c \varepsilon_{\mathrm{acc}} ε acc in ρ \rho ρ translates to a maximum purity loss of ε a c c γ \frac{\varepsilon_{\mathrm{acc}}}{\gamma} γ ε acc in ρ ′ \rho^{\prime} ρ ′ . Then, Lemma IV.3 gives P B e l l D i f f ( C ( S ∗ ) ) ≥ ( 1 − ε a c c γ ) 2 P_{\mathrm{BellDiff}}(C(S^{*}))\ge\left(1-\frac{\varepsilon_{\mathrm{acc}}}{\gamma}\right)^2 P BellDiff ( C ( S ∗ )) ≥ ( 1 − γ ε acc ) 2 , which gives Eq. (85a). Since p b ∗ p g ∗ \frac{p_b^{*}}{p_g^{*}} p g ∗ p b ∗ is a constant, this gives the LHS of Eq. (85b).
p b ( 1 − ε a c c γ ) 2 ≤ p b ∗ ≤ p b (86) p_b\left(1-\frac{\varepsilon_{\mathrm{acc}}}{\gamma}\right)^2\le p_b^{*}\le p_b \tag*{(86)} p b ( 1 − γ ε acc ) 2 ≤ p b ∗ ≤ p b (86)
So p g ∗ p_g^{*} p g ∗ and p b ∗ p_b^{*} p b ∗ only change by O ( ε a c c ) O(\varepsilon_{\mathrm{acc}}) O ( ε acc ) to leading order. In other words, a larger S ~ \widetilde{S} S has no impact on the problem. If S ~ \widetilde{S} S adds an element of S S S that anticommutes with σ k \sigma_k σ k , p b ∗ = 0 p_b^{*}=0 p b ∗ = 0 while Eq. (85a) still holds for p g ∗ p_g^{*} p g ∗ . This effectively reduces our problem to the much simpler pure-state case in Sec. III D, and a solution can be found immediately.
Single-Pauli noise shows why increasing S ~ \widetilde{S} S provides no guaranteed gradual improvement in q b ∗ q g ∗ \frac{q_b^{*}}{q_g^{*}} q g ∗ q b ∗ . For a general Pauli channel acting on the output state, with total nonidentity error probability λ < 1 / 2 \lambda<1/2 λ < 1/2 , let p g , p b p_g,p_b p g , p b denote its good/bad probabilities before post-selection. We have
p b ∗ ≤ p b ≤ 1 − ( 1 − λ ) 4 ≤ 4 λ , p_b^{*}\le p_b\le1-(1-\lambda)^4\le4\lambda, p b ∗ ≤ p b ≤ 1 − ( 1 − λ ) 4 ≤ 4 λ ,
p g ∗ ≥ γ ~ S ~ 2 ≥ ( γ − ε a c c ) 2 . (87) p_g^{*}\ge\widetilde{\gamma}_{\widetilde{S}}^2\ge(\gamma-\varepsilon_{\mathrm{acc}})^2. \tag*{(87)} p g ∗ ≥ γ S 2 ≥ ( γ − ε acc ) 2 . (87)
The first bound follows because a Bell difference uses four copies, and if all four Pauli errors are identity, the sample is good. The second follows from Lemma IV.3 and Observation IV.2. We can therefore take
q g ∗ = ( γ − ε a c c ) 2 , q b ∗ = p b . (88) q_g^{*}=(\gamma-\varepsilon_{\mathrm{acc}})^2,\qquad q_b^{*}=p_b. \tag*{(88)} q g ∗ = ( γ − ε acc ) 2 , q b ∗ = p b . (88)
Since γ ≥ ( 1 − λ ) 2 \gamma\ge(1-\lambda)^2 γ ≥ ( 1 − λ ) 2 from the identity branch of the channel, keeping γ − ε a c c \gamma-\varepsilon_{\mathrm{acc}} γ − ε acc bounded below by a positive constant gives q b ∗ q g ∗ = O ( p b / p g ) = O ( λ ) \frac{q_b^{*}}{q_g^{*}}=O(p_b/p_g)=O(\lambda) q g ∗ q b ∗ = O ( p b / p g ) = O ( λ ) . The conditions below in terms of p b / p g p_b/p_g p b / p g assume that p b p_b p b , or a constant-factor upper bound, is available; if only λ \lambda λ is known, take q b ∗ = 1 − ( 1 − λ ) q_b^{*}=1-(1-\lambda) q b ∗ = 1 − ( 1 − λ ) instead. A known purity lower bound may replace γ \gamma γ in q g ∗ q_g^{*} q g ∗ , with the same retained-purity margin. This leads to Theorem VIII.8 for the intermediate regime and Theorem VIII.9 for the clean regime.
Theorem VIII.8 (Intermediate Regime Under Arbitrary Pauli Noise). When p b p g ≤ O ( 1 t ) \frac{p_b}{p_g}\le O\left(\frac{1}{t}\right) p g p b ≤ O ( t 1 ) or λ ≤ O ( 1 t ) \lambda\le O\left(\frac{1}{t}\right) λ ≤ O ( t 1 ) , the intermediate mode of the up-down algorithm succeeds. The algorithm uses O ( poly ) O(\operatorname{poly}) O ( poly ) samples and O ( 2 t ⋅ poly ) O(2^t\cdot\operatorname{poly}) O ( 2 t ⋅ poly ) time to return an approximate weak stabilizer.
Proof. Similar to the proof of Theorem VIII.4, we stitch together iterations and slowly increment S ~ \widetilde{S} S , while allocating a sufficiently small Δ ε \Delta\varepsilon Δ ε for each step. Unlike with depolarizing noise, without exponentially decreasing q b ∗ q_b^{*} q b ∗ , the condition needed becomes stricter with each batch update, since the ratio ν ~ − t ν ~ + t \frac{\widetilde{\nu}-t}{\widetilde{\nu}+t} ν + t ν − t always decreases as ν ~ \widetilde{\nu} ν decreases. The strictest condition occurs when ν ~ − t = O ( 1 ) \widetilde{\nu}-t=O(1) ν − t = O ( 1 ) or negative, where we’ll need p b p g ≤ O ( 1 t ) \frac{p_b}{p_g}\le O\left(\frac{1}{t}\right) p g p b ≤ O ( t 1 ) , which is ensured by λ ≤ O ( 1 t ) \lambda\le O\left(\frac{1}{t}\right) λ ≤ O ( t 1 ) . This stage will always be reached, even without assumptions such as n ≫ 1 n\gg1 n ≫ 1 or n − t ≫ 1 n-t\gg1 n − t ≫ 1 .
Theorem VIII.9 (Clean Regime Under Arbitrary Pauli Noise). When
p b p g ≤ Θ ( 1 t ) , ε ≥ Θ ( t p b p g min { t , ln 1 δ } ) (89) \frac{p_b}{p_g} \le\Theta\left(\frac{1}{t}\right), \qquad\varepsilon\ge\Theta\left(t\frac{p_b}{p_g}\min\left\{t,\ln\frac{1}{\delta}\right\}\right) \tag*{(89)} p g p b ≤ Θ ( t 1 ) , ε ≥ Θ ( t p g p b min { t , ln δ 1 } ) (89) or,
λ ≤ Θ ( 1 t ) , ε ≥ Θ ( t λ min { t , ln 1 δ } ) (90) \lambda\le\Theta\left(\frac{1}{t}\right), \qquad\varepsilon\ge\Theta\left(t\lambda\min\left\{t,\ln\frac{1}{\delta}\right\}\right) \tag*{(90)} λ ≤ Θ ( t 1 ) , ε ≥ Θ ( t λ min { t , ln δ 1 } ) (90) the clean mode of the up-down algorithm succeeds. The algorithm uses O ( poly ) O(\operatorname{poly}) O ( poly ) samples and O ( poly ) O(\operatorname{poly}) O ( poly ) time to return an approximate weak stabilizer.
Proof idea. Without the exponential suppression of q b ∗ q_b^* q b ∗ , we make each iteration jump as far as it can. Lemma VII.6 then shrinks ν ~ i + t \tilde{\nu}_i+t ν ~ i + t geometrically, down to 2 t + O ( 1 ) 2t+O(1) 2 t + O ( 1 ) , once p b p g ≤ Θ ( 1 t ) \frac{p_b}{p_g}\le\Theta\left(\frac{1}{t}\right) p g p b ≤ Θ ( t 1 ) ; taking each batch as large as its landing allows, the per-iteration accuracy costs form a series dominated by its last terms, totaling O ( t p b p g ) O\left(t\frac{p_b}{p_g}\right) O ( t p g p b ) for the main stage. The terminal stage adds up to min { t , ln 1 δ } \min\{t,\ln\frac{1}{\delta}\} min { t , ln δ 1 } updates at Θ ( t p b p g ) \Theta\left(t\frac{p_b}{p_g}\right) Θ ( t p g p b ) each, which gives the accuracy threshold in the statement.
Proof. Unlike depolarizing noise, a general Pauli channel need not suppress bad∗ ^* ∗ samples gradually as S ~ \widetilde{S} S grows, so in each iteration, we aim to increment dim S ~ \dim\widetilde{S} dim S to the largest extent. The proof logic then follows similar steps as in Theorem VIII.5.
Main stage. We run the main stage when ν ~ − t ≫ 1 \tilde{\nu}-t\gg1 ν ~ − t ≫ 1 . Suppose at iteration i i i we have nullity n − dim S ~ ≡ ν ~ i n-\dim\widetilde{S}\equiv\tilde{\nu}_i n − dim S ≡ ν ~ i . By Lemma VII.6, with the smallest batch χ = C 2 ( ν ~ i + t ) \chi=C_2(\tilde{\nu}_i+t) χ = C 2 ( ν ~ i + t ) we get K b = C 2 C 3 q b ∗ q g ∗ ( ν ~ i + t ) K_b=C_2C_3\frac{q_b^*}{q_g^*}(\tilde{\nu}_i+t) K b = C 2 C 3 q g ∗ q b ∗ ( ν ~ i + t ) and can reach ν ~ i + 1 ≤ ⌊ K b ⌋ < + t \tilde{\nu}_{i+1}\le\lfloor K_b\rfloor_{<}+t ν ~ i + 1 ≤ ⌊ K b ⌋ < + t , or:
ν ~ i + 1 + t ⪅ C 2 C 3 q b ∗ q g ∗ ( ν ~ i + t ) + 2 t − O ( 1 ) (91) \tilde{\nu}_{i+1}+t\lessapprox C_2C_3\frac{q_b^*}{q_g^*}(\tilde{\nu}_i+t)+2t-O(1) \tag*{(91)} ν ~ i + 1 + t ⪅ C 2 C 3 q g ∗ q b ∗ ( ν ~ i + t ) + 2 t − O ( 1 ) (91)
where the O ( 1 ) O(1) O ( 1 ) term accounts for rounding. At the terminal stage, for the same reason as in Theorem VIII.8, we will need ( q b ∗ q g ∗ ) t e r m i n a l ≤ Θ ( 1 t ) < 1 \left(\frac{q_b^*}{q_g^*}\right)_{\mathrm{terminal}}\le\Theta\left(\frac{1}{t}\right)<1 ( q g ∗ q b ∗ ) terminal ≤ Θ ( t 1 ) < 1 to pass the main obstacle. This means that at the i i i -th stage, q b ∗ q g ∗ ≤ ( q b ∗ q g ∗ ) t e r m i n a l ≤ O ( 1 t ) < 1 \frac{q_b^*}{q_g^*}\le\left(\frac{q_b^*}{q_g^*}\right)_{\mathrm{terminal}}\le O\left(\frac{1}{t}\right)<1 q g ∗ q b ∗ ≤ ( q g ∗ q b ∗ ) terminal ≤ O ( t 1 ) < 1 . Furthermore, C 2 , C 3 ≈ 1 C_2,C_3\approx1 C 2 , C 3 ≈ 1 until the q b ∗ q g ∗ ( ν ~ i + t ) \frac{q_b^*}{q_g^*}(\tilde{\nu}_i+t) q g ∗ q b ∗ ( ν ~ i + t ) term is O ( 1 ) O(1) O ( 1 ) . As a result, ν ~ i + t \tilde{\nu}_i+t ν ~ i + t is suppressed at least geometrically until it is 2 t + O ( 1 ) 2t+O(1) 2 t + O ( 1 ) . For the accuracy, though, the smallest batch is wasteful. Where we land only depends on ⌊ K b ⌋ < \lfloor K_b\rfloor_{<} ⌊ K b ⌋ < , which stays the same if we round K b K_b K b up to ⌈ K b ⌉ \lceil K_b\rceil ⌈ K b ⌉ . So, as in the proof of Theorem VIII.5, we take the largest batch with this landing, χ = ⌈ K b ⌉ q g ∗ C 3 q b ∗ ≥ C 2 ( ν ~ i + t ) \chi=\lceil K_b\rceil\frac{q_g^*}{C_3q_b^*}\ge C_2(\tilde{\nu}_i+t) χ = ⌈ K b ⌉ C 3 q b ∗ q g ∗ ≥ C 2 ( ν ~ i + t ) . Step i i i then requires
Δ ε i = C 1 t χ = C 1 C 3 ⌈ K b ⌉ q b ∗ q g ∗ , (92) \Delta\varepsilon_i=C_1\frac{t}{\chi}=\frac{C_1C_3}{\lceil K_b\rceil}\frac{q_b^*}{q_g^*}, \tag*{(92)} Δ ε i = C 1 χ t = ⌈ K b ⌉ C 1 C 3 q g ∗ q b ∗ , (92)
which is dominated by the end terms as ν ~ i + t \tilde{\nu}_i+t ν ~ i + t , and with it K b K_b K b , decreases geometrically.
Entering the terminal stage. Once K b ≤ 1 K_b\le1 K b ≤ 1 , we have ⌈ K b ⌉ = 1 \lceil K_b\rceil=1 ⌈ K b ⌉ = 1 and ⌊ K b ⌋ < = 0 \lfloor K_b\rfloor_{<}=0 ⌊ K b ⌋ < = 0 , so this iteration already reaches dim S ~ ≥ n − t \dim\widetilde{S}\ge n-t dim S ≥ n − t , which ends the main stage. This way, Δ ε \Delta\varepsilon Δ ε in the main stage is O ( t q b ∗ q g ∗ ) O\left(t\frac{q_b^*}{q_g^*}\right) O ( t q g ∗ q b ∗ ) . Turning this into O ( t p b p g ) O\left(t\frac{p_b}{p_g}\right) O ( t p g p b ) needs γ − ε a c c \gamma-\varepsilon_{\mathrm{acc}} γ − ε acc bounded below by a constant, and Assumption IV.6 ensures this automatically: since ε a c c ≤ ε < ( 1 − 2 λ ) 2 / 4 ≤ γ / 4 \varepsilon_{\mathrm{acc}}\le\varepsilon<(1-2\lambda)^2/4\le\gamma/4 ε acc ≤ ε < ( 1 − 2 λ ) 2 /4 ≤ γ /4 , using γ ≥ ( 1 − λ ) 2 \gamma\ge(1-\lambda)^2 γ ≥ ( 1 − λ ) 2 , we have γ − ε a c c > 3 4 γ \gamma-\varepsilon_{\mathrm{acc}}>\frac{3}{4}\gamma γ − ε acc > 4 3 γ . Hence q g ∗ = ( γ − ε a c c ) 2 = Θ ( γ 2 ) q_g^*=(\gamma-\varepsilon_{\mathrm{acc}})^2=\Theta(\gamma^2) q g ∗ = ( γ − ε acc ) 2 = Θ ( γ 2 ) , so q b ∗ q g ∗ = O ( p b p g ) \frac{q_b^*}{q_g^*}=O\left(\frac{p_b}{p_g}\right) q g ∗ q b ∗ = O ( p g p b ) . More generally, this step only requires a constant retained-purity margin and does not require the full strength of Assumption IV.6. The same cap bounds each per-update budget away from γ \gamma γ : all budgets, the floor added below included, total at most ε < γ / 4 \varepsilon<\gamma/4 ε < γ /4 , and γ − ε a c c ≤ γ S ≤ γ \gamma-\varepsilon_{\mathrm{acc}}\le\gamma_{\mathsf{S}}\le\gamma γ − ε acc ≤ γ S ≤ γ , so Δ ε < γ 4 − ε a c c ≤ γ S − 3 4 γ ≤ 1 4 γ S \Delta\varepsilon<\frac{\gamma}{4}-\varepsilon_{\mathrm{acc}}\le\gamma_{\mathsf{S}}-\frac{3}{4}\gamma\le\frac{1}{4}\gamma_{\mathsf{S}} Δ ε < 4 γ − ε acc ≤ γ S − 4 3 γ ≤ 4 1 γ S . This is not necessarily ≪ γ S \ll\gamma_{\mathsf{S}} ≪ γ S , but Lemma VII.6 still applies through the exact bound Eq. (49) , valid for any Δ ε < γ S \Delta\varepsilon<\gamma_{\mathsf{S}} Δ ε < γ S : its purity factor is at most 4 / 3 4/3 4/3 , so C 1 = O ( 1 ) C_1=O(1) C 1 = O ( 1 ) uniformly rather than C 1 ≈ 1 C_1\approx1 C 1 ≈ 1 , which the Θ \Theta Θ -level statements absorb. Therefore, ε a c c = O ( t p b p g ) \varepsilon_{\mathrm{acc}}=O\left(t\frac{p_b}{p_g}\right) ε acc = O ( t p g p b ) .
Total purity loss. In addition to λ < Θ ( 1 t ) \lambda<\Theta\left(\frac{1}{t}\right) λ < Θ ( t 1 ) as discussed, the terminal stage requires Δ ε = Θ ( t q b ∗ q g ∗ ) = Θ ( t p b p g ) \Delta\varepsilon=\Theta\left(t\frac{q_b^*}{q_g^*}\right)=\Theta\left(t\frac{p_b}{p_g}\right) Δ ε = Θ ( t q g ∗ q b ∗ ) = Θ ( t p g p b ) per successful update. Therefore, the total cost of the algorithm is ε ≥ Θ ( t min { t , ln 1 δ } p b p g ) \varepsilon\ge\Theta\left(t\min\left\{t,\ln\frac{1}{\delta}\right\}\frac{p_b}{p_g}\right) ε ≥ Θ ( t min { t , ln δ 1 } p g p b ) . As in the depolarizing case, we can then relax Δ ε \Delta\varepsilon Δ ε to keep the cost polynomial.
Let us take stock. Under depolarizing noise, the intermediate mode succeeds whenever λ ≲ 0.159 \lambda\lesssim0.159 λ ≲ 0.159 (for n ≫ t n\gg t n ≫ t ) at a cost of O ( 2 t ⋅ poly ) O(2^t\cdot\operatorname{poly}) O ( 2 t ⋅ poly ) time, and the clean mode brings this down to polynomial time once the accuracy budget additionally satisfies ε ≳ C t n − t 1 − ( 1 − λ ) 4 ( 1 − λ ) 4 \varepsilon\gtrsim C\frac{t}{n-t}\frac{1-(1-\lambda)^4}{(1-\lambda)^4} ε ≳ C n − t t ( 1 − λ ) 4 1 − ( 1 − λ ) 4 (Theorems VIII.4 and VIII.5). Under arbitrary Pauli noise, post-selection may no longer suppress bad samples as S ~ \widetilde{S} S grows, and the thresholds tighten to λ ≤ Θ ( 1 / t ) \lambda\le\Theta(1/t) λ ≤ Θ ( 1/ t ) and ε ≥ Θ ( t λ min { t , ln 1 δ } ) \varepsilon\ge\Theta\left(t\lambda\min\left\{t,\ln\frac{1}{\delta}\right\}\right) ε ≥ Θ ( t λ min { t , ln δ 1 } ) (Theorems VIII.8 and VIII.9). Beyond these thresholds, the top-down algorithm of Sec. VI.A remains available at cost O ( 4 t ⋅ poly ) O(4^t\cdot\operatorname{poly}) O ( 4 t ⋅ poly ) as long as the purity γ \gamma γ is bounded below by a constant. These boundaries are the regime diagram of Figure 2 .
Numerical Results
Having established the guarantees of the up-down finder, we now test them numerically. Sec. IX A describes how we generate the samples and what we measure. Sec. IX B studies the first batch under global depolarizing noise, where Sec. VIII C places the noise threshold, and repeats the study with a verifier that works from Bell samples. Sec. IX C adds near-stabilizers to the input state and maps out the clean and intermediate regimes. Sec. IX D replaces global noise by two-qubit gate noise and runs the intermediate mode to completion.
Simulation Method
Every simulation starts from an ideal state ∣ ψ ⟩ = C ( ∣ ϕ ⟩ ⊗ ∣ 0 ⟩ ⊗ ( n − t ) ) |\psi\rangle= C\left(|\phi\rangle\otimes|0\rangle^{\otimes(n-t)}\right) ∣ ψ ⟩ = C ( ∣ ϕ ⟩ ⊗ ∣0 ⟩ ⊗ ( n − t ) ) , where C C C is a Clifford encoder and the core ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ has t t t qubits and stabilizer nullity ν ≤ t \nu\le t ν ≤ t . A Pauli channel E \mathcal{E} E then gives the noisy state ρ = E ( ψ ) \rho= \mathcal{E}(\psi) ρ = E ( ψ ) . Rather than simulating Bell measurements on pairs of copies, we sample Bell differences directly. One Bell difference sample consumes four copies of ρ \rho ρ , two for each Bell sample, and each copy carries an independent error drawn from E \mathcal{E} E . Denote the Pauli coefficients of ψ \psi ψ by a j ′ a'_j a j ′ and the fidelities of E \mathcal{E} E by f j f_j f j , as in Eq. (13) . Eq. (27) then gives
P B e l l D i f f ρ ( i ) = 4 n ∑ j ∈ P n ( − 1 ) ⟨ i , j ⟩ f j 4 ( a j ′ ) 2 = ∑ k ∈ P n q k ( 4 ) P B e l l D i f f ψ ( i + k ) . (93) P_{\mathrm{BellDiff}}^{\rho}(i) = 4^n \sum_{j \in\mathbb{P}_n} (-1)^{\langle i,j\rangle} f_j^4 (a'_j)^2 = \sum_{k \in\mathbb{P}_n} q_k^{(4)} P_{\mathrm{BellDiff}}^{\psi}(i+k). \tag*{(93)} P BellDiff ρ ( i ) = 4 n j ∈ P n ∑ ( − 1 ) ⟨ i , j ⟩ f j 4 ( a j ′ ) 2 = k ∈ P n ∑ q k ( 4 ) P BellDiff ψ ( i + k ) . (93)
where q ( 4 ) q^{(4)} q ( 4 ) is the distribution of k = k 1 + k 2 + k 3 + k 4 k = k_1 + k_2 + k_3 + k_4 k = k 1 + k 2 + k 3 + k 4 , the sum of the four error labels. In other words, a noisy sample is an ideal sample shifted by four independent errors, some of which may be the identity. For global depolarizing noise, the shift vanishes with probability ( 1 − λ ) 4 (1-\lambda)^4 ( 1 − λ ) 4 and is otherwise uniform, as in Sec. VIII C. We draw the ideal samples from the 4 t 4^t 4 t Pauli expectation values of the core. A Clifford encoder acts on Pauli labels by a symplectic map, which preserves spans, radicals and projected purities. We therefore work in the unencoded frame, where the target contains S 0 = ⟨ Z t + 1 , … , Z n ⟩ S_0 = \langle Z_{t+1}, \ldots, Z_n\rangle S 0 = ⟨ Z t + 1 , … , Z n ⟩ , and map gate errors into this frame.
For each batch B B B , we compute the radical R = rad ( B ) R = \operatorname{rad}(B) R = rad ( B ) and the number ℓ = dim ( R ∩ S 0 ) \ell= \dim(R \cap S_0) ℓ = dim ( R ∩ S 0 ) of target directions it contains. When ν < t \nu< t ν < t , the target also contains stabilizers of the core, so counting only S 0 S_0 S 0 is conservative. In the intermediate mode, a batch with ℓ ≥ 1 \ell\ge1 ℓ ≥ 1 yields an accepted update as soon as a uniform draw from R R R lands in S S S , and we call such a batch successful. In the clean mode, we also compute the exact purity loss Δ γ ( R ) \Delta\gamma(R) Δ γ ( R ) from the Pauli expectation values of the core. Thus, except in Figure 9 (d), the verifier is replaced by exact projected purities. Figure 9 (d) instead runs Algorithm 3 on N N N Bell samples of ρ \rho ρ , drawn independently of the samples used by the finder.
Figure 9. First batch under global depolarizing noise. Product-state-T T T cores, Eq. (95) , with ν = t \nu=t ν = t . Success means that the radical of one batch contains a target direction, ℓ ≥ 1 \ell\ge1 ℓ ≥ 1 . (a) Success probability against the batch size M M M at n / ν = 8 n/\nu=8 n / ν = 8 and λ = 0.11 \lambda=0.11 λ = 0.11 , with the window W \mathcal{W} W of Eq. (94) shaded; 100–300 independent batches per point. (b) Success rate maximized over M M M , against λ \lambda λ , at n / ν = 8 n/\nu=8 n / ν = 8 . (c) Noise strength λ c \lambda_c λ c at which the maximized success probability equals 1 2 \frac{1}{2} 2 1 . The solid curve is λ ⋆ ( n , ν ) \lambda^\star(n,\nu) λ ⋆ ( n , ν ) and the dotted line its limit 1 − 2 − 1 / 4 1-2^{-1/4} 1 − 2 − 1/4 ; diamonds are Haar-random ν \nu ν -qubit cores with 6 ≤ ν ≤ 10 6\le\nu\le10 6 ≤ ν ≤ 10 . (d) First update with Algorithm 3 on N N N Bell samples, at n = 64 n=64 n = 64 and ν = 8 \nu=8 ν = 8 , with Δ ϵ + = 0.01 \Delta\epsilon_+=0.01 Δ ϵ + = 0.01 , L = 1024 L=1024 L = 1024 and 360 batches per point. For each N N N , M M M maximizes the probability of a correct update. Solid lines give that probability and dashed lines the probability of a false acceptance at the same M M M ; dotted lines give the exact verifier. Open triangles mark settings without any false acceptance, plotted at the 1 σ 1\sigma 1 σ upper limit. Bands and bars are 1 σ 1\sigma 1 σ intervals (Sec. IX A).
The batch sizes of Lemmas VII.5 and VII.6 depend on the bound q g ∗ q_g^* q g ∗ . We scan M M M and report the best value, which can only overstate the success of a fixed rule. Each trial draws one independent stream of samples, and its batch of size M M M consists of the first M M M samples of that stream. Different trials are therefore independent, while the batches of one trial at different M M M are nested; only in Figure 9 (d) does each M M M use fresh batches. A success probability at fixed M M M is the fraction of successful trials. The rule itself is available in practice: under global depolarizing noise, q g ∗ = ( 1 − λ ) 4 q_g^* = (1-\lambda)^4 q g ∗ = ( 1 − λ ) 4 equals γ 2 \gamma^2 γ 2 up to O ( 2 − n ) O(2^{-n}) O ( 2 − n ) , and the purity γ \gamma γ can be estimated from the verifier’s Bell samples (Sec. VIII C). Averaged over the verifier datasets of Figure 9 (d) with N = 10 4 N = 10^4 N = 1 0 4 , this estimate of q g ∗ q_g^* q g ∗ agrees with ( 1 − λ ) 4 (1-\lambda)^4 ( 1 − λ ) 4 to within 0.1 % 0.1\% 0.1% at every λ \lambda λ ; the scans themselves use the exact value. All error bars and bands are 1 σ 1\sigma 1 σ (68 % 68\% 68% ) intervals computed from the simulations themselves. For success probabilities, which include cases with no observed events, we use the Wilson interval: for an estimate p ^ \hat{p} p ^ from N N N trials, it contains every p p p with ∣ p ^ − p ∣ ≤ p ( 1 − p ) / N |\hat{p}-p| \le\sqrt{p(1-p)/N} ∣ p ^ − p ∣ ≤ p ( 1 − p ) / N , and so keeps a nonzero width when none or all of the trials succeed. Where we maximize over M M M or locate a threshold, we resample the success count at each M M M independently from its observed rate and repeat the maximization; this parametric bootstrap ignores the correlation between the nested batches of one trial. In Figure 10 and Figure 11 (a,Figure 11 b), we bootstrap over the random cores or encoders. Where a value of M M M or an iteration is selected from the data, as in Figure 9 (d) and Figure 11 (c,Figure 11 d), the interval is that of the selected cell and does not account for the selection.
Figure 10. Measured first-batch regimes with near-stabilizers under global depolarizing noise; compare Figure 2 , noting the logarithmic ϵ \epsilon ϵ axis. The cores have t = 8 t = 8 t = 8 qubits and ν = 7 \nu= 7 ν = 7 , and are built from blocks of three random all-to-all CNOT layers, interleaved with eight R z ( θ k ) R_z(\theta_k) R z ( θ k ) insertions, Eq. (96) : (a,c) equal angles, θ k = 0.15 \theta_k = 0.15 θ k = 0.15 ; (b,d) decreasing angles, θ k = π / 2 k + 1 \theta_k = \pi/2^{k+1} θ k = π / 2 k + 1 . Rows: n = 64 n = 64 n = 64 and n = 256 n = 256 n = 256 . Regions follow the classification in the text with Δ ϵ = ϵ \Delta\epsilon= \epsilon Δ ϵ = ϵ . Solid lines are the measured boundaries, with 1 σ 1\sigma 1 σ bands from a bootstrap over cores, and dotted lines the coverage prediction of the text. Dashed lines are the leading-order boundaries of Theorems VIII.4 and VIII.5 with C = 1 C = 1 C = 1 and t = ν t = \nu t = ν . The hatched region is where the explicit clean-mode schedule of Appendix E passes its check, Eq. (144) , with t = ν t = \nu t = ν and δ = 0.1 \delta= 0.1 δ = 0.1 ; gray marks the region excluded by Assumption IV.6. Each core is an independently drawn circuit, simulated with 32 independent trials per noise strength. Equal angles use 77 cores at n = 64 n = 64 n = 64 and 37 at n = 256 n = 256 n = 256 (77 for λ ≥ 0.09 \lambda\ge0.09 λ ≥ 0.09 , where we added cores near the intermediate and noisy boundaries); decreasing angles use 64 and 32 (64) with 100 independent trials each.
Figure 11. Two-qubit gate noise. Brickwork Clifford encoders of depth D D D on an open chain, with two-qubit depolarizing noise of rate p p p after every CNOT and L L L noisy gates per copy; black lines show global depolarizing noise. (a) Best first-batch success at n = 16 n = 16 n = 16 and t = 4 t = 4 t = 4 against the total error probability per copy; the dotted line marks λ ⋆ ( 16 , 4 ) \lambda^{\star}(16, 4) λ ⋆ ( 16 , 4 ) . (b) Total error probability at which the best first-batch success equals 1 2 \frac{1}{2} 2 1 against D D D ; horizontal lines show global depolarizing noise. (c,d) Complete intermediate-mode runs at ( n , t ) = ( 16 , 4 ) (n, t) = (16, 4) ( n , t ) = ( 16 , 4 ) and ( 32 , 8 ) (32, 8) ( 32 , 8 ) . Solid lines give the per-batch success of the first iteration, the fraction of its batches that succeed, pooled over runs; dashed lines give the lowest such rate among later iterations. The horizontal axis is 1 − e − p L 1 - e^{-pL} 1 − e − p L (Sec. IX D). Later iterations are shown only where at least 10 runs reached them, and an iteration that needs more than 60 batches ends the run. Bands and bars are 1 σ 1\sigma 1 σ intervals, from a bootstrap over the 24 encoders in (a,b) and, in (c,d), from Wilson intervals over the pooled batches, which omit variation between encoders.
First Batch under Global Depolarizing Noise
At the first iteration, S ~ = { I } \widetilde{S} = \{I\} S = { I } , q g ∗ = ( 1 − λ ) 4 q_g^* = (1-\lambda)^4 q g ∗ = ( 1 − λ ) 4 and q b ∗ = 1 − ( 1 − λ ) 4 q_b^* = 1-(1-\lambda)^4 q b ∗ = 1 − ( 1 − λ ) 4 . Without the confidence margins of Eq. (52) , Lemma VII.5 with t = ν t=\nu t = ν requires a batch size in the window
W = [ n + ν q g ∗ , n − ν q b ∗ ] , λ ∗ ( n , ν ) = 1 − ( n + ν 2 n ) 1 / 4 . (94) \mathcal{W} = \left[\frac{n+\nu}{q_g^*},\frac{n-\nu}{q_b^*}\right], \qquad\lambda^*(n,\nu) = 1-\left(\frac{n+\nu}{2n}\right)^{1/4}. \tag*{(94)} W = [ q g ∗ n + ν , q b ∗ n − ν ] , λ ∗ ( n , ν ) = 1 − ( 2 n n + ν ) 1/4 . (94)
The window is nonempty exactly when λ < λ ⋆ ( n , ν ) \lambda< \lambda^\star(n,\nu) λ < λ ⋆ ( n , ν ) . This is the intermediate–noisy boundary of Figure 2 , and it tends to 1 − 2 − 1 / 4 ≈ 0.159 1 - 2^{-1/4} \approx0.159 1 − 2 − 1/4 ≈ 0.159 as ν / n → 0 \nu/n \to0 ν / n → 0 . We test it on product-magic states,
∣ ψ ⟩ = C [ ( T ∣ + ⟩ ) ⊗ t ⊗ ∣ 0 ⟩ ⊗ ( n − t ) ] , ν = t . (95) |\psi\rangle= C\left[(T|+\rangle)^{\otimes t}\otimes|0\rangle^{\otimes(n-t)}\right], \qquad\nu= t. \tag*{(95)} ∣ ψ ⟩ = C [ ( T ∣ + ⟩ ) ⊗ t ⊗ ∣0 ⟩ ⊗ ( n − t ) ] , ν = t . (95)
Figure 9 (a) shows how the success probability depends on the batch size at n / ν = 8 n/\nu= 8 n / ν = 8 and λ = 0.11 \lambda= 0.11 λ = 0.11 . With too few samples, the span has not yet reached S S S and the radical contains no target direction. With too many, bad samples reduce the radical to { I } \{I\} { I } . In between, success is close to one. The window W W W lies inside this range, but success already begins below its lower edge, so W W W is a sufficient range rather than the exact one.
Figure 9 (b) shows the success probability, maximized over M M M , as a function of λ \lambda λ . At fixed n / ν = 8 n/\nu= 8 n / ν = 8 , the threshold λ ⋆ = 0.134 \lambda^\star= 0.134 λ ⋆ = 0.134 is the same for every n n n . We find that the curves cross near λ ⋆ \lambda^\star λ ⋆ and steepen as n n n grows. Let λ c ( n , ν ) \lambda_c(n,\nu) λ c ( n , ν ) be the noise strength at which the maximized success probability equals 1 2 \frac{1}{2} 2 1 . Figure 9 (c) compares λ c \lambda_c λ c with λ ⋆ \lambda^\star λ ⋆ over a wide range of n / ν n/\nu n / ν . For n ≥ 512 n \ge512 n ≥ 512 and 2 ≤ n / ν ≤ 256 2 \le n/\nu\le256 2 ≤ n / ν ≤ 256 , the two agree to within 0.001. Haar-random cores agree with λ ⋆ \lambda^\star λ ⋆ to within about 0.008, so the threshold is not specific to product cores.
Finally, Figure 9 (d) replaces the exact verifier by Algorithm 3 with noisy verification samples, at n = 64 n = 64 n = 64 and ν = 8 \nu= 8 ν = 8 , with Δ ε − = 0 \Delta\varepsilon_- = 0 Δ ε − = 0 and Δ ε + = 0.01 \Delta\varepsilon_+ = 0.01 Δ ε + = 0.01 . The finder draws up to L = 1024 L = 1024 L = 1024 elements of R R R and stops at the first one the verifier approves. Two kinds of error can occur. A false acceptance approves a candidate outside S S S and adds a generator that the algorithm cannot remove later. A false rejection discards a correct candidate and only costs further draws. With N = 10 N = 10 N = 10 Bell samples, false acceptances occur in up to about 7% of batches. For N ≥ 30 N \ge30 N ≥ 30 , we ran 55 settings, one for each combination of N N N and λ ∈ { 0.06 , 0.07 , … , 0.16 } \lambda\in\{0.06, 0.07, \ldots, 0.16\} λ ∈ { 0.06 , 0.07 , … , 0.16 } , with 360 batches each, and observed 1 false acceptance in total at the values of M M M shown. Compared with the exact verifier, the probability of a correct update is lower by no more than about 0.08 for every N N N , and about 0.01 at N = 10 4 N = 10^4 N = 1 0 4 . This gap includes false rejections and, at small N N N , false acceptances that preempt a correct update. For this family, the exact verifier is therefore a mild idealization. This is expected: every wrong candidate costs a purity loss of at least ( 1 − λ ) 2 / 4 (1-\lambda)^2/4 ( 1 − λ ) 2 /4 , far above the threshold Δ ε + \Delta\varepsilon_+ Δ ε + .
For product-T T T cores, every Pauli outside S S S costs a purity loss of at least ( 1 − λ ) 2 / 4 (1-\lambda)^2/4 ( 1 − λ ) 2 /4 . An exact verifier then accepts a whole radical exactly when R ⊆ S R \subseteq S R ⊆ S , and the accuracy condition of Theorem VIII.5 never triggers. The condition matters when the core has near-stabilizers, that is, Paulis outside S S S whose imposition costs little purity.
We build such cores on t = 8 t = 8 t = 8 qubits from nine Clifford blocks interleaved with eight single-qubit rotations,
∣ ϕ ⟩ = C 9 R z ( q 8 ) ( θ 8 ) C 8 ⋯ C 2 R z ( q 1 ) ( θ 1 ) C 1 ∣ 0 ⟩ ⊗ 8 , (96) |\phi\rangle= C_9R_z^{(q_8)}(\theta_8)C_8\cdots C_2R_z^{(q_1)}(\theta_1)C_1|0\rangle^{\otimes8}, \tag*{(96)} ∣ ϕ ⟩ = C 9 R z ( q 8 ) ( θ 8 ) C 8 ⋯ C 2 R z ( q 1 ) ( θ 1 ) C 1 ∣0 ⟩ ⊗ 8 , (96)
where each rotation acts on a uniformly random qubit q k q_k q k . Each block C k C_k C k consists of three random all-to-all CNOT layers. In each layer, every qubit first receives a single-qubit Clifford word H a S b H c H^aS^bH^c H a S b H c with independent uniformly random bits a , b , c a,b,c a , b , c , and four randomly oriented CNOTs then act on randomly chosen disjoint pairs of qubits. We use two angle schedules. For equal angles, θ k = 0.15 \theta_k = 0.15 θ k = 0.15 , near-stabilizer losses are typically about sin 2 ( 0.15 ) / 2 ≈ 0.011 \sin^2(0.15)/2 \approx0.011 sin 2 ( 0.15 ) /2 ≈ 0.011 . For decreasing angles, θ k = π / 2 k + 1 \theta_k = \pi/2^{k+1} θ k = π / 2 k + 1 with k = 1 , … , 8 k = 1,\ldots,8 k = 1 , … , 8 , they shrink roughly geometrically, by about a factor of four per near-stabilizer. We keep only cores with ν = 7 \nu= 7 ν = 7 , which have one exact stabilizer and seven near-stabilizers; we compute ν \nu ν exactly from the 4 8 4^8 4 8 Pauli expectation values. Each core is an independently drawn circuit. The cores are encoded into n = 64 n = 64 n = 64 and n = 256 n = 256 n = 256 qubits; as explained in Sec. IX A, the choice of Clifford encoder does not affect any quantity we measure under global depolarizing noise.
For the first update, we set Δ ε = ε \Delta\varepsilon= \varepsilon Δ ε = ε . For each core and noise strength, we run 32 independent trials and average the outcomes over trials and cores. We call ( λ , ε ) (\lambda,\varepsilon) ( λ , ε ) clean if, for some M M M , the whole radical is accepted and contains a target direction with probability at least 1 2 \frac{1}{2} 2 1 . We call it intermediate if this fails but ℓ ≥ 1 \ell\ge1 ℓ ≥ 1 with probability at least 1 2 \frac{1}{2} 2 1 for some M M M , and noisy otherwise. This classification tests a single batch of Lemma VII.6 with M M M scanned, not the explicit clean-mode schedule of Appendix E. Figure 10 shows the measured regimes. The noisy boundary follows λ c ( n , 7 ) \lambda_c(n,7) λ c ( n , 7 ) to within about 0.004 for both families. For equal angles, an intermediate region appears at n = 64 n = 64 n = 64 above λ ≈ 0.100 \lambda\approx0.100 λ ≈ 0.100 and is absent at n = 256 n = 256 n = 256 . For decreasing angles, the intermediate region lies below an edge that rises with λ \lambda λ in steps, one per near-stabilizer, and it moves down as n n n grows.
A simple coverage argument predicts these edges without fitted parameters. A near-stabilizer of loss Δ \Delta Δ leaves the radical once a good sample anticommutes with it, which happens with probability about 2 Δ 2\Delta 2Δ per good sample. The largest useful batch is the upper edge of W W W , so a batch contains about q g ⋆ ( n − ν ) / q b ⋆ q_g^\star(n-\nu)/q_b^\star q g ⋆ ( n − ν ) / q b ⋆ good samples. The whole radical is accepted if the near-stabilizers that remain in it have a total loss of at most ε \varepsilon ε , after rescaling by ( 1 − λ ) 2 (1-\lambda)^2 ( 1 − λ ) 2 . We evaluate this condition with the measured near-stabilizer losses of each core and obtain the dotted lines in Figure 10 . The prediction falls below the measured edge just under λ ⋆ \lambda^\star λ ⋆ , where the window W W W closes and the largest useful batch is overestimated, and it places the onset of the equal-angle region slightly late. The argument also explains the dependence on n n n : larger n n n allows larger batches, which remove weaker near-stabilizers. Finally, the measured clean region extends well beyond the boundaries of Theorem VIII.5, which assumes the worst-case loss spectrum. The explicit schedule of Appendix E certifies a smaller region still: for any ε \varepsilon ε , only λ ≲ 0.04 \lambda\lesssim0.04 λ ≲ 0.04 at n = 64 n = 64 n = 64 and λ ≲ 0.12 \lambda\lesssim0.12 λ ≲ 0.12 at n = 256 n = 256 n = 256 , while the measured noisy boundary lies near λ ⋆ \lambda^\star λ ⋆ . The difference comes from the finite-size factors that the leading-order lines drop: the constant C = t ˉ / t C=\bar{t}/t C = t ˉ / t of the appendix, about 1.9 at t = 7 t=7 t = 7 , the verifier slack κ \kappa κ , and the confidence margins of each batch, the last two of which shrink only slowly with n n n .
Two-Qubit Gate Noise
The guarantees for arbitrary Pauli noise, Theorems VIII.8 and VIII.9, assume nothing about the error distribution. Gate noise in a shallow circuit, by contrast, is a structured Pauli channel. We prepare ( T ∣ + ⟩ ) ⊗ t ⊗ ∣ 0 ⟩ ⊗ ( n − t ) (T\lvert+\rangle)^{\otimes t}\otimes\lvert0\rangle^{\otimes(n-t)} ( T ∣ + ⟩ ) ⊗ t ⊗ ∣ 0 ⟩ ⊗ ( n − t ) with ( n , t ) = ( 16 , 4 ) (n,t)=(16,4) ( n , t ) = ( 16 , 4 ) , ( 32 , 4 ) (32,4) ( 32 , 4 ) and ( 32 , 8 ) (32,8) ( 32 , 8 ) , so that ν = t \nu=t ν = t , and apply a Clifford encoder of D ∈ { 1 , 2 , 4 , 8 , 16 } D\in\{1,2,4,8,16\} D ∈ { 1 , 2 , 4 , 8 , 16 } brickwork layers. Each layer applies random single-qubit Clifford gates and then CNOT gates, each with a random control, on alternating nearest-neighbor pairs of an open chain whose first t t t qubits carry the core. After each CNOT, two-qubit depolarizing noise applies one of the 15 nonidentity two-qubit Paulis with total probability p p p . Single-qubit gates, state preparation and the Bell measurement are ideal. We report the noise by the total error probability of the Pauli channel that each copy undergoes, as defined in Sec. II A 2: the probability that the faults of one copy, propagated to its output, multiply to a nonidentity Pauli. For global depolarizing noise this is λ ( 1 − 4 − n ) \lambda(1-4^{-n}) λ ( 1 − 4 − n ) , so the two noise models are compared at equal total error probability. Each point in Figure 11 (a,Figure 11 b) averages over 24 random encoders
The complete runs of Figure 11 (c,Figure 11 d) and the connectivity study below instead set the noise by 1 − e − p L 1 - e^{-pL} 1 − e − p L , where L L L is the number of noisy gates per copy, which differs from the total error probability by less than 0.02 over the range shown.
Figure 11 (a) shows the first-batch success at n = 16 n = 16 n = 16 and t = 4 t = 4 t = 4 . For this encoder, gate noise is less harmful than global depolarizing noise with the same total error probability. The best first-batch success equals 1 2 \frac{1}{2} 2 1 at a total error probability of 0.32 for depth 1 and 0.16 for depth 16, compared with 0.118 for global noise and λ ⋆ ( 16 , 4 ) = 0.111 \lambda^\star(16, 4) = 0.111 λ ⋆ ( 16 , 4 ) = 0.111 . Figure 11 (b) shows the same trend for all three sizes; at depth 16, the thresholds lie between 0.16 and 0.18. The advantage shrinks with depth because a deeper encoder spreads each fault over more qubits. In the unencoded frame, a single fault acts on 1.6 qubits on average at depth 1 and on 5.7 at depth 16. Over the same range, the fraction of faults that leave the sample in C ( S ) C(S) C ( S ) , and so do no harm, falls from 40% to 12%. The errors thus become closer to uniform, and the threshold approaches that of global noise.
The brickwork encoder spreads a fault by at most one site per layer and places the core at one end of the chain. Repeating the first-batch study at n = 16 n = 16 n = 16 and t = 4 t = 4 t = 4 (16 encoders per depth, 100 trials each), placing the core at random positions changes each threshold by at most 0.011. Replacing the nearest-neighbor pairs by a uniformly random perfect matching of all n n n qubits leaves the thresholds at D ≤ 2 D \le2 D ≤ 2 within 0.011 but lowers them at larger depth, to 0.126 at depth 16, compared with 0.156 for brickwork in the same runs and 0.118 for global noise. The depth dependence in Figure 11 (b) thus reflects one-dimensional connectivity: an encoder that spreads faults faster brings gate noise closer to global depolarizing noise, as expected for well-scrambling circuits [48 ] . For every encoder we tested, gate noise was no more harmful than global depolarizing noise with the same total error probability.
Under global depolarizing noise, the first batch is the hardest. Later batches are post-selected on C ( S ~ ) C(\widetilde{S}) C ( S ) , and because a bad sample is uniformly random, each accepted generator removes half of the bad samples while keeping every good one (§ 1.7 C). For an arbitrary Pauli channel this need not happen, because errors that commute with S ~ \widetilde{S} S survive post-selection, so a later iteration can have as many bad samples as the first (§ 1.7 D). Gate noise lies between these two cases, so we test it directly. We run the intermediate mode to completion. In each iteration, it accepts a uniformly random valid update: a Pauli that lies in the target S S S , is not yet in S ~ \widetilde{S} S , and lies in the radical of the batch up to elements of S ~ \widetilde{S} S ; i.e., a uniformly random element of ( R + S ~ ) ∩ S (R + \widetilde{S}) \cap S ( R + S ) ∩ S outside S ~ \widetilde{S} S . We draw this update directly from the known target, which needs an exact verifier with an unlimited proposal budget. Each batch contains M = ⌈ C ( n − dim S ~ + t ) / p g ⌉ M = \lceil C(n - \dim\widetilde{S} + t)/p_g \rceil M = ⌈ C ( n − dim S + t ) / p g ⌉ samples before post-selection, where p g p_g p g is the probability of a good sample, estimated from 3000 samples classified against the known target; C = 1 C = 1 C = 1 except in the end stage ν ~ − t ≤ 2 \widetilde{\nu} - t \le2 ν − t ≤ 2 of Lemma VII.5, where C = 1.5 C = 1.5 C = 1.5 . Figure 11 (c,Figure 11 d) compare the first iteration with the hardest later one, with 120 runs per point. Of the 60 settings (both sizes; D ∈ { 1 , 4 , 16 } D \in\{1, 4, 16\} D ∈ { 1 , 4 , 16 } ) and global noise; noise in steps of 0.05), 47 have a later iteration that lasts at least 10 runs reached. A later iteration succeeds less often than the first in only two cases: in 2 settings where both succeed less than 1% of the time, and in 17 settings with first-iteration success above 0.8, where one of the last four iterations falls short by up to 0.10.
This also happens once under global depolarizing noise, so we attribute it to the batch-size rule near the end of a run, when few target directions remain, rather than to errors that survive post-selection. Wherever the first iteration limits success, it remains the bottleneck under brickwork gate noise, as under global depolarizing noise. We do not repeat the complete runs for the other encoders.
Scope
Except for Figure 9 (d), our simulations use exact projected purities. They therefore test the finder rather than the sample cost of the verifier, Theorem V.4 . We test the sample-based verifier only for product-T T T cores, whose wrong candidates carry a large purity loss. Near-stabilizer cores, for which the verifier must resolve losses of order ε \varepsilon ε , remain to be tested. The complete runs of Figure 11 (c,Figure 11 d) draw each update directly from the known target, so they test neither a finite proposal budget L L L nor the number of verifier queries. Neither the worst-case channels behind Theorems VIII.8 and VIII.9 nor coherent errors or noisy Bell measurements are simulated. We also do not run the explicit clean-mode schedule of Appendix E; Figure 10 shows only where it is certified.
Conclusion and Outlook
For pure states, stabilizer learning takes a single step: span enough Bell difference samples and compute the radical. Under noise, each part of this step fails, and most of this paper is spent repairing them. First, the span can no longer be trusted, because bad samples shrink its radical, so every update must be certified. Our verifier does this from one set of Bell samples with a guarantee that holds uniformly over all queries, so the finder may choose its queries adaptively (Theorem V.4 ). Second, certification alone is slow: proposing samples one at a time works at any noise strength but costs 4 t 4^t 4 t (Theorem VI.2). Recovering polynomial cost requires spanning batches again, which works because bad samples degrade the radical one direction at a time, and the radical extends beyond the target by at most t t t directions. Lemmas VII.5 and VII.6 identify batch sizes at which good samples reveal the target before bad samples corrupt the radical. Third, the verifier certifies purity while the finder sees only where samples fall. Lemma IV.4 connects the two: any loss of purity shows up as samples leaving the centralizer, which sets how many good samples a batch needs. Finally, § 1.7 chains batches into a full algorithm. Under depolarizing noise, each accepted direction halves the rate of bad samples in later batches, so the first iteration sets the noise thresholds, λ ≈ 0.159 \lambda\approx0.159 λ ≈ 0.159 and, for the clean mode, λ ≳ ε / 4 t \lambda\gtrsim\varepsilon/4t λ ≳ ε /4 t .
The learned structure has several uses, and in our clean and intermediate regimes it is learned from polynomially many noisy copies. Here λ \lambda λ is the total error probability of the channel; for independent single-qubit errors of probability p p p it equals 1 − ( 1 − p ) n 1-(1-p)^n 1 − ( 1 − p ) n , so our thresholds require p p p of order 1 / n 1/n 1/ n , or a channel whose total error probability is suppressed, such as the residual noise on an error-corrected code state. For encoded states, t t t can be taken as the number of logical qubits, and the learner characterizes the stabilizer structure a device actually prepares, a natural diagnostic in the early fault-tolerant era. The learned Clifford frame identifies the approximate low-nullity structure of the underlying pure state and supplies a structural ingredient for compressed tomography [9 , 10 ] . Recovering the ideal state additionally requires information about the channel, which we leave to future work. Finally, the nullity ν ~ ≤ ν \tilde{\nu} \leq\nu ν ~ ≤ ν bounds the number of T T T gates needed to prepare the ideal state, a noise-robust version of the bound of Ref. [10 ] that can serve as a benchmark of a device’s non-Clifford content.
Several questions remain open. Our results fall into three regimes, each served best by a different variant of the finder–verifier algorithm, which raises the issue of lower bounds and the optimality of learning weak stabilizers. Any lower bound exponential in t t t must be computational: with runtime exponential in n n n , polynomially many copies always suffice, because the verifier can check all 4 n 4^n 4 n Paulis as candidates (§ 1.4 B). A related question is whether a single algorithm can interpolate smoothly between the three regimes, and whether such an algorithm gives further insight into the expected lower bounds. More sophisticated finders may also use information from the Bell samples that ours discard, such as the Pauli overlaps ∣ tr ( σ ρ ) ∣ 2 \lvert\operatorname{tr}(\sigma\rho)\rvert^2 ∣ tr ( σ ρ ) ∣ 2 . On average, ∣ tr ( σ ρ ) ∣ \lvert\operatorname{tr}(\sigma\rho)\rvert ∣ tr ( σ ρ )∣ scales as 2 − t / 2 2^{-t/2} 2 − t /2 , so post-selecting on these overlaps, measured directly on single copies rather than through their squares in the Bell samples, may lead to a 2 t 2^t 2 t algorithm for the noisy regime. Finally, simulations indicate that the first-batch threshold λ ∗ ( n , ν ) \lambda^*(n,\nu) λ ∗ ( n , ν ) , which tends to 0.159 0.159 0.159 , is sharp for the up–down finder, with a transition that steepens as n n n grows (Sec. IX B). We do not know whether other finders can exceed it, or whether the Θ ( 1 / t ) \Theta(1/t) Θ ( 1/ t ) thresholds for Pauli channels are fundamental.
The noise model can also be refined and generalized. Coherent noise breaks even the weak asymmetries of a state, but a small rotation changes the approximate-stabilizer target only slightly. We therefore expect an approximate target to make learning more robust to coherent errors, not less. The finder would still need to be adapted, because a coherent rotation spreads the state’s Pauli weight outside C ( Stab ( ψ ) ) C(\operatorname{Stab}(\psi)) C ( Stab ( ψ )) , which our analysis of good and bad samples does not account for. Within Pauli noise, we analyzed two extremes: global depolarizing noise and worst-case Pauli channels. We expect realistic, average-case error distributions to fall between these two analyses, and the gap between them to narrow. For two-qubit depolarizing noise on the Clifford encoders we tested, the first batch even tolerates more total error than under global depolarizing noise, and the margin shrinks as the encoder spreads faults more widely. In complete runs under brickwork gate noise, later iterations were harder. than the first batch only near the end of a run, where the same happens under global depolarizing noise (Sec. IX D). For such distributions, post-selection may still work to a large extent, reducing bad samples down to the grain size of the error distribution, set by its heaviest errors that commute with every accepted generator. For some circuit families, such as random circuits, local noise is known to act on single-copy output distributions as global white noise [48 ] . Whether the same holds for the two-copy statistics of Bell sampling is open.
Acknowledgments
The authors thank Michael Gullans and Dominik Hangleiter for their contributions to the early development of this project, including discussions that motivated the study of Bell sampling in the presence of noise. We acknowledge helpful discussions with Daniel Spencer, Emil Khabiboulline, Timothy Connor Mooney, Kaiyan Shi, Zongbo Bao, Guoding Liu, and Qi Ye. L.T. was supported in part by funding through NSF QLCI award OMA-2120757. T.S. was supported by the NSF STAQ program and the U.S. Department of Energy, Office of Science; National Quantum Information Science Research Centers, Quantum Systems Accelerator (Award No. DE-SCL0000121).
The authors used OpenAI o3 to assist with equation-level derivations for an earlier perturbative argument for Lemma V.3 , and GPT-6-Astra (OpenAI) to develop it into an exact proof. GPT-5.6-Sol-Pro (OpenAI) was used to search the completed proofs for gaps and to develop the explicit clean-mode schedule of Appendix E. AI-assisted coding tools, Codex (OpenAI; GPT-5 through GPT-6.1 models) and Claude Code (Anthropic; Claude Opus 5.5 and Sonnet 5.5), were used to run the numerical simulations, to modify and debug the routines that process Bell and Bell difference samples, to implement the algorithm loops studied in Sec. IX, and to check the reported numerical results against the code and stored data. The direct sampling of Bell differences, Eq. (93) , was suggested by and developed with Claude Opus 5.5. AI tools were also used as writing aids, to prepare draft figures, and to assist with literature searches; all cited works were checked against the original sources. The authors directed and reviewed all AI-assisted material and take full responsibility for the content of this manuscript.
References
Bell-Sampling Identities and Deferred Proofs
This appendix collects the deferred Bell-sampling derivations from the main text.
Combinatorial Identities
Before the main derivations, we collect four identities on π Y \pi_Y π Y and the symplectic form ⟨ ⋅ , ⋅ ⟩ \langle\cdot,\cdot\rangle ⟨ ⋅ , ⋅ ⟩ that we use repeatedly below.
Lemma A.1. The following properties hold:
∀ i , j ∈ { 0 , 1 } 2 n \forall i,j \in\{0,1\}^{2n} ∀ i , j ∈ { 0 , 1 } 2 n , ( − 1 ) π Y ( i ) + π Y ( j ) + π Y ( i + j ) = ( − 1 ) ⟨ i , j ⟩ (-1)^{\pi_Y(i)+\pi_Y(j)+\pi_Y(i+j)}=(-1)^{\langle i,j\rangle} ( − 1 ) π Y ( i ) + π Y ( j ) + π Y ( i + j ) = ( − 1 ) ⟨ i , j ⟩ ;
Consider i , j ∈ { 0 , 1 } 2 n i,j \in\{0,1\}^{2n} i , j ∈ { 0 , 1 } 2 n such that ⟨ i , j ⟩ = 0 \langle i,j\rangle=0 ⟨ i , j ⟩ = 0 . Then π Y \pi_Y π Y is additive in Z 2 \mathbb{Z}_2 Z 2 in the sense that ( − 1 ) π Y ( i + j ) = ( − 1 ) π Y ( i ) + π Y ( j ) (-1)^{\pi_Y(i+j)}=(-1)^{\pi_Y(i)+\pi_Y(j)} ( − 1 ) π Y ( i + j ) = ( − 1 ) π Y ( i ) + π Y ( j )
∀ i ∈ { 0 , 1 } 2 n \forall i \in\{0,1\}^{2n} ∀ i ∈ { 0 , 1 } 2 n , ∑ j ∈ { 0 , 1 } 2 n ( − 1 ) ⟨ i , j ⟩ = 4 n δ i 0 \sum_{j\in\{0,1\}^{2n}}(-1)^{\langle i,j\rangle}=4^n\delta_{i0} ∑ j ∈ { 0 , 1 } 2 n ( − 1 ) ⟨ i , j ⟩ = 4 n δ i 0 ;
∀ i ∈ { 0 , 1 } 2 n \forall i \in\{0,1\}^{2n} ∀ i ∈ { 0 , 1 } 2 n , ∑ j ∈ { 0 , 1 } 2 n ( − 1 ) π Y ( j ) + ⟨ i , j ⟩ = 2 n ( − 1 ) π Y ( i ) \sum_{j\in\{0,1\}^{2n}}(-1)^{\pi_Y(j)+\langle i,j\rangle}=2^n(-1)^{\pi_Y(i)} ∑ j ∈ { 0 , 1 } 2 n ( − 1 ) π Y ( j ) + ⟨ i , j ⟩ = 2 n ( − 1 ) π Y ( i ) ;
Proof.
Property 1: First, we show that this statement is true for one qubit: a , b ∈ { 0 , 1 } 2 a,b\in\{0,1\}^2 a , b ∈ { 0 , 1 } 2 . σ a \sigma_a σ a and σ b \sigma_b σ b anticommute if and only if { σ a , σ b , σ a + b } = { X , Y , Z } \{\sigma_a,\sigma_b,\sigma_{a+b}\}=\{X,Y,Z\} { σ a , σ b , σ a + b } = { X , Y , Z } ; in this case, π Y ( σ a ) + π Y ( σ b ) + π Y ( σ a + b ) = 1 \pi_Y(\sigma_a)+\pi_Y(\sigma_b)+\pi_Y(\sigma_{a+b})=1 π Y ( σ a ) + π Y ( σ b ) + π Y ( σ a + b ) = 1 . Otherwise π Y ( σ a ) + π Y ( σ b ) + π Y ( σ a + b ) = 0 \pi_Y(\sigma_a)+\pi_Y(\sigma_b)+\pi_Y(\sigma_{a+b})=0 π Y ( σ a ) + π Y ( σ b ) + π Y ( σ a + b ) = 0 or 2 2 2 . Therefore the statement is true for one qubit.
Hence, this is true for all qubits because we can add the contributions from all the qubits in a string together. Given i ∈ { 0 , 1 } 2 n i\in\{0,1\}^{2n} i ∈ { 0 , 1 } 2 n , denote the k k k -th qubit component by i k ∈ { 0 , 1 } 2 i_k\in\{0,1\}^2 i k ∈ { 0 , 1 } 2 , consisting of the k k k -th and ( k + n ) (k+n) ( k + n ) -th bits of i i i . So ( − 1 ) π Y ( i ) + π Y ( j ) + π Y ( i + j ) = ∏ k = 1 n ( − 1 ) π Y ( i k ) + π Y ( j k ) + π Y ( ( i + j ) k ) = ∏ k = 1 n ( − 1 ) ⟨ i k , j k ⟩ = ( − 1 ) ⟨ i , j ⟩ (-1)^{\pi_Y(i)+\pi_Y(j)+\pi_Y(i+j)}=\prod_{k=1}^{n}(-1)^{\pi_Y(i_k)+\pi_Y(j_k)+\pi_Y((i+j)_k)}=\prod_{k=1}^{n}(-1)^{\langle i_k,j_k\rangle}=(-1)^{\langle i,j\rangle} ( − 1 ) π Y ( i ) + π Y ( j ) + π Y ( i + j ) = ∏ k = 1 n ( − 1 ) π Y ( i k ) + π Y ( j k ) + π Y (( i + j ) k ) = ∏ k = 1 n ( − 1 ) ⟨ i k , j k ⟩ = ( − 1 ) ⟨ i , j ⟩ .
Property 2: The second property is a special case of the first property in the event that σ i \sigma_i σ i and σ j \sigma_j σ j commute.
Property 3: The third property comes from the fact that for any Pauli σ i \sigma_i σ i except the identity, exactly half of all the possible Paulis σ j \sigma_j σ j commute with it, while the other half anticommute.
Property 4: First we establish:
∑ i ∈ P n ( − 1 ) π Y ( i ) = ∑ i ∈ P n ( − 1 ) ∑ k = 1 n π Y ( i k ) = ∏ k = 1 n ( ∑ i k ∈ { 0 , 1 } 2 ( − 1 ) π Y ( i k ) ) = 2 n (97) \sum_{i\in\mathcal{P}_n}(-1)^{\pi_Y(i)}
=
\sum_{i\in\mathcal{P}_n}(-1)^{\sum_{k=1}^{n}\pi_Y(i_k)}
=
\prod_{k=1}^{n}\left(\sum_{i_k\in\{0,1\}^2}(-1)^{\pi_Y(i_k)}\right)
=2^n \tag*{(97)} i ∈ P n ∑ ( − 1 ) π Y ( i ) = i ∈ P n ∑ ( − 1 ) ∑ k = 1 n π Y ( i k ) = k = 1 ∏ n i k ∈ { 0 , 1 } 2 ∑ ( − 1 ) π Y ( i k ) = 2 n (97)
With this, we find:
∑ j ∈ P n ( − 1 ) π Y ( j ) + ⟨ i , j ⟩ = ∑ j ∈ P n ( − 1 ) π Y ( j ) + π Y ( i ) + π Y ( j ) + π Y ( i + j ) = ( − 1 ) π Y ( i ) ∑ j ∈ P n ( − 1 ) π Y ( i + j ) = 2 n ( − 1 ) π Y ( i ) (98) \begin{aligned}
\sum_{j\in\mathcal{P}_n}(-1)^{\pi_Y(j)+\langle i,j\rangle}
&=\sum_{j\in\mathcal{P}_n}(-1)^{\pi_Y(j)+\pi_Y(i)+\pi_Y(j)+\pi_Y(i+j)}\\
&=(-1)^{\pi_Y(i)}\sum_{j\in\mathcal{P}_n}(-1)^{\pi_Y(i+j)}\\
&=2^n(-1)^{\pi_Y(i)} \tag*{(98)}
\end{aligned} j ∈ P n ∑ ( − 1 ) π Y ( j ) + ⟨ i , j ⟩ = j ∈ P n ∑ ( − 1 ) π Y ( j ) + π Y ( i ) + π Y ( j ) + π Y ( i + j ) = ( − 1 ) π Y ( i ) j ∈ P n ∑ ( − 1 ) π Y ( i + j ) = 2 n ( − 1 ) π Y ( i ) (98)
Bell Sampling
We first derive Eq. (23) . Expanding both copies of ρ \rho ρ in Paulis and contracting the resulting tensor network collapses the double sum over ( j , k ) (j,k) ( j , k ) to a single sum over j j j :
P B e l l ( i ) = tr ( ∣ σ i ⟩ ⟨ σ i ∣ ( ρ ⊗ ρ ) ) = ∑ j , k ∈ { 0 , 1 } 2 n a j a k tr ( ∣ σ i ⟩ ⟨ σ i ∣ ( σ j ⊗ σ k ) ) = 1 2 n ∑ j , k ∈ { 0 , 1 } 2 n ( tensor-network contraction of a j a k ) = 1 2 n ∑ j , k ∈ { 0 , 1 } 2 n 2 n a j a k ( − 1 ) π Y ( k ) + ⟨ i , k ⟩ δ k j = ∑ j ∈ { 0 , 1 } 2 n ( − 1 ) π Y ( j ) + ⟨ i , j ⟩ a j 2 (99) \begin{aligned}
P_{\mathrm{Bell}}(i)&=\operatorname{tr}\left(\lvert\sigma_i\rangle\langle\sigma_i\rvert(\rho\otimes\rho)\right)\\
&=\sum_{j,k\in\{0,1\}^{2n}}a_j a_k\operatorname{tr}\left(\lvert\sigma_i\rangle\langle\sigma_i\rvert(\sigma_j\otimes\sigma_k)\right)\\
&=\frac{1}{2^n}\sum_{j,k\in\{0,1\}^{2n}}\left(\text{tensor-network contraction of }a_j a_k\right)\\
&=\frac{1}{2^n}\sum_{j,k\in\{0,1\}^{2n}}2^n a_j a_k(-1)^{\pi_Y(k)+\langle i,k\rangle}\delta_{kj}\\
&=\sum_{j\in\{0,1\}^{2n}}(-1)^{\pi_Y(j)+\langle i,j\rangle}a_j^2 \tag*{(99)}
\end{aligned} P Bell ( i ) = tr ( ∣ σ i ⟩ ⟨ σ i ∣ ( ρ ⊗ ρ ) ) = j , k ∈ { 0 , 1 } 2 n ∑ a j a k tr ( ∣ σ i ⟩ ⟨ σ i ∣ ( σ j ⊗ σ k ) ) = 2 n 1 j , k ∈ { 0 , 1 } 2 n ∑ ( tensor-network contraction of a j a k ) = 2 n 1 j , k ∈ { 0 , 1 } 2 n ∑ 2 n a j a k ( − 1 ) π Y ( k ) + ⟨ i , k ⟩ δ k j = j ∈ { 0 , 1 } 2 n ∑ ( − 1 ) π Y ( j ) + ⟨ i , j ⟩ a j 2 (99)
Bell sampling, through a filtered expectation, gives access to the projected purity γ ~ S \widetilde{\gamma}_S γ S . We restate Lemma V.1 from the main text and give its proof.
Lemma V.1 (restated). For a commuting candidate group S ~ = ⟨ g 1 , g 2 , … , g m ⟩ \widetilde{S}=\langle g_1,g_2,\ldots,g_m\rangle S = ⟨ g 1 , g 2 , … , g m ⟩ , Bell sampling gives
⟨ ( − 1 ) π Y ( i ) ∏ k = 1 m [ ( − 1 ) π Y ( g k ) + ⟨ g k , i ⟩ = 1 ] ⟩ i ∼ B e l l = γ S ~ (100) \left\langle(-1)^{\pi_Y(i)}\prod_{k=1}^{m}\left[(-1)^{\pi_Y(g_k)+\langle g_k,i\rangle}=1\right]\right\rangle_{i\sim\mathrm{Bell}}=\gamma_{\widetilde{S}} \tag*{(100)} ⟨ ( − 1 ) π Y ( i ) k = 1 ∏ m [ ( − 1 ) π Y ( g k ) + ⟨ g k , i ⟩ = 1 ] ⟩ i ∼ Bell = γ S (100) Proof. Property numbers below refer to Lemma A.1 . Here g 1 , … , g m g_1,\ldots,g_m g 1 , … , g m form an independent basis of S ~ \widetilde{S} S , so ∣ S ~ ∣ = 2 m \lvert\widetilde{S}\rvert=2^m ∣ S ∣ = 2 m and expanding the product gives each g ∈ S ~ g\in\widetilde{S} g ∈ S exactly once.
⟨ ( − 1 ) π Y ( i ) ∏ k = 1 m [ ( − 1 ) π Y ( g k ) + ⟨ g k , i ⟩ = 1 ] ⟩ i ∼ B e l l = ⟨ ( − 1 ) π Y ( i ) ∏ k = 1 m 1 2 ( 1 + ( − 1 ) π Y ( g k ) + ⟨ g k , i ⟩ ) ⟩ i ∼ B e l l = 1 2 m ∑ g ∈ S ~ ⟨ ( − 1 ) π Y ( i ) + π Y ( g ) + ⟨ g , i ⟩ ⟩ i ∼ B e l l = 2 n 2 m ∑ g ∈ S ~ ∑ i ∈ P n ( − 1 ) ⟨ g , i ⟩ a i 2 = 2 n ∑ i ∈ P n ( 1 2 m ∑ g ∈ S ~ ( − 1 ) ⟨ g , i ⟩ ) a i 2 = 2 n ∑ i ∈ P n [ σ i ∈ C ( S ~ ) ] a i 2 = γ S ~ . \begin{aligned}
\left\langle(-1)^{\pi_Y(i)}\prod_{k=1}^{m}\left[(-1)^{\pi_Y(g_k)+\langle g_k,i\rangle}=1\right]\right\rangle_{i\sim\mathrm{Bell}}
&=\left\langle(-1)^{\pi_Y(i)}\prod_{k=1}^{m}\frac{1}{2}\left(1+(-1)^{\pi_Y(g_k)+\langle g_k,i\rangle}\right)\right\rangle_{i\sim\mathrm{Bell}}\\
&=\frac{1}{2^m}\sum_{g\in\widetilde{S}}\left\langle(-1)^{\pi_Y(i)+\pi_Y(g)+\langle g,i\rangle}\right\rangle_{i\sim\mathrm{Bell}}\\
&=\frac{2^n}{2^m}\sum_{g\in\widetilde{S}}\sum_{i\in\mathcal{P}^n}(-1)^{\langle g,i\rangle}a_i^2\\
&=2^n\sum_{i\in\mathcal{P}^n}\left(\frac{1}{2^m}\sum_{g\in\widetilde{S}}(-1)^{\langle g,i\rangle}\right)a_i^2\\
&=2^n\sum_{i\in\mathcal{P}^n}\left[\sigma_i\in C(\widetilde{S})\right]a_i^2\\
&=\gamma_{\widetilde{S}}.
\end{aligned} ⟨ ( − 1 ) π Y ( i ) k = 1 ∏ m [ ( − 1 ) π Y ( g k ) + ⟨ g k , i ⟩ = 1 ] ⟩ i ∼ Bell = ⟨ ( − 1 ) π Y ( i ) k = 1 ∏ m 2 1 ( 1 + ( − 1 ) π Y ( g k ) + ⟨ g k , i ⟩ ) ⟩ i ∼ Bell = 2 m 1 g ∈ S ∑ ⟨ ( − 1 ) π Y ( i ) + π Y ( g ) + ⟨ g , i ⟩ ⟩ i ∼ Bell = 2 m 2 n g ∈ S ∑ i ∈ P n ∑ ( − 1 ) ⟨ g , i ⟩ a i 2 = 2 n i ∈ P n ∑ 2 m 1 g ∈ S ∑ ( − 1 ) ⟨ g , i ⟩ a i 2 = 2 n i ∈ P n ∑ [ σ i ∈ C ( S ) ] a i 2 = γ S . [Prop. 2] [Props. 1, 4]
Bell Difference Sampling
To justify the second equality of Eq. (27) , substitute P B e l l P_{\mathrm{Bell}} P Bell from Eq. (23) :
P B e l l D i f f ( i ) = ∑ j ∈ P n P B e l l ( j ) P B e l l ( i + j ) = ∑ j , k , l ∈ P n ( − 1 ) π Y ( k ) + π Y ( l ) + ⟨ j , k ⟩ + ⟨ i + j , l ⟩ a k 2 a l 2 = ∑ k , l ∈ P n ( − 1 ) π Y ( k ) + π Y ( l ) + ⟨ i , l ⟩ a k 2 a l 2 ∑ j ∈ P n ( − 1 ) ⟨ j , k + l ⟩ = 4 n ∑ k ∈ P n ( − 1 ) ⟨ i , k ⟩ a k 4 (101) \begin{aligned}
P_{\mathrm{BellDiff}}(i)&=\sum_{j\in\mathcal{P}^n}P_{\mathrm{Bell}}(j)P_{\mathrm{Bell}}(i+j)\\
&=\sum_{j,k,l\in\mathcal{P}^n}(-1)^{\pi_Y(k)+\pi_Y(l)+\langle j,k\rangle+\langle i+j,l\rangle}a_k^2a_l^2\\
&=\sum_{k,l\in\mathcal{P}^n}(-1)^{\pi_Y(k)+\pi_Y(l)+\langle i,l\rangle}a_k^2a_l^2\sum_{j\in\mathcal{P}^n}(-1)^{\langle j,k+l\rangle}\\
&=4^n\sum_{k\in\mathcal{P}^n}(-1)^{\langle i,k\rangle}a_k^4 \tag*{(101)}
\end{aligned} P BellDiff ( i ) = j ∈ P n ∑ P Bell ( j ) P Bell ( i + j ) = j , k , l ∈ P n ∑ ( − 1 ) π Y ( k ) + π Y ( l ) + ⟨ j , k ⟩ + ⟨ i + j , l ⟩ a k 2 a l 2 = k , l ∈ P n ∑ ( − 1 ) π Y ( k ) + π Y ( l ) + ⟨ i , l ⟩ a k 2 a l 2 j ∈ P n ∑ ( − 1 ) ⟨ j , k + l ⟩ = 4 n k ∈ P n ∑ ( − 1 ) ⟨ i , k ⟩ a k 4 (101)
[Prop. 3 of Lemma A.1].
Analogous to Lemma V.1 for Bell sampling, Bell difference sampling admits a closed form for the probability that a sample lands in C ( H ) C(H) C ( H ) :
Lemma A.2. For any Pauli label subgroup H ≤ P n H\leq\mathcal{P}^n H ≤ P n , whether commuting or not,
P b ∼ B e l l D i f f [ b ∈ C ( H ) ] = 16 n ∣ H ∣ ∑ i ∈ H a i 4 . (102) \mathbb{P}_{b\sim\mathrm{BellDiff}}[b\in C(H)]=\frac{16^n}{\lvert H\rvert}\sum_{i\in H}a_i^4. \tag*{(102)} P b ∼ BellDiff [ b ∈ C ( H )] = ∣ H ∣ 1 6 n i ∈ H ∑ a i 4 . (102) Proof. Write H = ⟨ g 1 , … , g h ⟩ H=\langle g_1,\ldots,g_h\rangle H = ⟨ g 1 , … , g h ⟩ . Property numbers refer to Lemma A.1 .
P b ∼ B e l l D i f f [ b ∈ C ( H ) ] = ∑ b ∈ C ( H ) P B e l l D i f f ( b ) = 4 n ∑ k ∈ P n a k 4 ∑ b ∈ C ( H ) ( − 1 ) ⟨ k , b ⟩ = 4 n ∣ H ∣ ∑ k ∈ P n a k 4 ∑ m ∈ H ∑ b ∈ P n ( − 1 ) ⟨ k + m , b ⟩ = 16 n ∣ H ∣ ∑ k ∈ P n a k 4 ∑ m ∈ H δ k + m , 0 = 16 n ∣ H ∣ ∑ k ∈ H a k 4 . \begin{aligned}
\mathbb{P}_{b\sim\mathrm{BellDiff}}[b\in C(H)]
&=\sum_{b\in C(H)}P_{\mathrm{BellDiff}}(b)\\
&=4^n\sum_{k\in\mathcal{P}^n}a_k^4\sum_{b\in C(H)}(-1)^{\langle k,b\rangle}\\
&=\frac{4^n}{\lvert H\rvert}\sum_{k\in\mathcal{P}^n}a_k^4\sum_{m\in H}\sum_{b\in\mathcal{P}^n}(-1)^{\langle k+m,b\rangle}\\
&=\frac{16^n}{\lvert H\rvert}\sum_{k\in\mathcal{P}^n}a_k^4\sum_{m\in H}\delta_{k+m,0}\\
&=\frac{16^n}{\lvert H\rvert}\sum_{k\in H}a_k^4.
\end{aligned} P b ∼ BellDiff [ b ∈ C ( H )] = b ∈ C ( H ) ∑ P BellDiff ( b ) = 4 n k ∈ P n ∑ a k 4 b ∈ C ( H ) ∑ ( − 1 ) ⟨ k , b ⟩ = ∣ H ∣ 4 n k ∈ P n ∑ a k 4 m ∈ H ∑ b ∈ P n ∑ ( − 1 ) ⟨ k + m , b ⟩ = ∣ H ∣ 1 6 n k ∈ P n ∑ a k 4 m ∈ H ∑ δ k + m , 0 = ∣ H ∣ 1 6 n k ∈ H ∑ a k 4 . [Prop. 3]
Applied to pure states, this pins the support of P B e l l D i f f P_{\mathrm{BellDiff}} P BellDiff inside C ( S ) C(S) C ( S ) .
Proposition III.5 (restated). For a pure state ψ \psi ψ , P B e l l D i f f ( i ) ≠ 0 P_{\mathrm{BellDiff}}(i) \ne0 P BellDiff ( i ) = 0 only if i ∈ C ( S ) i \in C(S) i ∈ C ( S ) .
Proof. By Observation III.4, a j = 0 a_j = 0 a j = 0 for j ∉ C ( S ) j \notin C(S) j ∈ / C ( S ) , so Eq. (27) restricts to a sum over j ∈ C ( S ) j \in C(S) j ∈ C ( S ) . Suppose i ∉ C ( S ) i \notin C(S) i ∈ / C ( S ) ; pick g ∈ S g \in S g ∈ S with ⟨ i , g ⟩ = 1 \langle i,g\rangle= 1 ⟨ i , g ⟩ = 1 . The map j ↦ j + g j \mapsto j+g j ↦ j + g is a fixed-point-free involution on C ( S ) C(S) C ( S ) , and a j 4 = a j + g 4 a_j^4 = a_{j+g}^4 a j 4 = a j + g 4 since σ g \sigma_g σ g stabilizes ρ \rho ρ . Since ⟨ i , j + g ⟩ = ⟨ i , j ⟩ + 1 \langle i,j+g\rangle= \langle i,j\rangle+ 1 ⟨ i , j + g ⟩ = ⟨ i , j ⟩ + 1 , terms cancel in pairs: P B e l l D i f f ( i ) = 0 P_{\mathrm{BellDiff}}(i) = 0 P BellDiff ( i ) = 0 .
Eigenspace-Weight Representation and τ \tau τ Coefficients
Simultaneous Eigenspaces and τ \tau τ Coefficients
In the main paper, we have decomposed the density matrix in terms of the Paulis, ρ = ∑ i a i σ i \rho= \sum_i a_i\sigma_i ρ = ∑ i a i σ i . In this section, however, we introduce a more useful representation. Consider a commuting Pauli group H = ⟨ g 1 , … , g h ⟩ H = \langle g_1,\ldots,g_h\rangle H = ⟨ g 1 , … , g h ⟩ . For a bitstring x ∈ { 0 , 1 } h x \in\{0,1\}^h x ∈ { 0 , 1 } h , let Π x \Pi_x Π x be the projector onto the simultaneous eigenspace in which g k g_k g k has eigenvalue ( − 1 ) x k (-1)^{x_k} ( − 1 ) x k , and define its weight
τ x = tr ( Π x ρ ) = tr ( Π x ρ Π x ) . (103) \tau_x = \operatorname{tr}(\Pi_x\rho) = \operatorname{tr}(\Pi_x\rho\Pi_x). \tag*{(103)} τ x = tr ( Π x ρ ) = tr ( Π x ρ Π x ) . (103)
The Π x \Pi_x Π x decompose the Hilbert space into the joint eigenspaces of H H H , and τ x \tau_x τ x is the weight ρ \rho ρ puts on each: the probability of the joint outcome x x x when measuring g 1 , … , g h g_1,\ldots,g_h g 1 , … , g h . So τ x ≥ 0 \tau_x \ge0 τ x ≥ 0 and ∑ x τ x = 1 \sum_x \tau_x = 1 ∑ x τ x = 1 . These weights are defined for any ρ \rho ρ . Only when ρ \rho ρ has Pauli support in C ( H ) C(H) C ( H ) does it commute with every Π x \Pi_x Π x and become block diagonal, ρ = ∑ x Π x ρ Π x \rho= \sum_x \Pi_x\rho\Pi_x ρ = ∑ x Π x ρ Π x ; in general it is not.
Expanding Π x = ∏ k = 1 h 1 2 ( I + ( − 1 ) x k g k ) \Pi_x = \prod_{k=1}^{h} \frac{1}{2}(I + (-1)^{x_k}g_k) Π x = ∏ k = 1 h 2 1 ( I + ( − 1 ) x k g k ) writes each projector as a combination of the elements of H H H ,
Π x = 1 ∣ H ∣ ∑ i ∈ H ( − 1 ) x ( i ) σ i . (104) \Pi_x = \frac{1}{|H|}\sum_{i\in H}(-1)^{x(i)}\sigma_i. \tag*{(104)} Π x = ∣ H ∣ 1 i ∈ H ∑ ( − 1 ) x ( i ) σ i . (104)
Here we choose the signs of σ i \sigma_i σ i , i ∈ H i \in H i ∈ H , so that σ i σ j = σ i + j \sigma_i\sigma_j = \sigma_{i+j} σ i σ j = σ i + j , which is possible because H H H is commuting. Writing σ i = g 1 y 1 ⋯ g h y h \sigma_i = g_1^{y_1}\cdots g_h^{y_h} σ i = g 1 y 1 ⋯ g h y h , we set x ( i ) = x ⋅ y x(i) = x\cdot y x ( i ) = x ⋅ y , the bitwise dot product, thinking of x x x as a function on H H H . Hence
τ x = tr ( ρ Π x ) = 1 ∣ H ∣ ∑ i ∈ H ( − 1 ) x ( i ) tr ( ρ σ i ) = 2 n ∣ H ∣ ∑ i ∈ H ( − 1 ) x ( i ) a i , (105) \tau_x = \operatorname{tr}(\rho\Pi_x) = \frac{1}{|H|}\sum_{i\in H}(-1)^{x(i)}\operatorname{tr}(\rho\sigma_i) = \frac{2^n}{|H|}\sum_{i\in H}(-1)^{x(i)}a_i, \tag*{(105)} τ x = tr ( ρ Π x ) = ∣ H ∣ 1 i ∈ H ∑ ( − 1 ) x ( i ) tr ( ρ σ i ) = ∣ H ∣ 2 n i ∈ H ∑ ( − 1 ) x ( i ) a i , (105)
a Fourier transform over H H H . Since ∑ x ( − 1 ) x ( i + j ) = ∣ H ∣ δ i j \sum_x(-1)^{x(i+j)} = |H|\delta_{ij} ∑ x ( − 1 ) x ( i + j ) = ∣ H ∣ δ ij , it inverts to
a i = 1 2 n ∑ x ∈ { 0 , 1 } h ( − 1 ) x ( i ) τ x , i ∈ H . (106) a_i = \frac{1}{2^n}\sum_{x\in\{0,1\}^h}(-1)^{x(i)}\tau_x,\qquad i\in H. \tag*{(106)} a i = 2 n 1 x ∈ { 0 , 1 } h ∑ ( − 1 ) x ( i ) τ x , i ∈ H . (106)
BellDiff Mass in the τ \tau τ Representation
With this expression, we can convert relations we found in the main text into this formalism. In particular, we are interested in the probability that a given Bell difference sample lies in C ( H ) C(H) C ( H ) via Eq. (102) :
P b ∼ B e l l D i f f [ b ∈ C ( H ) ] = 16 n ∣ H ∣ ∑ i ∈ H a i 4 = 16 n ∣ H ∣ ∑ i ∈ H ∑ x , y , z , w ∈ { 0 , 1 } h 1 16 n ( − 1 ) ( x + y + z + w ) ( i ) τ x τ y τ z τ w = 1 ∣ H ∣ ∑ x , y , z , w ∈ { 0 , 1 } h ( ∑ i ∈ H ( − 1 ) ( x + y + z + w ) ( i ) ) τ x τ y τ z τ w = 1 ∣ H ∣ ∑ x , y , z , w ∈ { 0 , 1 } h ∣ H ∣ δ ( x + y + z + w ) τ x τ y τ z τ w = ∑ x , y , z , w ∈ { 0 , 1 } h τ x τ y τ z τ w δ ( x + y + z + w ) . (107) \begin{aligned}
\mathbb{P}_{b\sim\mathrm{BellDiff}}[b\in C(H)]
&= \frac{16^n}{|H|}\sum_{i\in H}a_i^4 \\
&= \frac{16^n}{|H|}\sum_{i\in H}\sum_{x,y,z,w\in\{0,1\}^h}\frac{1}{16^n}(-1)^{(x+y+z+w)(i)}\tau_x\tau_y\tau_z\tau_w \\
&= \frac{1}{|H|}\sum_{x,y,z,w\in\{0,1\}^h}\left(\sum_{i\in H}(-1)^{(x+y+z+w)(i)}\right)\tau_x\tau_y\tau_z\tau_w \\
&= \frac{1}{|H|}\sum_{x,y,z,w\in\{0,1\}^h}|H|\delta(x+y+z+w)\tau_x\tau_y\tau_z\tau_w \\
&= \sum_{x,y,z,w\in\{0,1\}^h}\tau_x\tau_y\tau_z\tau_w\delta(x+y+z+w). \tag*{(107)}
\end{aligned} P b ∼ BellDiff [ b ∈ C ( H )] = ∣ H ∣ 1 6 n i ∈ H ∑ a i 4 = ∣ H ∣ 1 6 n i ∈ H ∑ x , y , z , w ∈ { 0 , 1 } h ∑ 1 6 n 1 ( − 1 ) ( x + y + z + w ) ( i ) τ x τ y τ z τ w = ∣ H ∣ 1 x , y , z , w ∈ { 0 , 1 } h ∑ ( i ∈ H ∑ ( − 1 ) ( x + y + z + w ) ( i ) ) τ x τ y τ z τ w = ∣ H ∣ 1 x , y , z , w ∈ { 0 , 1 } h ∑ ∣ H ∣ δ ( x + y + z + w ) τ x τ y τ z τ w = x , y , z , w ∈ { 0 , 1 } h ∑ τ x τ y τ z τ w δ ( x + y + z + w ) . (107)
where the δ \delta δ function takes the value 1 if and only if its argument is zero, and 0 otherwise. Alternatively, we can also write:
P b ∼ B e l l D i f f [ b ∈ C ( H ) ] = ∑ x , z , s , t ∈ { 0 , 1 } h τ x τ x + s τ z τ z + t [ s = t ] = ∑ x , z , s ∈ { 0 , 1 } h τ x τ x + s τ z τ z + s = ∑ s ∈ { 0 , 1 } h ( ∑ x ∈ { 0 , 1 } h τ x τ x + s ) 2 = ∥ τ ∗ τ ∥ 2 2 (108) \begin{aligned}
\mathbb{P}_{b\sim\mathrm{BellDiff}}[b\in C(H)] &= \sum_{\substack{x,z,s,t\in\{0,1\}^{h}}} \tau_x\tau_{x+s}\tau_z\tau_{z+t}[s=t] \\
&= \sum_{\substack{x,z,s\in\{0,1\}^{h}}} \tau_x\tau_{x+s}\tau_z\tau_{z+s} \\
&= \sum_{s\in\{0,1\}^{h}}\left(\sum_{x\in\{0,1\}^{h}}\tau_x\tau_{x+s}\right)^2 \\
&= \lVert\tau* \tau\rVert_2^2 \tag*{(108)}
\end{aligned} P b ∼ BellDiff [ b ∈ C ( H )] = x , z , s , t ∈ { 0 , 1 } h ∑ τ x τ x + s τ z τ z + t [ s = t ] = x , z , s ∈ { 0 , 1 } h ∑ τ x τ x + s τ z τ z + s = s ∈ { 0 , 1 } h ∑ x ∈ { 0 , 1 } h ∑ τ x τ x + s 2 = ∥ τ ∗ τ ∥ 2 2 (108)
Here ∗ * ∗ is ordinary XOR convolution, ( f ∗ g ) ( s ) = ∑ x f ( x ) g ( s + x ) (f*g)(s)=\sum_x f(x)g(s+x) ( f ∗ g ) ( s ) = ∑ x f ( x ) g ( s + x ) , with no normalization factor.
Pauli Twirling and γ H \gamma_H γ H
Recall from Sec. IV A that the Pauli twirl T H \mathcal{T}_H T H is a projector onto Paulis in C ( H ) C(H) C ( H ) : T H ( ρ ) = ∑ i ∈ C ( H ) a i σ i \mathcal{T}_H(\rho)=\sum_{i\in C(H)}a_i\sigma_i T H ( ρ ) = ∑ i ∈ C ( H ) a i σ i , so γ H = tr ( T H ( ρ ) 2 ) \gamma_H=\operatorname{tr}(\mathcal{T}_H(\rho)^2) γ H = tr ( T H ( ρ ) 2 ) . Here we describe T H \mathcal{T}_H T H ’s action on the block structure of ρ \rho ρ in the simultaneous eigenspace basis of H H H . For a commuting Pauli group H H H , ρ \rho ρ is not necessarily block diagonal in the joint eigenspace decomposition of its generators. In this case,
ρ = ∑ x , y ∈ { 0 , 1 } h Π x ρ Π y (109) \rho=\sum_{x,y\in\{0,1\}^{h}}\Pi_x\rho\Pi_y \tag*{(109)} ρ = x , y ∈ { 0 , 1 } h ∑ Π x ρ Π y (109)
where Π x ρ Π y \Pi_x\rho\Pi_y Π x ρ Π y represents each submatrix in this form. What would T H \mathcal{T}_H T H do to each term? For i ∈ H i\in H i ∈ H , σ i Π x = Π x σ i = ( − 1 ) x ( i ) Π x \sigma_i\Pi_x=\Pi_x\sigma_i=(-1)^{x(i)}\Pi_x σ i Π x = Π x σ i = ( − 1 ) x ( i ) Π x , since σ i \sigma_i σ i acts as the sign ( − 1 ) x ( i ) (-1)^{x(i)} ( − 1 ) x ( i ) on the eigenspace of Π x \Pi_x Π x . Averaging over H H H then gives
T H ( Π x ρ Π y ) = 1 ∣ H ∣ ∑ i ∈ H σ i Π x ρ Π y σ i = 1 ∣ H ∣ Π x ρ Π y ∑ i ∈ H ( − 1 ) ( x + y ) ( i ) = Π x ρ Π y δ x y (110) \begin{aligned}
\mathcal{T}_H(\Pi_x\rho\Pi_y)
&=\frac{1}{|H|}\sum_{i\in H}\sigma_i\Pi_x\rho\Pi_y\sigma_i \\
&=\frac{1}{|H|}\Pi_x\rho\Pi_y\sum_{i\in H}(-1)^{(x+y)(i)} \\
&=\Pi_x\rho\Pi_y\delta_{xy} \tag*{(110)}
\end{aligned} T H ( Π x ρ Π y ) = ∣ H ∣ 1 i ∈ H ∑ σ i Π x ρ Π y σ i = ∣ H ∣ 1 Π x ρ Π y i ∈ H ∑ ( − 1 ) ( x + y ) ( i ) = Π x ρ Π y δ x y (110)
In other words, T H \mathcal{T}_H T H dephases all the off-diagonal blocks of the density matrix. This gives the following proposition:
Proposition B.1. T H ( ρ ) = ∑ x ∈ { 0 , 1 } h Π x ρ Π x \mathcal{T}_H(\rho)=\sum_{x\in\{0,1\}^{h}}\Pi_x\rho\Pi_x T H ( ρ ) = ∑ x ∈ { 0 , 1 } h Π x ρ Π x .
The block form also compares projected purity with the collision probability of τ \tau τ :
Proposition B.2. ∑ x ∈ { 0 , 1 } h τ x 2 ≥ γ H \sum_{x\in\{0,1\}^{h}}\tau_x^2\ge\gamma_H ∑ x ∈ { 0 , 1 } h τ x 2 ≥ γ H .
Proof. γ H = tr ( T H ( ρ ) 2 ) = ∑ x tr ( ( Π x ρ Π x ) 2 ) ≤ ∑ x ( tr ( Π x ρ Π x ) ) 2 = ∑ x τ x 2 \gamma_H=\operatorname{tr}(\mathcal{T}_H(\rho)^2)=\sum_x\operatorname{tr}((\Pi_x\rho\Pi_x)^2)\le\sum_x(\operatorname{tr}(\Pi_x\rho\Pi_x))^2=\sum_x\tau_x^2 γ H = tr ( T H ( ρ ) 2 ) = ∑ x tr (( Π x ρ Π x ) 2 ) ≤ ∑ x ( tr ( Π x ρ Π x ) ) 2 = ∑ x τ x 2 .
This directly leads to a simple lower bound for P b ∼ B e l l D i f f [ b ∈ C ( H ) ] \mathbb{P}_{b\sim\mathrm{BellDiff}}[b\in C(H)] P b ∼ BellDiff [ b ∈ C ( H )] :
Proposition B.3. P b ∼ B e l l D i f f [ b ∈ C ( H ) ] ≥ γ H 2 \mathbb{P}_{b\sim\mathrm{BellDiff}}[b\in C(H)]\ge\gamma_H^2 P b ∼ BellDiff [ b ∈ C ( H )] ≥ γ H 2
Proof. Note that ( τ ∗ τ ) ( 0 ) = ∑ x ∈ { 0 , 1 } h τ x 2 (\tau*\tau)(0)=\sum_{x\in\{0,1\}^{h}}\tau_x^2 ( τ ∗ τ ) ( 0 ) = ∑ x ∈ { 0 , 1 } h τ x 2 . So P b ∼ B e l l D i f f [ b ∈ C ( H ) ] = ∥ τ ∗ τ ∥ 2 2 ≥ ( ( τ ∗ τ ) ( 0 ) ) 2 = ( ∑ x ∈ { 0 , 1 } h τ x 2 ) 2 ≥ γ H 2 \mathbb{P}_{b\sim\mathrm{BellDiff}}[b\in C(H)]=\lVert\tau*\tau\rVert_2^2\ge((\tau*\tau)(0))^2=(\sum_{x\in\{0,1\}^{h}}\tau_x^2)^2\ge\gamma_H^2 P b ∼ BellDiff [ b ∈ C ( H )] = ∥ τ ∗ τ ∥ 2 2 ≥ (( τ ∗ τ ) ( 0 ) ) 2 = ( ∑ x ∈ { 0 , 1 } h τ x 2 ) 2 ≥ γ H 2 , where the last inequality is Proposition B.2.
Purity Loss and Trace Distance
To justify Eq. (12) , let Δ γ ψ ( H ) \Delta_{\gamma_\psi}(H) Δ γ ψ ( H ) denote the purity loss of the pure state ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ , with τ x = ⟨ ψ ∣ Π x ∣ ψ ⟩ \tau_x=\langle\psi|\Pi_x|\psi\rangle τ x = ⟨ ψ ∣ Π x ∣ ψ ⟩ . Each block Π x ∣ ψ ⟩ ⟨ ψ ∣ Π x \Pi_x|\psi\rangle\langle\psi|\Pi_x Π x ∣ ψ ⟩ ⟨ ψ ∣ Π x has rank at most one, so Δ γ ψ ( H ) = 1 − ∑ x τ x 2 \Delta_{\gamma_\psi}(H)=1-\sum_x\tau_x^2 Δ γ ψ ( H ) = 1 − ∑ x τ x 2 . The closest pure state stabilized by H H H is the normalized projection onto a most likely joint eigenspace. Since ( max x τ x ) 2 ≤ ∑ x τ x 2 ≤ max x τ x (\max_x\tau_x)^2\le\sum_x\tau_x^2\le\max_x\tau_x ( max x τ x ) 2 ≤ ∑ x τ x 2 ≤ max x τ x ,
Δ γ ψ ( H ) 2 ≤ inf ϕ : H ⊆ Stab ( ϕ ) D tr ( ψ , ϕ ) 2 = 1 − max x τ x ≤ Δ γ ψ ( H ) . (111) \frac{\Delta_{\gamma_\psi}(H)}{2}\le\inf_{\phi:H\subseteq\operatorname{Stab}(\phi)}D_{\operatorname{tr}}(\psi,\phi)^2=1-\max_x\tau_x\le\Delta_{\gamma_\psi}(H). \tag*{(111)} 2 Δ γ ψ ( H ) ≤ ϕ : H ⊆ Stab ( ϕ ) inf D tr ( ψ , ϕ ) 2 = 1 − x max τ x ≤ Δ γ ψ ( H ) . (111)
For the noisy state ρ \rho ρ , Eq. (13) gives 1 − 2 λ ≤ f i ≤ 1 1-2\lambda\le f_i \le1 1 − 2 λ ≤ f i ≤ 1 when the total Pauli error probability is λ < 1 / 2 \lambda< 1/2 λ < 1/2 . Applying these bounds to the squared Pauli coefficients outside C ( H ) C(H) C ( H ) gives
( 1 − 2 λ ) 2 Δ γ ψ ( H ) ≤ Δ γ ( H ) ≤ Δ γ ψ ( H ) . (112) (1-2\lambda)^2\Delta\gamma_\psi(H) \le\Delta\gamma(H) \le\Delta\gamma_\psi(H). \tag*{(112)} ( 1 − 2 λ ) 2 Δ γ ψ ( H ) ≤ Δ γ ( H ) ≤ Δ γ ψ ( H ) . (112)
Combining the two inequalities with H = S ~ H=\widetilde{S} H = S proves Eq. (12) . For depolarizing noise, the exact relation is Δ γ ( H ) = ( 1 − λ ) 2 Δ γ ψ ( H ) \Delta\gamma(H)=(1-\lambda)^2\Delta\gamma_\psi(H) Δ γ ( H ) = ( 1 − λ ) 2 Δ γ ψ ( H ) , so the upper bound instead has denominator 1 − λ 1-\lambda 1 − λ .
Proof of Lemma IV.4
We relate the purity lost when extending H H H to H ′ H' H ′ to the probability that a Bell difference sample in C ( H ) C(H) C ( H ) falls outside C ( H ′ ) C(H') C ( H ′ ) .
Let H ⊆ H ′ ⊆ C ( H ) H \subseteq H' \subseteq C(H) H ⊆ H ′ ⊆ C ( H ) with H H H commuting, and write Δ γ = γ H − γ H ′ \Delta\gamma=\gamma_H-\gamma_{H'} Δ γ = γ H − γ H ′ . For a Pauli label subgroup G G G , set
P G = Pr b ∼ B e l l D i f f [ b ∈ C ( G ) ] = 1 ∣ G ∣ ∑ g ∈ G ( tr ( ρ σ g ) ) 4 , R = P H ′ P H . (113) P_G=\Pr_{b\sim\mathrm{BellDiff}}[b\in C(G)]=\frac{1}{|G|}\sum_{g\in G}\left(\operatorname{tr}(\rho\sigma_g)\right)^4,\qquad R=\frac{P_{H'}}{P_H}. \tag*{(113)} P G = b ∼ BellDiff Pr [ b ∈ C ( G )] = ∣ G ∣ 1 g ∈ G ∑ ( tr ( ρ σ g ) ) 4 , R = P H P H ′ . (113)
The fourth-moment identity is Lemma A.2; it applies even when G G G is noncommuting. We prove the bound in two cases.
Commuting extensions
Suppose first that H ′ H' H ′ is commuting. Choose its generators to extend those of H H H , and let Π x \Pi_x Π x and Π x y \Pi_{xy} Π x y be the coarse and refined eigenspace projectors. As in Appendix B, their weights satisfy
τ x = tr ( Π x ρ ) , τ x y = tr ( Π x y ρ ) , ∑ y τ x y = τ x . (114) \tau_x=\operatorname{tr}(\Pi_x\rho),\qquad\tau_{xy}=\operatorname{tr}(\Pi_{xy}\rho),\qquad\sum_y\tau_{xy}=\tau_x. \tag*{(114)} τ x = tr ( Π x ρ ) , τ x y = tr ( Π x y ρ ) , y ∑ τ x y = τ x . (114)
The two collision quantities we need are
γ τ = ∑ x τ x 2 , Δ γ τ = ∑ x τ x 2 − ∑ x , y τ x y 2 . (115) \gamma_\tau=\sum_x\tau_x^2,\qquad\Delta\gamma_\tau=\sum_x\tau_x^2-\sum_{x,y}\tau_{xy}^2. \tag*{(115)} γ τ = x ∑ τ x 2 , Δ γ τ = x ∑ τ x 2 − x , y ∑ τ x y 2 . (115)
They need not equal the corresponding purities of a mixed state. Instead,
γ τ ≥ γ H , Δ γ τ ≥ Δ γ . (116) \gamma_\tau\ge\gamma_H,\qquad\Delta\gamma_\tau\ge\Delta\gamma. \tag*{(116)} γ τ ≥ γ H , Δ γ τ ≥ Δ γ . (116)
The first inequality is Proposition B.2. For the second, twirling by H ′ H' H ′ removes the off-diagonal blocks within each H H H -eigenspace (Proposition B.1), so
Δ γ = ∑ x ∑ y ≠ z ∥ Π x y ρ Π x z ∥ H S 2 ≤ ∑ x ∑ y ≠ z τ x y τ x z = Δ γ τ . (117) \Delta\gamma=\sum_x\sum_{y\ne z}\left\|\Pi_{xy}\rho\Pi_{xz}\right\|_{\mathrm{HS}}^2\le\sum_x\sum_{y\ne z}\tau_{xy}\tau_{xz}=\Delta\gamma_\tau. \tag*{(117)} Δ γ = x ∑ y = z ∑ ∥ Π x y ρ Π x z ∥ HS 2 ≤ x ∑ y = z ∑ τ x y τ x z = Δ γ τ . (117)
To see the inequality, write ρ = V V † \rho=VV^\dagger ρ = V V † and V x y = Π x y V V_{xy}=\Pi_{xy}V V x y = Π x y V . Then ∥ Π x y ρ Π x z ∥ H S = ∥ V x y V x z † ∥ H S ≤ ∥ V x y ∥ H S ∥ V x z ∥ H S = τ x y τ x z \left\|\Pi_{xy}\rho\Pi_{xz}\right\|_{\mathrm{HS}}=\left\|V_{xy}V_{xz}^\dagger\right\|_{\mathrm{HS}}\le\left\|V_{xy}\right\|_{\mathrm{HS}}\left\|V_{xz}\right\|_{\mathrm{HS}}=\sqrt{\tau_{xy}\tau_{xz}} ∥ Π x y ρ Π x z ∥ HS = V x y V x z † HS ≤ ∥ V x y ∥ HS ∥ V x z ∥ HS = τ x y τ x z . Write τ H ( x ) = τ x \tau_H(x)=\tau_x τ H ( x ) = τ x and τ H ′ ( x , y ) = τ x y \tau_{H'}(x,y)=\tau_{xy} τ H ′ ( x , y ) = τ x y to distinguish the convolution domains. Equation (B6) gives
P H = ∥ τ H ∗ τ H ∥ 2 2 , P H ′ = ∥ τ H ′ ∗ τ H ′ ∥ 2 2 . (118) P_H=\left\|\tau_H\ast\tau_H\right\|_2^2,\qquad P_{H'}=\left\|\tau_{H'}\ast\tau_{H'}\right\|_2^2. \tag*{(118)} P H = ∥ τ H ∗ τ H ∥ 2 2 , P H ′ = ∥ τ H ′ ∗ τ H ′ ∥ 2 2 . (118)
Marginalization commutes with convolution: ∑ y ( τ H ′ ∗ τ H ′ ) ( s , y ) = ( τ H ∗ τ H ) ( s ) \sum_y(\tau_{H'}\ast\tau_{H'})(s,y)=(\tau_H\ast\tau_H)(s) ∑ y ( τ H ′ ∗ τ H ′ ) ( s , y ) = ( τ H ∗ τ H ) ( s ) . Thus
P H − P H ′ = ∑ s [ ( ∑ y ( τ H ′ ∗ τ H ′ ) ( s , y ) ) 2 − ∑ y ( τ H ′ ∗ τ H ′ ) ( s , y ) 2 ] ≥ γ τ 2 − ∑ y ( τ H ′ ∗ τ H ′ ) ( 0 , y ) 2 . (119) P_H-P_{H'}=\sum_s\left[\left(\sum_y(\tau_{H'}\ast\tau_{H'})(s,y)\right)^2-\sum_y(\tau_{H'}\ast\tau_{H'})(s,y)^2\right]
\ge\gamma_\tau^2-\sum_y(\tau_{H'}\ast\tau_{H'})(0,y)^2. \tag*{(119)} P H − P H ′ = s ∑ ( y ∑ ( τ H ′ ∗ τ H ′ ) ( s , y ) ) 2 − y ∑ ( τ H ′ ∗ τ H ′ ) ( s , y ) 2 ≥ γ τ 2 − y ∑ ( τ H ′ ∗ τ H ′ ) ( 0 , y ) 2 . (119)
Every summand is nonnegative, so we kept only s = 0 s=0 s = 0 . In this sector, the total mass is γ τ \gamma_\tau γ τ , the origin entry is γ τ − Δ γ τ \gamma_\tau-\Delta\gamma_\tau γ τ − Δ γ τ , and the remaining entries sum to Δ γ τ \Delta\gamma_\tau Δ γ τ . Bounding the sum of their squares by the square of their sum gives
P H − P H ′ ≥ γ τ 2 − ( γ τ − Δ γ τ ) 2 − ( Δ γ τ ) 2 = 2 Δ γ τ ( γ τ − Δ γ τ ) . (120) P_H-P_{H'}\ge\gamma_\tau^2-(\gamma_\tau-\Delta\gamma_\tau)^2-(\Delta\gamma_\tau)^2=2\Delta\gamma_\tau(\gamma_\tau-\Delta\gamma_\tau). \tag*{(120)} P H − P H ′ ≥ γ τ 2 − ( γ τ − Δ γ τ ) 2 − ( Δ γ τ ) 2 = 2Δ γ τ ( γ τ − Δ γ τ ) . (120)
We also need a bound that stays useful for large collision loss. By Cauchy–Schwarz, every entry satisfies
( τ H ′ ∗ τ H ′ ) ( 0 , y ) = ∑ x , z τ x z τ x , z + y ≤ ∑ x , z τ x z 2 = γ τ − Δ γ τ . (121) (\tau_{H'} * \tau_{H'})(0,y)=\sum_{x,z}\tau_{xz}\tau_{x,z+y}\le\sum_{x,z}\tau_{xz}^{2}=\gamma_{\tau}-\Delta\gamma_{\tau}. \tag*{(121)} ( τ H ′ ∗ τ H ′ ) ( 0 , y ) = x , z ∑ τ x z τ x , z + y ≤ x , z ∑ τ x z 2 = γ τ − Δ γ τ . (121)
Multiplying this entrywise bound by the sector’s total mass shows that
P H − P H ′ ≥ max { 2 Δ γ τ ( γ τ − Δ γ τ ) , γ τ Δ γ τ } . (122) P_H-P_{H'}\ge\max\{2\Delta\gamma_{\tau}(\gamma_{\tau}-\Delta\gamma_{\tau}),\gamma_{\tau}\Delta\gamma_{\tau}\}. \tag*{(122)} P H − P H ′ ≥ max { 2Δ γ τ ( γ τ − Δ γ τ ) , γ τ Δ γ τ } . (122)
Now fix any 0 ≤ Δ ε ≤ Δ γ 0\le\Delta\varepsilon\le\Delta\gamma 0 ≤ Δ ε ≤ Δ γ . If Δ γ τ ≤ γ τ / 2 \Delta\gamma_{\tau}\le\gamma_{\tau}/2 Δ γ τ ≤ γ τ /2 , the quadratic in Eq. (122) is increasing up to γ τ / 2 \gamma_{\tau}/2 γ τ /2 , and Δ ε ≤ Δ γ τ \Delta\varepsilon\le\Delta\gamma_{\tau} Δ ε ≤ Δ γ τ gives P H − P H ′ ≥ 2 Δ ε ( γ τ − Δ ε ) P_H-P_{H'}\ge2\Delta\varepsilon(\gamma_{\tau}-\Delta\varepsilon) P H − P H ′ ≥ 2Δ ε ( γ τ − Δ ε ) . If Δ γ τ ≥ γ τ / 2 \Delta\gamma_{\tau}\ge\gamma_{\tau}/2 Δ γ τ ≥ γ τ /2 , the second bound gives the same conclusion, since γ τ Δ γ τ ≥ γ τ 2 / 2 ≥ 2 Δ ε ( γ τ − Δ ε ) \gamma_{\tau}\Delta\gamma_{\tau}\ge\gamma_{\tau}^{2}/2\ge2\Delta\varepsilon(\gamma_{\tau}-\Delta\varepsilon) γ τ Δ γ τ ≥ γ τ 2 /2 ≥ 2Δ ε ( γ τ − Δ ε ) .
Finally, τ H ∗ τ H \tau_H*\tau_H τ H ∗ τ H is a probability distribution, and each entry is at most its origin entry γ τ \gamma_{\tau} γ τ , again by Cauchy–Schwarz. Hence P H ≤ γ τ P_H\le\gamma_{\tau} P H ≤ γ τ . Dividing the preceding bound by P H P_H P H , using Δ ε ≤ γ H ≤ γ τ \Delta\varepsilon\le\gamma_H\le\gamma_{\tau} Δ ε ≤ γ H ≤ γ τ , yields
1 − R ≥ 2 Δ ε − 2 ( Δ ε ) 2 γ τ ≥ 2 Δ ε − 2 ( Δ ε ) 2 γ H . (123) 1-R\ge2\Delta\varepsilon-\frac{2(\Delta\varepsilon)^2}{\gamma_{\tau}}\ge2\Delta\varepsilon-\frac{2(\Delta\varepsilon)^2}{\gamma_H}. \tag*{(123)} 1 − R ≥ 2Δ ε − γ τ 2 ( Δ ε ) 2 ≥ 2Δ ε − γ H 2 ( Δ ε ) 2 . (123)
This proves Eq. (29) for commuting H ′ H' H ′ . The same estimates also give the global bound 1 − R ≥ Δ γ τ ≥ Δ γ 1-R\ge\Delta\gamma_{\tau}\ge\Delta\gamma 1 − R ≥ Δ γ τ ≥ Δ γ .
Figure 12 illustrates the relation between the equality sets and the positive-loss region. The bound above quantifies the escape throughout that region without expanding around an equality point.
Figure 12. Schematic of refined eigenspace weights for commuting H ⊆ H ′ H\subseteq H' H ⊆ H ′ , at fixed coarse weights τ x \tau_x τ x and a small threshold Δ ε > 0 \Delta\varepsilon>0 Δ ε > 0 . Teal points have Δ γ τ = 0 \Delta\gamma_{\tau}=0 Δ γ τ = 0 ; gold points also have R = 1 R=1 R = 1 . Teal points without gold emphasize that zero collision loss need not imply R = 1 R=1 R = 1 . Teal contours enclose Δ γ τ < Δ ε \Delta\gamma_{\tau}<\Delta\varepsilon Δ γ τ < Δ ε , while gold contours enclose 1 − R < Δ ε 1-R<\Delta\varepsilon 1 − R < Δ ε and lie within the teal contours because 1 − R ≥ Δ γ τ 1-R\ge\Delta\gamma_{\tau} 1 − R ≥ Δ γ τ . The gray region has Δ γ τ ≥ Δ ε \Delta\gamma_{\tau}\ge\Delta\varepsilon Δ γ τ ≥ Δ ε . Contour labels indicate function values, not distances.
Noncommuting extensions
Suppose now that H ′ H' H ′ is noncommuting. Choose anticommuting Hermitian Paulis σ i 1 , σ i 2 \sigma_{i_1},\sigma_{i_2} σ i 1 , σ i 2 in H ′ H' H ′ and set i 3 = i 1 + i 2 i_3=i_1+i_2 i 3 = i 1 + i 2 . The three observables σ i a \sigma_{i_a} σ i a anticommute pairwise and commute with H H H . The label subgroup L = H + span { i 1 , i 2 } L=H+\operatorname{span}\{i_1,i_2\} L = H + span { i 1 , i 2 } has four H H H -cosets and is contained in H ′ H' H ′ .
We use only the eigenspaces of H H H . In each block, write
ρ x = Π x ρ Π x , τ x = tr ρ x , m a ( x ) = tr ( ρ x σ i a ) . (124) \rho_x=\Pi_x\rho\Pi_x,\qquad\tau_x=\operatorname{tr}\rho_x,\qquad m_a(x)=\operatorname{tr}(\rho_x\sigma_{i_a}). \tag*{(124)} ρ x = Π x ρ Π x , τ x = tr ρ x , m a ( x ) = tr ( ρ x σ i a ) . (124)
Their expectations obey ∑ a = 1 3 m a ( x ) 2 ≤ τ x 2 \sum_{a=1}^{3} m_a(x)^2 \leq\tau_x^2 ∑ a = 1 3 m a ( x ) 2 ≤ τ x 2 : for any real unit vector u u u , ( ∑ a u a σ i a ) 2 = I (\sum_a u_a\sigma_{i_a})^2 = I ( ∑ a u a σ i a ) 2 = I , so its expectation in the positive block ρ x \rho_x ρ x has magnitude at most τ x \tau_x τ x . Hölder’s inequality therefore gives, for any four block labels,
∑ a = 1 3 ∏ j = 1 4 m a ( x j ) ≤ ∑ a = 1 3 ∏ j = 1 4 ∣ m a ( x j ) ∣ ≤ ∏ j = 1 4 ( ∑ a = 1 3 ∣ m a ( x j ) ∣ 4 ) 1 / 4 ≤ ∏ j = 1 4 τ x j . (125) \sum_{a=1}^{3}\prod_{j=1}^{4}m_a(x_j)\leq\sum_{a=1}^{3}\prod_{j=1}^{4}|m_a(x_j)|\leq\prod_{j=1}^{4}\left(\sum_{a=1}^{3}|m_a(x_j)|^4\right)^{1/4}\leq\prod_{j=1}^{4}\tau_{x_j}. \tag*{(125)} a = 1 ∑ 3 j = 1 ∏ 4 m a ( x j ) ≤ a = 1 ∑ 3 j = 1 ∏ 4 ∣ m a ( x j ) ∣ ≤ j = 1 ∏ 4 ( a = 1 ∑ 3 ∣ m a ( x j ) ∣ 4 ) 1/4 ≤ j = 1 ∏ 4 τ x j . (125)
Choose compatible Hermitian representatives σ h \sigma_h σ h for h ∈ H h\in H h ∈ H , as in Appendix B. Then tr ( ρ σ h σ i a ) = ∑ x ( − 1 ) x ( h ) m a ( x ) \operatorname{tr}(\rho\sigma_h\sigma_{i_a})=\sum_x(-1)^{x(h)}m_a(x) tr ( ρ σ h σ i a ) = ∑ x ( − 1 ) x ( h ) m a ( x ) and tr ( ρ σ h ) = ∑ x ( − 1 ) x ( h ) τ x \operatorname{tr}(\rho\sigma_h)=\sum_x(-1)^{x(h)}\tau_x tr ( ρ σ h ) = ∑ x ( − 1 ) x ( h ) τ x . Expanding their fourth powers and summing over h h h retains exactly the tuples with x 1 + x 2 + x 3 + x 4 = 0 x_1+x_2+x_3+x_4=0 x 1 + x 2 + x 3 + x 4 = 0 . The preceding inequality gives
∑ h ∈ H ∑ a = 1 3 ( tr ( ρ σ h σ i a ) ) 4 ≤ ∑ h ∈ H ( tr ( ρ σ h ) ) 4 . (126) \sum_{h\in H}\sum_{a=1}^{3}\left(\operatorname{tr}(\rho\sigma_h\sigma_{i_a})\right)^4\leq\sum_{h\in H}\left(\operatorname{tr}(\rho\sigma_h)\right)^4. \tag*{(126)} h ∈ H ∑ a = 1 ∑ 3 ( tr ( ρ σ h σ i a ) ) 4 ≤ h ∈ H ∑ ( tr ( ρ σ h ) ) 4 . (126)
The fourth-moment formula, applied to the four H H H -cosets of L L L , now yields P L ≤ P H / 2 P_L\leq P_H/2 P L ≤ P H /2 . Since C ( H ′ ) ⊆ C ( L ) C(H')\subseteq C(L) C ( H ′ ) ⊆ C ( L ) ,
R ≤ P L P H ≤ 1 2 . (127) R\leq\frac{P_L}{P_H}\leq\frac{1}{2}. \tag*{(127)} R ≤ P H P L ≤ 2 1 . (127)
This implies Eq. (29) , because
2 Δ ε − 2 ( Δ ε ) 2 γ H = γ H 2 − 2 γ H ( Δ ε − γ H 2 ) 2 ≤ 1 2 . (128) 2\Delta_\varepsilon-\frac{2(\Delta_\varepsilon)^2}{\gamma_H}=\frac{\gamma_H}{2}-\frac{2}{\gamma_H}\left(\Delta_\varepsilon-\frac{\gamma_H}{2}\right)^2\leq\frac{1}{2}. \tag*{(128)} 2 Δ ε − γ H 2 ( Δ ε ) 2 = 2 γ H − γ H 2 ( Δ ε − 2 γ H ) 2 ≤ 2 1 . (128)
The leading constant 2 is sharp already for one qubit. For the pure state p ∣ 0 ⟩ + 1 − p ∣ 1 ⟩ \sqrt{p}\lvert0\rangle+\sqrt{1-p}\lvert1\rangle p ∣ 0 ⟩ + 1 − p ∣ 1 ⟩ , take H = { I } H=\{I\} H = { I } and H ′ = ⟨ Z ⟩ H'=\langle Z\rangle H ′ = ⟨ Z ⟩ . Then γ H = 1 \gamma_H=1 γ H = 1 , Δ γ = 2 p ( 1 − p ) \Delta\gamma=2p(1-p) Δ γ = 2 p ( 1 − p ) , and
1 − R = 1 − ( 2 p − 1 ) 4 2 = 2 Δ γ − 2 ( Δ γ ) 2 , (129) 1-R=\frac{1-(2p-1)^4}{2}=2\Delta\gamma-2(\Delta\gamma)^2, \tag*{(129)} 1 − R = 2 1 − ( 2 p − 1 ) 4 = 2Δ γ − 2 ( Δ γ ) 2 , (129)
which attains the bound at Δ ε = Δ γ \Delta_\varepsilon=\Delta_\gamma Δ ε = Δ γ .
We prove Lemma V.3 using only a count of filter patterns and Hoeffding’s inequality. The point is that the verifier can only ever see finitely many distinct filter patterns on a fixed dataset, so a union bound over patterns stands in for a union bound over the (exponentially many) commuting groups. Write d = 2 n + 1 d=2n+1 d = 2 n + 1 . For any N N N Bell labels, the values of Q H Q_H Q H select their intersection with the affine solution set
{ b : ⟨ g k , b ⟩ = π Y ( g k ) for every basis generator g k ∈ H } . (130) \{b:\langle g_k,b\rangle=\pi_Y(g_k)\text{ for every basis generator }g_k\in H\}. \tag*{(130)} { b : ⟨ g k , b ⟩ = π Y ( g k ) for every basis generator g k ∈ H } . (130)
Each nonempty intersection is determined by at most d d d of the selected points: take an affine basis of their affine hull. This hull lies in the solution set, so its intersection with the sampled labels is exactly the original selected set. Including the empty pattern, the number of possible filter patterns is therefore at most11
∑ j = 0 d ( N j ) ≤ ( e N / d ) d ( N ≥ d ) . (131) \sum_{j=0}^{d}\binom{N}{j}\leq(eN/d)^d\qquad(N\geq d). \tag*{(131)} j = 0 ∑ d ( j N ) ≤ ( e N / d ) d ( N ≥ d ) . (131)
Each difference Q H − Q H ′ Q_H-Q_{H'} Q H − Q H ′ is determined by two filter patterns, so there are at most ( e N / d ) 2 d (eN/d)^{2d} ( e N / d ) 2 d difference patterns. Multiplication by the fixed parity signs does not change the number of patterns. The signed difference takes values in { − 1 , 0 , 1 } \{-1,0,1\} { − 1 , 0 , 1 } 12 and has mean Δ γ H , H ′ \Delta\gamma_{H,H'} Δ γ H , H ′ .
Let Δ γ ^ H , H ′ \widehat{\Delta\gamma}_{H,H'} Δ γ H , H ′ be the same estimate on an independent ghost set of M M M Bell samples—a standard symmetrization device that exists only inside this proof. If M ( Δ ε g a p ) 2 ≥ 64 M(\Delta_\varepsilon^{\mathrm{gap}})^2\geq64 M ( Δ ε gap ) 2 ≥ 64 , then, for each fixed pair H ⊆ H ′ H\subseteq H' H ⊆ H ′ , Hoeffding’s inequality gives
Pr [ ∣ Δ γ ^ H , H ′ − Δ γ H , H ′ ∣ > Δ ε g a p / 4 ] ≤ 2 e − M ( Δ ε g a p ) 2 / 32 ≤ 1 2 . (132) \Pr\left[\left|\widehat{\Delta\gamma}_{H,H'}-\Delta\gamma_{H,H'}\right|>\Delta_\varepsilon^{\mathrm{gap}}/4\right]\leq2e^{-M(\Delta_\varepsilon^{\mathrm{gap}})^2/32}\leq\frac{1}{2}. \tag*{(132)} Pr [ Δ γ H , H ′ − Δ γ H , H ′ > Δ ε gap /4 ] ≤ 2 e − M ( Δ ε gap ) 2 /32 ≤ 2 1 . (132)
On the event that some pair has ∣ Δ ^ γ H , H ′ − Δ γ H , H ′ ∣ > Δ ε g a p / 2 |\widehat{\Delta}_{\gamma H,H'}-\Delta_{\gamma H,H'}|>\Delta\varepsilon_{\mathrm{gap}}/2 ∣ Δ γ H , H ′ − Δ γ H , H ′ ∣ > Δ ε gap /2 , choose one such pair using only the first dataset. The second estimate is within Δ ε g a p / 4 \Delta\varepsilon_{\mathrm{gap}}/4 Δ ε gap /4 of its mean with probability at least 1 / 2 1/2 1/2 . Throughout, the suprema run over commuting groups. Hence
Pr [ sup H ⊆ H ′ ∣ Δ ^ γ H , H ′ − Δ γ H , H ′ ∣ > Δ ε g a p / 2 ] ≤ 2 Pr [ sup H ⊆ H ′ ∣ Δ ^ γ H , H ′ − Δ ^ γ H , H ′ ′ ∣ > Δ ε g a p / 4 ] . (133) \Pr\left[\sup_{H\subseteq H'}\left|\widehat{\Delta}_{\gamma H,H'}-\Delta_{\gamma H,H'}\right|>\Delta\varepsilon_{\mathrm{gap}}/2\right]\leq2\Pr\left[\sup_{H\subseteq H'}\left|\widehat{\Delta}_{\gamma H,H'}-\widehat{\Delta}'_{\gamma H,H'}\right|>\Delta\varepsilon_{\mathrm{gap}}/4\right]. \tag*{(133)} Pr [ H ⊆ H ′ sup Δ γ H , H ′ − Δ γ H , H ′ > Δ ε gap /2 ] ≤ 2 Pr [ H ⊆ H ′ sup Δ γ H , H ′ − Δ γ H , H ′ ′ > Δ ε gap /4 ] . (133)
Now flip a fair coin for each of the M M M sample pairs and swap the pair’s two members on heads; this leaves the joint distribution unchanged. Conditional on the paired observations, each fixed group pair’s difference of estimates is an average of independent, mean-zero random variables in [ − 2 , 2 ] [-2,2] [ − 2 , 2 ] . Hoeffding’s inequality bounds its tail at Δ ε g a p / 4 \Delta\varepsilon_{\mathrm{gap}}/4 Δ ε gap /4 by 2 e − M ( Δ ε g a p ) 2 / 128 2e^{-M(\Delta\varepsilon_{\mathrm{gap}})^2/128} 2 e − M ( Δ ε gap ) 2 /128 . There are at most ( 2 e M / d ) 2 d (2eM/d)^{2d} ( 2 e M / d ) 2 d value patterns on the 2 M 2M 2 M observations, so
Pr [ sup H ⊆ H ′ ∣ Δ ^ γ H , H ′ − Δ γ H , H ′ ∣ > Δ ε g a p / 2 ] ≤ 4 ( 2 e M / d ) 2 d e − M ( Δ ε g a p ) 2 / 128 , (134) \Pr\left[\sup_{H\subseteq H'}\left|\widehat{\Delta}_{\gamma H,H'}-\Delta_{\gamma H,H'}\right|>\Delta\varepsilon_{\mathrm{gap}}/2\right]\leq4(2eM/d)^{2d}e^{-M(\Delta\varepsilon_{\mathrm{gap}})^2/128}, \tag*{(134)} Pr [ H ⊆ H ′ sup Δ γ H , H ′ − Δ γ H , H ′ > Δ ε gap /2 ] ≤ 4 ( 2 e M / d ) 2 d e − M ( Δ ε gap ) 2 /128 , (134)
provided M ≥ max { d , 64 / ( Δ ε g a p ) 2 } M\geq\max\{d,64/(\Delta\varepsilon_{\mathrm{gap}})^2\} M ≥ max { d , 64/ ( Δ ε gap ) 2 } . For example, the explicit choice
M = ⌈ 256 ( Δ ε g a p ) 2 [ 2 ( 2 n + 1 ) ln 2048 ( Δ ε g a p ) 2 + ln 4 δ ] ⌉ (135) M=\left\lceil\frac{256}{(\Delta\varepsilon_{\mathrm{gap}})^2}\left[2(2n+1)\ln\frac{2048}{(\Delta\varepsilon_{\mathrm{gap}})^2}+\ln\frac{4}{\delta}\right]\right\rceil \tag*{(135)} M = ⌈ ( Δ ε gap ) 2 256 [ 2 ( 2 n + 1 ) ln ( Δ ε gap ) 2 2048 + ln δ 4 ] ⌉ (135)
makes the right-hand side at most δ \delta δ for all 0 < Δ ε g a p ≤ 1 0<\Delta\varepsilon_{\mathrm{gap}}\leq1 0 < Δ ε gap ≤ 1 and 0 < δ < 1 0<\delta<1 0 < δ < 1 . This proves the lemma. The constants here are only convenient sufficient choices.
For Algorithm 3, assign the verifier failure probability δ v e r \delta_{\mathrm{ver}} δ ver . Its dataset size is then
M v e r = O ( n ln ( 2 / Δ ε g a p ) + ln ( 1 / δ v e r ) ( Δ ε g a p ) 2 ) . (136) M_{\mathrm{ver}}=O\left(\frac{n\ln(2/\Delta\varepsilon_{\mathrm{gap}})+\ln(1/\delta_{\mathrm{ver}})}{(\Delta\varepsilon_{\mathrm{gap}})^2}\right). \tag*{(136)} M ver = O ( ( Δ ε gap ) 2 n ln ( 2/Δ ε gap ) + ln ( 1/ δ ver ) ) . (136)
The algorithm never enumerates groups; the pattern count lives only in the proof. Each query evaluates the empirical average for its proposed generators.
An Explicit Clean-Mode Schedule
The proof of Theorem VIII.5 keeps the clean mode’s target dimensions, update budgets and batch sizes symbolic and works at leading order. Here we make one choice of all of them explicit, for global depolarizing noise with supplied λ \lambda λ and 1 ≤ t < n 1\leq t<n 1 ≤ t < n : the total budget, the target dimensions and attempt caps, the per-update budgets with their verifier thresholds, and the batch sizes. Whether this choice is certified is decided by a single inequality, Eq. (144) , computed from the inputs before any data are taken. If it holds, the clean mode returns an ε \varepsilon ε -approximate weak stabilizer with probability at least 1 − δ − δ v e r 1-\delta-\delta_{\mathrm{ver}} 1 − δ − δ ver , with δ \delta δ and δ v e r \delta_{\mathrm{ver}} δ ver the finder and verifier budgets of § 1.4 B (Proposition E.1 ). We then show that the check passes in the regime of the theorem, given a fixed margin. The constants are convenient rather than optimized, so a failed check only means that this particular choice is not certified by our bounds. Throughout, D = n − t D=n-t D = n − t , the four per-batch failure probabilities δ 1 , … , δ 4 \delta_1,\ldots,\delta_4 δ 1 , … , δ 4 in the proof of Lemma VII.6 are all 1 ℓ \frac{1}{\ell} ℓ 1 , and ℓ = 16 \ell=16 ℓ = 16 .
We first fix the total budget, the purity it guarantees, and the factor κ \kappa κ :
ε t o t = min { ε , ( 1 − λ ) 2 8 } , γ min = ( 1 − λ ) 2 − ε t o t , κ = 1 4 + ln ( n + 1 ) . (137) \varepsilon_{\mathrm{tot}}=\min\left\{\varepsilon,\frac{(1-\lambda)^2}{8}\right\},\qquad\gamma_{\min}=(1-\lambda)^2-\varepsilon_{\mathrm{tot}},\qquad\kappa=\frac{1}{4+\ln(n+1)}. \tag*{(137)} ε tot = min { ε , 8 ( 1 − λ ) 2 } , γ m i n = ( 1 − λ ) 2 − ε tot , κ = 4 + ln ( n + 1 ) 1 . (137)
where κ \kappa κ , inverse-logarithmic in n n n , will set both the verifier slack and the reserved floor, and the cap on ε t o t \varepsilon_{\mathrm{tot}} ε tot sits safely below that of Assumption IV.6. As long as the accumulated purity loss stays within ε t o t \varepsilon_{\mathrm{tot}} ε tot , Lemma IV.7 applies and γ S ≥ γ min \gamma_{\mathcal{S}}\geq\gamma_{\min} γ S ≥ γ m i n . By Lemma IV.3 and Eq. (67) , each raw Bell difference sample, before post-selection, is then good* with probability p g ∗ ≥ γ min 2 p_g^*\geq\gamma_{\min}^2 p g ∗ ≥ γ m i n 2 and bad* with probability p b ∗ ≤ q b 2 − d m i n S ~ p_b^*\leq q_b\,2^{-d_{\mathrm{min}}\widetilde{S}} p b ∗ ≤ q b 2 − d min S , where q b = 1 − ( 1 − λ ) 4 q_b=1-(1-\lambda)^4 q b = 1 − ( 1 − λ ) 4 .
The main stage aims at the target dimensions
s ~ 0 = 0 , s ~ 1 = ⌈ D ⌉ , s ~ j + 1 = D − ⌈ D − s ~ j 2 ⌉ until s ~ j = D . (138) \widetilde{s}_0=0,\qquad\widetilde{s}_1=\lceil\sqrt{D}\rceil,\qquad\widetilde{s}_{j+1}=D-\left\lceil\frac{D-\widetilde{s}_j}{2}\right\rceil\quad\text{until }\widetilde{s}_j=D. \tag*{(138)} s 0 = 0 , s 1 = ⌈ D ⌉ , s j + 1 = D − ⌈ 2 D − s j ⌉ until s j = D . (138)
The first target plays the role of Λ \Lambda Λ in the proof of Theorem VIII.5; after it, each target halves the remaining distance D D D , so J ≤ 1 + ⌈ log 2 D ⌉ J\leq1+\lceil\log_2D\rceil J ≤ 1 + ⌈ log 2 D ⌉ . These are guaranteed dimensions, and an update may overshoot them. We count the terminal stage as stage J + 1 J+1 J + 1 , with s ~ J + 1 ≡ D \widetilde{s}_{J+1}\equiv D s J + 1 ≡ D . Each stage gets at most T = ⌈ log 4 ( ( J + 1 ) / δ ) ⌉ T=\lceil\log_4((J+1)/\delta)\rceil T = ⌈ log 4 (( J + 1 ) / δ )⌉ batch attempts. The main stage applies at most one update per target and the terminal stage at most m ≡ min { t , T } m \equiv\min\{t,T\} m ≡ min { t , T } (Observation VIII.3), so at most N t o t = J + m N_{\mathrm{tot}}=J+m N tot = J + m updates are applied in total.
The per-update budgets follow from how many bad⋆ ^\star ⋆ samples each stage can tolerate. To land at s ~ i \tilde{s}_i s ~ i , a batch may contain at most K b , i − 1 K_{b,i}-1 K b , i − 1 bad⋆ ^\star ⋆ samples, with K b , i = D − s ~ i + 1 K_{b,i}=D-\tilde{s}_i+1 K b , i = D − s ~ i + 1 (Eq. (59) ); the terminal stage, with K b , J + 1 = 1 K_{b,J+1}=1 K b , J + 1 = 1 , tolerates none. For an integer K ≥ 1 K\geq1 K ≥ 1 , a binomial count X X X with mean at most
μ max ( K ) = max { K 16 , K − 2 K ℓ } (139) \mu_{\max}(K)=\max\left\{\frac{K}{16},K-\sqrt{2K\ell}\right\} \tag*{(139)} μ m a x ( K ) = max { 16 K , K − 2 K ℓ } (139)
reaches K K K with probability at most 1 16 \frac{1}{16} 16 1 : by Markov’s inequality for the first entry, and for the second by the Chernoff bound Pr [ X ≥ K ] ≤ e − ( K − μ ) 2 / 2 K \Pr[X\geq K]\leq e^{-(K-\mu)^2/2K} Pr [ X ≥ K ] ≤ e − ( K − μ ) 2 /2 K , valid when the mean is at most μ ≤ K \mu\leq K μ ≤ K . Note that K / 16 ≤ μ max ( K ) < K K/16\leq\mu_{\max}(K)<K K /16 ≤ μ m a x ( K ) < K , μ max ( 1 ) = 1 / 16 \mu_{\max}(1)=1/16 μ m a x ( 1 ) = 1/16 , and μ max ( K ) = K [ 1 − O ( K − 1 / 2 ) ] \mu_{\max}(K)=K[1-O(K^{-1/2})] μ m a x ( K ) = K [ 1 − O ( K − 1/2 )] . We weight the stages by
w i = 2 − s ~ i − 1 μ max ( K b , i ) , W = ∑ j = 1 J w j + m w J + 1 , (140) w_i=\frac{2^{-\tilde{s}_{i-1}}}{\mu_{\max}(K_{b,i})},\qquad W=\sum_{j=1}^{J}w_j+mw_{J+1}, \tag*{(140)} w i = μ m a x ( K b , i ) 2 − s ~ i − 1 , W = j = 1 ∑ J w j + m w J + 1 , (140)
and give each main-stage update (i ≤ J i\leq J i ≤ J ) and each terminal update (i = J + 1 i=J+1 i = J + 1 ) the budget and thresholds
Δ ε i = ε t o t [ ( 1 − κ ) w i W + κ N t o t ] , Δ ε i , + = Δ ε i , Δ ε i , − = ( 1 − κ ) Δ ε i . (141) \Delta\varepsilon_i=\varepsilon_{\mathrm{tot}}\left[(1-\kappa)\frac{w_i}{W}+\frac{\kappa}{N_{\mathrm{tot}}}\right],\qquad\Delta\varepsilon_{i,+}=\Delta\varepsilon_i,\qquad\Delta\varepsilon_{i,-}=(1-\kappa)\Delta\varepsilon_i. \tag*{(141)} Δ ε i = ε tot [ ( 1 − κ ) W w i + N tot κ ] , Δ ε i , + = Δ ε i , Δ ε i , − = ( 1 − κ ) Δ ε i . (141)
The weighted part spends budget where bad⋆ ^\star ⋆ samples are still frequent: a stage whose bad⋆ ^\star ⋆ samples are rare, or which tolerates many of them, can afford a large batch and gets little. The additive part is the floor, added here rather than taken as a maximum as in Eq. (79) . With the terminal budget counted m m m times,
∑ j = 1 J Δ ε j + m Δ ε J + 1 = ε t o t , Δ ε i ≥ κ ε t o t N t o t . (142) \sum_{j=1}^{J}\Delta\varepsilon_j+m\Delta\varepsilon_{J+1}=\varepsilon_{\mathrm{tot}},\qquad\Delta\varepsilon_i\geq\frac{\kappa\varepsilon_{\mathrm{tot}}}{N_{\mathrm{tot}}}. \tag*{(142)} j = 1 ∑ J Δ ε j + m Δ ε J + 1 = ε tot , Δ ε i ≥ N tot κ ε tot . (142)
Every query gap κ Δ ε i \kappa\Delta\varepsilon_i κ Δ ε i is therefore at least Δ ε g a p = κ 2 ε t o t / N t o t \Delta\varepsilon_{\mathrm{gap}}=\kappa^2\varepsilon_{\mathrm{tot}}/N_{\mathrm{tot}} Δ ε gap = κ 2 ε tot / N tot , and the verifier draws its dataset once, by Eq. (135) with this gap and δ v e r \delta_{\mathrm{ver}} δ ver .
For the batch sizes, let t ˉ = t + 1 2 ( ℓ + ℓ 2 + 4 t ℓ ) \bar{t}=t+\frac{1}{2}(\ell+\sqrt{\ell^2+4t\ell}) t ˉ = t + 2 1 ( ℓ + ℓ 2 + 4 t ℓ ) , so that t ˉ / t → 1 \bar{t}/t\to1 t ˉ / t → 1 as t → ∞ t\to\infty t → ∞ . A batch that starts at dimension at least s ~ \tilde{s} s ~ with budget Δ ε \Delta\varepsilon Δ ε , and hence lower threshold Δ ε − = ( 1 − κ ) Δ ε \Delta\varepsilon_-=(1-\kappa)\Delta\varepsilon Δ ε − = ( 1 − κ ) Δ ε , draws
K g = ⌈ max { n − s ~ + t + 4 , t ˉ Δ ε − ( 1 − Δ ε − / γ min ) } ⌉ , M = ⌈ K g + ℓ + ℓ 2 + 2 K g ℓ γ min 2 ⌉ (143) K_g=\left\lceil\max\left\{n-\tilde{s}+t+4,\frac{\bar{t}}{\Delta\varepsilon_-(1-\Delta\varepsilon_-/\gamma_{\min})}\right\}\right\rceil,\qquad M=\left\lceil\frac{K_g+\ell+\sqrt{\ell^2+2K_g\ell}}{\gamma_{\min}^2}\right\rceil \tag*{(143)} K g = ⌈ max { n − s ~ + t + 4 , Δ ε − ( 1 − Δ ε − / γ m i n ) t ˉ } ⌉ , M = ⌈ γ m i n 2 K g + ℓ + ℓ 2 + 2 K g ℓ ⌉ (143)
raw Bell difference samples, and stage i i i uses M i = M ( s ~ i − 1 , Δ ε i ) M_i=M(\tilde{s}_{i-1},\Delta\varepsilon_i) M i = M ( s ~ i − 1 , Δ ε i ) . The first stage starts before any update, with no purity loss yet, so M 1 M_1 M 1 uses ( 1 − λ ) 4 (1-\lambda)^4 ( 1 − λ ) 4 in place of γ min 2 \gamma_{\min}^2 γ m i n 2 . The first entry of K g K_g K g is Lemma VII.1, since ν ~ + ν ⋆ ≤ n − s ~ + t \tilde{\nu}+\nu^\star\leq n-\tilde{s}+t ν ~ + ν ⋆ ≤ n − s ~ + t . The second is Eq. (49) with ν ⋆ → t \nu^\star\to t ν ⋆ → t , δ → 1 16 \delta\to\frac{1}{16} δ → 16 1 , γ S ~ → γ min \gamma_{\widetilde{S}}\to\gamma_{\min} γ S → γ m i n , and Δ ε → Δ ε − \Delta\varepsilon\to\Delta\varepsilon_- Δ ε → Δ ε − , the threshold below which the verifier must approve. These replacements only enlarge the bound, and Δ ε − / γ min ≤ 1 7 \Delta\varepsilon_-/\gamma_{\min}\leq\frac{1}{7} Δ ε − / γ m i n ≤ 7 1 because Δ ε − ≤ ε t o t ≤ ( 1 − λ ) 2 γ min ≤ γ min 7 \Delta\varepsilon_-\leq\varepsilon_{\mathrm{tot}}\leq\frac{(1-\lambda)^2}{\gamma_{\min}}\leq\frac{\gamma_{\min}}{7} Δ ε − ≤ ε tot ≤ γ m i n ( 1 − λ ) 2 ≤ 7 γ m i n . Since p g ⋆ ≥ γ min 2 p_g^\star\geq\gamma_{\min}^2 p g ⋆ ≥ γ m i n 2 , and p g ⋆ ≥ ( 1 − λ ) 4 p_g^\star\geq(1-\lambda)^4 p g ⋆ ≥ ( 1 − λ ) 4 in the first stage, the mean good⋆ ^\star ⋆ count is at least K g + ℓ + ℓ 2 + 2 K g ℓ K_g+\ell+\sqrt{\ell^2+2K_g\ell} K g + ℓ + ℓ 2 + 2 K g ℓ , the larger root of ( μ − K g ) 2 = 2 μ ℓ (\mu-K_g)^2=2\mu\ell ( μ − K g ) 2 = 2 μ ℓ , so the Chernoff lower tail e − ( μ − K g ) 2 / 2 μ e^{-(\mu-K_g)^2/2\mu} e − ( μ − K g ) 2 /2 μ leaves fewer than K g K_g K g good⋆ ^\star ⋆ samples with probability at most 1 16 \frac{1}{16} 16 1 .
It remains to check the bad⋆ ^\star ⋆ counts. In stage i i i , the bad⋆ ^\star ⋆ count of a batch has mean at most M i q b 2 − s ~ i − 1 = q b M i w i μ max ( K b , i ) M_iq_b2^{-\tilde{s}_{i-1}}=q_bM_iw_i\mu_{\max}(K_{b,i}) M i q b 2 − s ~ i − 1 = q b M i w i μ m a x ( K b , i ) . The choice is certified if this stays within μ max ( K b , i ) \mu_{\max}(K_{b,i}) μ m a x ( K b , i ) at every stage,
q b max 1 ≤ i ≤ J + 1 M i w i ≤ 1. (144) q_b\max_{1\leq i\leq J+1}M_iw_i\leq1. \tag*{(144)} q b 1 ≤ i ≤ J + 1 max M i w i ≤ 1. (144)
At λ = 0 \lambda=0 λ = 0 , q b = 0 q_b=0 q b = 0 and the check holds trivially.
We then run Algorithm 8 with these parameters. The main stage visits the targets in order, skipping any that an overshoot has already reached. At target j j j , each attempt draws a fresh batch of M j M_j M j samples, post-selects it onto C ( S ~ ) C(\widetilde{S}) C ( S ) for the current S ~ \widetilde{S} S , and proposes the whole radical with thresholds Δ ε j , ± \Delta\varepsilon_{j,\pm} Δ ε j , ± . An approved update is applied, ending the stage, only if it reaches s ~ j = n − t − ∣ [ K b , j ] ∣ \tilde{s}_j=n-t-\lvert[K_{b,j}]\rvert s ~ j = n − t − ∣[ K b , j ]∣ , as in Algorithm 8; one that falls short spends no budget. After T T T failed attempts we report failure. The terminal stage runs T T T fresh batches of M J + 1 M_{J+1} M J + 1 samples and applies every nontrivial approved update.
Proposition E.1. If Eq. (144) holds, the clean mode with the parameters above returns an ε t o t \varepsilon_{\mathrm{tot}} ε tot -approximate, hence ε \varepsilon ε -approximate, weak stabilizer with probability at least 1 − δ − δ v e r 1-\delta-\delta_{\mathrm{ver}} 1 − δ − δ ver . It uses at most ( J + 1 ) T (J+1)T ( J + 1 ) T batches and at most one verifier query per batch.
Proof. We begin with the budget. Fix the verifier dataset on the uniform-accuracy event of Lemma V.3 , which fails with probability at most δ v e r \delta_{\mathrm{ver}} δ ver . Each applied update then loses at most its Δ ε i , + \Delta\varepsilon_{i,+} Δ ε i , + (Theorem V.4 ). At most one update is applied per target and at most m m m in the terminal stage, so by Eq. (142) the accumulated loss stays within ε t o t \varepsilon_{\mathrm{tot}} ε tot on every execution history, and the bounds on γ S ~ \gamma_{\widetilde{S}} γ S , p g ⋆ p^{\star}_{g} p g ⋆ and p b ⋆ p^{\star}_{b} p b ⋆ above hold throughout.
Next, we bound the failure of a single batch. Condition on the verifier dataset and on the history before an attempt in stage i i i , so that dim S ~ ≥ s ~ i − 1 \dim\widetilde{S} \ge\widetilde{s}_{i-1} dim S ≥ s i − 1 . The attempt fails only if (a) it has fewer than K g K_g K g good⋆ ^\star ⋆ samples, (b) it has at least K b , i K_{b,i} K b , i bad⋆ ^\star ⋆ samples, or, given enough good⋆ ^\star ⋆ samples, (c) their span misses S ⋆ S^\star S ⋆ or (d) the coverage bound fails. Each has probability at most 1 16 \frac{1}{16} 16 1 : (a) by the choice of M i M_i M i , (b) by Eqs. (139) and (144) , and (c) and (d) by the two lemmas behind the entries of K g K_g K g . A union bound, which needs no independence between the two counts, leaves success probability at least 3 4 \frac{3}{4} 4 3 .
On a successful batch, the proof of Lemma VII.6 applies unchanged: the verifier approves the whole radical R R R , and S ~ ′ = R + S ~ \widetilde{S}' = R+\widetilde{S} S ′ = R + S satisfies dim S ⋆ / ( S ⋆ ∩ S ~ ′ ) ≤ K b , i − 1 \dim S^\star/(S^\star\cap\widetilde{S}') \le K_{b,i}-1 dim S ⋆ / ( S ⋆ ∩ S ′ ) ≤ K b , i − 1 . Since dim S ⋆ ≥ n − t \dim S^\star\ge n-t dim S ⋆ ≥ n − t , in main stage j j j this gives dim S ~ ′ ≥ n − t − ( K b , j − 1 ) = s ~ j \dim\widetilde{S}' \ge n-t-(K_{b,j}-1)=\widetilde{s}_j dim S ′ ≥ n − t − ( K b , j − 1 ) = s j , so the update is applied. In the terminal stage, K b , J + 1 = 1 K_{b,J+1}=1 K b , J + 1 = 1 gives S ⊆ S ~ ′ S\subseteq\widetilde{S}' S ⊆ S ′ ; if R R R adds nothing new, S ⊆ S ~ S\subseteq\widetilde{S} S ⊆ S already.
Finally, until a stage reaches its goal, dim S ~ ≥ s ~ j \dim\widetilde{S}\ge\widetilde{s}_j dim S ≥ s j in the main stage and S ⊆ S ~ S\subseteq\widetilde{S} S ⊆ S in the terminal stage, each attempt succeeds with conditional probability at least 3 4 \frac{3}{4} 4 3 . The stage thus fails with probability at most 4 − T 4^{-T} 4 − T , and the J + 1 J+1 J + 1 stages together with probability at most ( J + 1 ) 4 − T ≤ δ (J+1)4^{-T}\le\delta ( J + 1 ) 4 − T ≤ δ .
To leading order, the check reproduces the conditions of Theorem VIII.5. Let D → ∞ D\to\infty D → ∞ with t D 2 − D → 0 tD2^{-D}\to0 t D 2 − D → 0 , as in its proof, and ε t o t → 0 \varepsilon_{\mathrm{tot}}\to0 ε tot → 0 with ( 1 − λ ) 2 (1-\lambda)^2 ( 1 − λ ) 2 bounded below. Since K b , 1 = D − ⌈ D ⌉ + 1 K_{b,1}=D-\lceil\sqrt{D}\rceil+1 K b , 1 = D − ⌈ D ⌉ + 1 , the first weight is w 1 = [ 1 + O ( D − 1 / 2 ) ] / D w_1=[1+O(D^{-1/2})]/D w 1 = [ 1 + O ( D − 1/2 )] / D , with 1 / w 1 ≤ D 1/w_1\le D 1/ w 1 ≤ D . Every later stage starts at dimension at least ⌈ D ⌉ \lceil\sqrt{D}\rceil ⌈ D ⌉ , and μ max ≥ 1 16 \mu_{\max}\ge\frac{1}{16} μ m a x ≥ 16 1 , so
0 ≤ W − w 1 w 1 ≤ 16 D [ ( J − 1 ) 2 − ⌈ D ⌉ + t 2 − D ] → 0. (145) 0\le\frac{W-w_1}{w_1}\le16D\left[(J-1)2^{-\lceil\sqrt{D}\rceil}+t2^{-D}\right]\to0. \tag*{(145)} 0 ≤ w 1 W − w 1 ≤ 16 D [ ( J − 1 ) 2 − ⌈ D ⌉ + t 2 − D ] → 0. (145)
Thus W = ( 1 + o ( 1 ) ) / D W=(1+o(1))/D W = ( 1 + o ( 1 )) / D : as in the proof of the theorem, the first jump takes almost all of the weighted budget. This only needs the later weights to be small in sum, not each smaller than the one before. Moreover, κ → 0 \kappa\to0 κ → 0 , Δ ε − / γ min → 0 \Delta\varepsilon_-/\gamma_{\min}\to0 Δ ε − / γ m i n → 0 , γ min 2 = ( 1 − λ ) 4 ( 1 + o ( 1 ) ) \gamma_{\min}^2=(1-\lambda)^4(1+o(1)) γ m i n 2 = ( 1 − λ ) 4 ( 1 + o ( 1 )) , and K g ≥ t ˉ / ε t o t → ∞ K_g\ge\bar{t}/\varepsilon_{\mathrm{tot}}\to\infty K g ≥ t ˉ / ε tot → ∞ , so the concentration and rounding corrections in Eq. (143) vanish uniformly over stages. With Δ ε i , − ≥ ( 1 − κ ) 2 ε t o t w i / W \Delta\varepsilon_{i,-}\ge(1-\kappa)^2\varepsilon_{\mathrm{tot}}w_i/W Δ ε i , − ≥ ( 1 − κ ) 2 ε tot w i / W in M i M_i M i , the left-hand side of Eq. (144) is at most
( 1 + o ( 1 ) ) max { n + t n − t ˉ , t ˉ ( n − t ) ε t o t } 1 − ( 1 − λ ) 4 ( 1 − λ ) 4 . (146) (1+o(1))\max\left\{\frac{n+t}{n-\bar{t}},\frac{\bar{t}}{(n-t)\varepsilon_{\mathrm{tot}}}\right\}\frac{1-(1-\lambda)^4}{(1-\lambda)^4}. \tag*{(146)} ( 1 + o ( 1 )) max { n − t ˉ n + t , ( n − t ) ε tot t ˉ } ( 1 − λ ) 4 1 − ( 1 − λ ) 4 . (146)
where the first entry comes from the first stage, since later stages enter it only through the negligible weights w i ≤ W − w 1 w_i\le W-w_1 w i ≤ W − w 1 . Requiring each entry, times the last factor, to be at most one gives the two conditions of the theorem: the first is its noise condition, and the second its accuracy condition with C = t ˉ / t C=\bar{t}/t C = t ˉ / t , which tends to one for t ≫ 1 t\gg1 t ≫ 1 and is an explicit constant for bounded t t t ; once ε ≪ 1 \varepsilon\ll1 ε ≪ 1 , also ε t o t = ε \varepsilon_{\mathrm{tot}}=\varepsilon ε tot = ε . So if both products stay below one by a fixed margin, the check passes for all large enough D D D . This certifies neither the boundary itself nor margins that vanish in the limit, and at fixed ε ˉ \bar{\varepsilon} ε ˉ it is Eq. (144) itself that decides.
Appendix F counts the cost of this schedule; with retained purity bounded below, it gives the clean-mode bounds in Eq. (82) .
Costs of the Three Finder Modes
We count classical bit operations using ordinary binary linear algebra. A batch of M b a t c h M_{\mathrm{batch}} M batch Bell difference samples costs O ( n 2 M b a t c h + n 3 ) O(n^2M_{\mathrm{batch}}+n^3) O ( n 2 M batch + n 3 ) to post-select, form its span, and compute the radical. The cached verifier costs O ( n M v e r + n 2 ) O(nM_{\mathrm{ver}}+n^2) O ( n M ver + n 2 ) for a single-generator query and O ( n 2 M v e r + n 3 ) O(n^2M_{\mathrm{ver}}+n^3) O ( n 2 M ver + n 3 ) for a radical query. Its initialization costs O ( n M v e r ) O(nM_{\mathrm{ver}}) O ( n M ver ) . One Bell sample uses two state copies and one independent Bell difference sample uses four, so verifier and finder sample costs add. The main text leaves three vanishing factors as o ( 1 ) o(1) o ( 1 ) : the verifier slack, the reserved fraction of the accuracy budget, and the factor in the intermediate-mode budget ε t o t \varepsilon_{\mathrm{tot}} ε tot . For explicit costs we set all three to one inverse-logarithmic value κ \kappa κ .
Top-down mode. The gap is ε / n \varepsilon/n ε / n , giving
M v e r = O ( n 2 ε 2 [ ln ( 2 n / ε ) + ln ( 1 / δ v e r ) ] ) . (147) M_{\mathrm{ver}}=O\left(\frac{n^2}{\varepsilon^2}\left[\ln(2n/\varepsilon)+\ln(1/\delta_{\mathrm{ver}})\right]\right). \tag*{(147)} M ver = O ( ε 2 n 2 [ ln ( 2 n / ε ) + ln ( 1/ δ ver ) ] ) . (147)
The proof of Theorem VI.2, keeping its confidence terms, requires T = O ( 4 t ( n + ln ( 1 / δ ) ) / γ 2 ) T=O(4^t(n+\ln(1/\delta))/\gamma^2) T = O ( 4 t ( n + ln ( 1/ δ )) / γ 2 ) Bell difference samples. There are at most T T T single-generator queries. Thus the algorithm uses 2 M v e r + 4 T 2M_{\mathrm{ver}}+4T 2 M ver + 4 T state copies and O ( T ( n M v e r + n 2 ) + n M v e r ) O(T(nM_{\mathrm{ver}}+n^2)+nM_{\mathrm{ver}}) O ( T ( n M ver + n 2 ) + n M ver ) classical bit operations. For γ = Ω ( 1 ) \gamma=\Omega(1) γ = Ω ( 1 ) and 0 < ε ≤ 1 0<\varepsilon\le1 0 < ε ≤ 1 , these give the top-down bounds in Eq. (82) .
Intermediate mode. There are at most n n n accepted updates and at most n + 1 n+1 n + 1 iterations in total, each with O ( ln ( n / δ ) ) O(\ln(n/\delta)) O ( ln ( n / δ )) batch attempts. Under a fixed margin in the per-batch success conditions, each batch uses O ( ( n + t ˉ + 1 ) / q min ) O((n+\bar{t}+1)/q_{\min}) O (( n + t ˉ + 1 ) / q m i n ) Bell difference samples and makes O ( 2 t ) O(2^t) O ( 2 t ) single-generator queries, where q min > 0 q_{\min}>0 q m i n > 0 is a lower bound on q g ∗ q_g^* q g ∗ throughout the run. Consequently,
N d i f f = O ( n ( n + t + 1 ) ln ( n / δ ) q min ) , N q u e r y = O ( 2 t n ln ( n / δ ) ) . (148) N_{\mathrm{diff}}=O\left(\frac{n(n+t+1)\ln(n/\delta)}{q_{\min}}\right),\qquad N_{\mathrm{query}}=O\left(2^t n\ln(n/\delta)\right). \tag*{(148)} N diff = O ( q m i n n ( n + t + 1 ) ln ( n / δ ) ) , N query = O ( 2 t n ln ( n / δ ) ) . (148)
In the depolarizing analysis, Δ ε g a p = ε t o t / n \Delta\varepsilon_{\mathrm{gap}}=\varepsilon_{\mathrm{tot}}/n Δ ε gap = ε tot / n , with ε t o t = min { ε , κ ( 1 − λ ) 2 } \varepsilon_{\mathrm{tot}}=\min\{\varepsilon,\kappa(1-\lambda)^2\} ε tot = min { ε , κ ( 1 − λ ) 2 } . If ( 1 − λ ) 2 (1-\lambda)^2 ( 1 − λ ) 2 is bounded below, Eq. (136) gives M v e r = O ~ ( n 3 / ε 2 ) M_{\mathrm{ver}}=\widetilde{O}(n^3/\varepsilon^2) M ver = O ( n 3 / ε 2 ) . Summing the batch-processing and query costs gives
O ( n 2 N d i f f + n 4 ln ( n / δ ) + N q u e r y ( n M v e r + n 2 ) ) . (149) O\left(n^2N_{\mathrm{diff}}+n^4\ln(n/\delta)+N_{\mathrm{query}}(nM_{\mathrm{ver}}+n^2)\right). \tag*{(149)} O ( n 2 N diff + n 4 ln ( n / δ ) + N query ( n M ver + n 2 ) ) . (149)
For q min = Ω ( 1 ) q_{\min}=\Omega(1) q m i n = Ω ( 1 ) and t ≤ n t\le n t ≤ n , this is O ~ ( 2 t n 5 / ε 2 ) \widetilde{O}(2^t n^5/\varepsilon^2) O ( 2 t n 5 / ε 2 ) , while the total state-copy cost is O ~ ( n 3 / ε 2 ) \widetilde{O}(n^3/\varepsilon^2) O ( n 3 / ε 2 ) .
Clean mode. Use the explicit schedule of Appendix E. It has logarithmically many main-stage targets. Their total number of batch attempts, including the terminal stage, satisfies
N b a t c h = O ( log ( n − t + 1 ) ln 1 + log ( n − t + 1 ) δ + ln 1 δ ) . (150) N_{\mathrm{batch}}=O\left(\log(n-t+1)\ln\frac{1+\log(n-t+1)}{\delta}+\ln\frac{1}{\delta}\right). \tag*{(150)} N batch = O ( log ( n − t + 1 ) ln δ 1 + log ( n − t + 1 ) + ln δ 1 ) . (150)
Both N b a t c h N_{\mathrm{batch}} N batch and the update bound N t o t N_{\mathrm{tot}} N tot are polylogarithmic in n n n and 1 / δ 1/\delta 1/ δ . Unsuccessful targets terminate with a reported failure, so these are also runtime caps. Redundant proposals are skipped.
The floor in Eq. (142) gives
Δ ε min = κ ε t o t N t o t , Δ ε g a p = κ 2 ε t o t N t o t , (151) \Delta\varepsilon_{\min}=\frac{\kappa\varepsilon_{\mathrm{tot}}}{N_{\mathrm{tot}}},\qquad\Delta\varepsilon_{\mathrm{gap}}=\frac{\kappa^2\varepsilon_{\mathrm{tot}}}{N_{\mathrm{tot}}}, \tag*{(151)} Δ ε m i n = N tot κ ε tot , Δ ε gap = N tot κ 2 ε tot , (151)
the second being the verifier slack times the floor, with ε t o t = min { ε , ( 1 − λ ) 2 / 8 } \varepsilon_{\mathrm{tot}}=\min\{\varepsilon,(1-\lambda)^2/8\} ε tot = min { ε , ( 1 − λ ) 2 /8 } . Eq. (136) then yields M v e r = O ~ ( n / ε t o t 2 ) M_{\mathrm{ver}}=\widetilde{O}(n/\varepsilon_{\mathrm{tot}}^2) M ver = O ( n / ε tot 2 ) . The batch sizes of Eq. (143) have coverage thresholds between ( 1 − κ ) Δ ε min (1-\kappa)\Delta\varepsilon_{\min} ( 1 − κ ) Δ ε m i n and γ min / 7 \gamma_{\min}/7 γ m i n /7 , so with q min = γ min 2 q_{\min}=\gamma_{\min}^2 q m i n = γ m i n 2 they give
N d i f f = O ( N b a t c h q min [ n + ( t + 1 ) N t o t κ ε t o t ] ) . (152) N_{\mathrm{diff}}=O\left(\frac{N_{\mathrm{batch}}}{q_{\min}}\left[n+\frac{(t+1)N_{\mathrm{tot}}}{\kappa\varepsilon_{\mathrm{tot}}}\right]\right). \tag*{(152)} N diff = O ( q m i n N batch [ n + κ ε tot ( t + 1 ) N tot ] ) . (152)
There is at most one radical query per batch, including rejected proposals, so the total classical cost is
O ( n 2 N d i f f + N b a t c h ( n 3 + n 2 M v e r ) ) . (153) O\left(n^2N_{\mathrm{diff}}+N_{\mathrm{batch}}(n^3+n^2M_{\mathrm{ver}})\right). \tag*{(153)} O ( n 2 N diff + N batch ( n 3 + n 2 M ver ) ) . (153)
With q min = Ω ( 1 ) q_{\min}=\Omega(1) q m i n = Ω ( 1 ) , t ≤ n t\le n t ≤ n , and 0 < ε ≤ 1 0<\varepsilon\le1 0 < ε ≤ 1 , so that ε t o t = Θ ( ε ) \varepsilon_{\mathrm{tot}}=\Theta(\varepsilon) ε tot = Θ ( ε ) , these give O ~ ( n / ε 2 ) \widetilde{O}(n/\varepsilon^2) O ( n / ε 2 ) copies and O ~ ( n 3 / ε 2 ) \widetilde{O}(n^3/\varepsilon^2) O ( n 3 / ε 2 ) classical bit operations. The factors involving q min q_{\min} q m i n and retained purity must be kept when those quantities are not bounded below by constants.