How tight the bounds are

What the bounds cost finds the bound on the direct implementation nearly exact, and the bound on CliNR far above the measured rate: at the pairs with checks that measurement chooses, between 1.4 and 25.8 times. We take the CliNR bound apart to see where that slack comes from. We first describe how each ingredient of the bound is replaced by what actually happens, then read off the slack ingredient by ingredient, look closely at the one that dominates for restricted checks, and close with the bound on the gate overhead.

Replacing the bound’s ingredients

For one chunk, the bound of Checks and bounds is

\[\frac{g_{\mathrm{resource}} \, q^r + g_{\mathrm{check}} \, e_r + g_{\mathrm{teleport}}}{1 - g_{\mathrm{protected}}},\]

and clinr.bounds.plog_terms() returns these terms for each chunk. Each ingredient is a worst case, and we replace them in turn, at each of the 270 pairs that measurement chooses in the regret experiment:

  1. Harmless faults. Each \(g\) charges every fault of its region, whether or not it damages the output. We scale it by the fraction of the region’s faults that do.

  2. Detection. \(q^r\) and \(e_r\) assume that every check misses with the family’s worst-case probability, and that a fault in a check gadget is seen only by the later checks. We replace both by the faults that escape the checks actually drawn.

  3. Acceptance. \(1 - g_{\mathrm{protected}}\) is the probability that nothing in the protected region faults, which is less than the probability that the checks pass. We replace it by the measured acceptance.

  4. Multiple faults. The first two replacements count faults one at a time. The measured logical error rate accounts for every combination.

The fractions in the first two steps are exact to first order in the error rates for each draw of the checks: clinr.first_order.faults() lists every fault of the circuit as built, with the region it occurs in and whether it flips a check or the output. They are averaged over 40 draws of the checks, and applied to the exact fault probabilities \(g\) rather than to first-order sums, which exceed them once several faults per run are likely. The measured acceptance and logical error rate are the fresh estimates of the regret experiment.

Where the slack is

../_images/6d2f980b40f03dddd9cdfb779217836e1e19ef15118d736db6b68b3bedd2d1ca.svg

The ratio of the bound to the measured logical error rate, as the product of the four factors of the replacements above. Each segment is the median of its factor over the circuits of one size; U and R mark uniform and restricted checks.

With uniform checks, the resource term is nearly exact. Of the resource’s faults, a fraction of 0.98 damages the output, and the checks let through exactly the worst case: the ratio of escaping to charged faults is 1.00. This is the argument of Checks and bounds at work: exactly half of the stabilizer group anticommutes with any damaging fault, so a uniform check misses it with probability exactly \(1/2\). The slack lies in the other terms. The check term charges each gadget at the family’s worst-case weight, and charges a fault in gadget \(j\) only the misses of the later checks. Lighter drawn checks and harmless faults bring it to 0.67 of its charge, and the escapes to 0.50 of what remains: a fault in a gadget that damages the resource usually also flips that gadget’s own outcome, a detection the bound does not count. Of the teleportation’s faults, a fraction of 0.82 damages the output.

With restricted checks, detection dominates. Under the paper’s rates the detection factor is 4.8 at \(n = 15\) and 4.9 at \(n = 25\), against 1.4 and 1.4 with uniform checks: at \(n = 25\), the drawn checks let through only 17% of what the worst case allows of the resource’s damaging faults. The next section shows which faults attain the worst case.

The last two factors grow with the number of faults per run. Under the Forte-like rates at \(n = 25\), the acceptance factor reaches 4.1 and the multiple-fault factor 2.3 with uniform checks. The bound on the acceptance is the probability that no operation faults at all, while most faults leave the checks passing; and when several faults are likely in one run, counting them one at a time overstates the rate.

Detection by position

The restricted family’s worst case, a miss of \(1 - 2/(3n)\) per check, is attained, but only by some faults. Write a fault on the resource half that carries the chunk as a Pauli \(E\) after the first \(g\) gates of the chunk \(C\), and \(E_0 = C_{\le g}^\dagger E \, C_{\le g}\) for the same fault moved back to the start of \(C\). A restricted check \(P_i \otimes C P_i C^\dagger\) anticommutes with \(E\) exactly when \(P_i\) anticommutes with \(E_0\) on qubit \(i\), and on each qubit where \(E_0\) acts, two of the three \(P_i\) do. So one restricted check catches the fault with probability \(2 \, \mathrm{wt}(E_0) / (3n)\).

../_images/1daa4be50e6c3b2492838ba8e697f889b6d8fc516a8be99772305271c422e06f.svg

Probability that one check catches a damaging fault in the resource, by where the fault occurs: in the preparation of the Bell pairs, or among the gates of the chunk, in ten equal parts in time order. Means over three circuits per size and their checks, under the paper’s rates, for random Clifford circuits and random gate sequences of the same size. The dotted line is the restricted family’s worst case, \(2/(3n)\).

A fault in the preparation of the Bell pairs touches a single pair, on which two of its three checks anticommute with it, and attains the worst case. A fault early in \(C\) is moved back through few gates and stays light, while a fault late in \(C\) is moved back through most of the circuit, and a random Clifford spreads it to weight about \(3n/4\), where the catch reaches \(1/2\), the uniform family’s. Uniform checks catch every damaging fault with probability \(1/2\) wherever it occurs. So the worst case of the restricted family is a property of the first few layers of the chunk, and the bound charges it to every fault.

How the circuit is drawn matters for the same reason. At the same number of gates, a random sequence of \(H\), \(S\) and \(CX\) spreads a fault more slowly than a random Clifford synthesized from its tableau, so its catch rises later in the chunk, and restricted checks detect less on it. The sizes of the experiment also vary the shape of the circuits: a synthesized random Clifford has about \(1.5 n^2\) gates, so \(s = n^\alpha\) with \(\alpha\) from 2.8 at \(n = 3\) to 2.1 at \(n = 25\), and part of what varies with \(n\) in these results varies with \(\alpha\).

The bound on the gate overhead

The overhead bound has two ingredients that differ from the measured overhead: the acceptance bound, and the worst-case weight of every check. Replacing the acceptance bound by the measured acceptance lowers the overhead bound by a factor of up to 4.2, while the drawn weights lower it by only 1.01 to 1.13 times. Thus, as for the logical error rate, the slack of the overhead bound lies in counting every fault as a restart.