betaFeedback

WorksPhysics and Astronomy

The practical cost of magic state cultivation

Abstract

Magic state cultivation is a promising method for preparing high-fidelity non-Clifford resource states - a central component of fault-tolerant quantum computing - with low spacetime overhead. In benchmarking cultivation, existing resource estimates assume access to noiseless transversal measurement of the output magic state to allow for postselection during the final escape stage of the cultivation process. However, such measurements would destroy the magic state and are therefore unavailable during computation. We develop an open-boundary postselection method, Caliper, that uses only nondestructive mid-circuit syndrome information and substantially outperforms existing methods operating under these constraints. In some regimes, our postselection method uniquely recovers the resource efficiency of prior estimates. However, in other cases, we observe a tradeoff. At spacetime costs reported in previous works, the achievable logical error rates can be orders of magnitude higher, and recovering the reported logical error rate requires substantially larger codes and longer escape stages. Our results highlight how practical considerations involving mid-circuit postselection can impact the design and performance of magic state cultivation protocols.

Quantum error correction (QEC) is believed to be critical for reliable quantum computation at large scales [1, 2, 3, 4, 5, 6, 7]. Recent experiments have demonstrated QEC on neutral-atom processors [8, 9, 10, 11], superconducting chips [12, 13, 14], and other platforms [15, 16, 17, 18]. Performing computation on encoded information, however, also requires fault-tolerant non-Clifford operations, which are necessary for universal quantum computation [19, 20, 21, 22, 23].

Magic state cultivation [24, 25, 26, 27, 28, 29, 30, 31, 32] has recently emerged as a leading approach for preparing magic states with low logical error rates, which can then be consumed to implement non-Clifford gates [20, 21, 33, 34, 35]. Relatively noisy magic states begin in small codes [36, 37] and are continuously refined through measurements of Clifford stabilizers and postselection [24, 25, 38]. As the post-selected logical error rates decrease, the code must be rapidly enlarged to protect the high-fidelity state in the so-called “escape” stage. As this interface is noisy, further postselection is required, implying repetitions that inflate the expected spacetime volume. The escape stage is the most expensive component of cultivation [28], so its postselection overhead is critical to the viability of the protocol.

Recent work has addressed this challenge by using sliding-scale postselection [39, 40, 41, 42, 43, 44, 45], achieving a tunable balance between post-selected error rate and acceptance fraction. One such method, the complementary gap [39, 46], can achieve exponential error suppression at high acceptance fractions [39, 40, 41, 47]. It has therefore been employed across Refs. [26, 28, 29, 30, 32] to facilitate a low-overhead escape stage. However, its use as a diagnostic requires a closed temporal boundary from a terminal measurement at the end of a circuit to yield a useful result. Applied directly to a mid-circuit observable, the complementary gap collapses into a narrow band whose width is independent of code distance, obscuring the differences in reliability needed for postselection (Supplementary Material). Existing simulations close this boundary using information from a noiseless transversal measurement of the output codeblock. In practice, this measurement would destroy the magic state, so the decoder must instead decide whether to retain it using only nondestructive syndrome information.

This creates two challenges: without the readout, less information is available, and extracting a reliable postselection metric from the remaining syndrome can be computationally expensive. These considerations motivate studying escape-stage postselection under realistic, mid-circuit conditions, where the magic state is preserved rather than measured. We refer to this setting as open-boundary postselection.

In this Letter, we develop an efficient method, Caliper, for postselection using only the syndrome information available at decision time, with latency comparable to computing the complementary gap. We find that existing efficient heuristics [43, 48, 49] can fall orders of magnitude short of the performance accessible from the same information. This deficiency can instead be compensated by expending additional quantum resources, revealing a tradeoff between classical inference and quantum overhead. Caliper substantially improves this tradeoff. Nevertheless, the consequences remain strongly protocol dependent: while some cultivation resource estimates are nearly unchanged, others require substantially larger codes and longer escape stages to approach their reported logical error rates. The resulting increase in spacetime cost per accepted magic state directly raises the resources required for non-Clifford gates, and hence for fault-tolerant algorithms whose cost is dominated by magic state preparation.

Open-boundary postselection.—For the cultivation circuits considered here, minimum-weight perfect matching (MWPM) approximates maximum-likelihood decoding by retaining the most likely error configuration in each logical class rather than summing over configurations [50, 51, 52]. For a complete syndrome σ\sigma, let w0w_0 be the minimum weight of any error configuration consistent with the observed syndrome, and let w1w_1 denote the minimum weight of any complementary error, which differs from the minimum-weight error by a nontrivial logical operator. Both can be computed via matching [53]. The complementary gap is defined as G=w1−w0G = w_1 - w_0 [39, 46], which approximates the conditional logical error probability PL(σ)≈e−G/(1+e−G)P_L(\sigma) \approx e^{-G}/(1 + e^{-G}). After computing the complementary gap, a decoder makes a postselection decision on whether to accept or discard the shot based on whether this gap GG exceeds a tunable threshold G∗G^*.

Figure 1. Magic state cultivation with mid-circuit postselection. (a) Stages of the fold-transversal cultivation protocol on the surface code from Ref. [28], which targets a logical error rate of 2×10−62 \times10^{-6}. Full error detection is used in the injection and cultivation stages (left). The escape stage (center) involves growing to a d=7d = 7 surface code and repeating r=3r = 3 rounds of error correction. Readout (right) is depicted by a transversal measurement, though it is more accurately described by a noise-free QEC round, which provides even more information. As readout cannot be performed in practice, access to σh\sigma_h is unphysical; the gap must be predicted from σv\sigma_v alone. (b) A cross-sectional view of open-boundary postselection with one spatial and one temporal dimension. Due to the hidden syndrome layer, the eventual correction, along with what constitutes a logically inequivalent correction for the complementary gap, is hard to predict. (c) Comparison of logical error rates for open- and closed-boundary postselection, evaluated at the acceptance fractions reported in Refs. [26, 28] to achieve target logical error rates (LERs) of 2×10−62 \times10^{-6} and 10−910^{-9}, respectively.

At decision time, however, the decoder only has access to a visible syndrome history σv\sigma_v. The final readout would reveal an additional, hidden (future) syndrome σh\sigma_h, giving the complete syndrome σ=σv⊕σh\sigma= \sigma_v \oplus\sigma_h [48], but this information is inaccessible in practice. Instead, we average over the potential hidden syndromes, weighting each by how likely it is based on σv\sigma_v: P^L(σv)=∑σhP(σh∣σv)P^L(σv⊕σh)\hat{P}_L(\sigma_v) = \sum_{\sigma_h} P(\sigma_h \mid\sigma_v)\hat{P}_L(\sigma_v \oplus\sigma_h).

Replacing each logical class by its minimum-weight error configuration gives

P^L(σv)=∑σhe−w1(σv⊕σh)∑σh[e−w0(σv⊕σh)+e−w1(σv⊕σh)](1)\hat{P}_L(\sigma_v) = \frac{\sum_{\sigma_h} e^{-w_1(\sigma_v\oplus\sigma_h)}}{\sum_{\sigma_h}\left[e^{-w_0(\sigma_v\oplus\sigma_h)} + e^{-w_1(\sigma_v\oplus\sigma_h)}\right]} \tag*{(1)}

Evaluating Eq. (1) requires a search over exponentially many hidden syndromes, making it challenging to identify, at low computational cost, the hidden syndromes that contribute most strongly to the estimated logical failure probability.

Caliper.— Caliper is a soft-output decoder that approximates the likelihood of an eventual logical error with low latency. Caliper approximates Eq. (1) over a set S\mathcal{S} of hidden syndromes selected by its search, and reports the open-boundary postselection score R≈−log⁡P^L(S)R \approx-\log\hat{P}_L^{(S)}. Large RR indicates a reliable shot, which is accepted when R≥R∗R \ge R^*. This plays the role of GG for open-boundary postselection, but requires searching for the hidden syndromes that dominate the estimated logical error probability and combining their contributions.

We illustrate the key idea in Figure 2. Caliper begins by decoding only the visible syndrome, with hidden detectors connected to the boundary at zero weight. The decoder finds a minimum-weight correction whose end-points in the hidden layer define an initial prediction σ^h0\hat{\sigma}_{h_0}, with weight w0∗=w0(σ^h0)w_0^*=w_0(\hat{\sigma}_{h_0}). Fixing this prediction and decoding the opposing logical class gives w1(σ^h0)w_1(\hat{\sigma}_{h_0}). These two calls to MWPM determine the complementary gap Gh0=w1(σ^h0)−w0∗G_{h_0}=w_1(\hat{\sigma}_{h_0})-w_0^* if the hidden syndrome were indeed σ^h0\hat{\sigma}_{h_0}, but it does not account for other possible outcomes, whose importance depends both on how likely they are and on the probability of a logical error if they occur. Equation (1) combines these two considerations: for a fixed visible syndrome, each predicted hidden syndrome contributes to the estimated logical error probability in proportion to e−w1(σ^h)e^{-w_1(\hat{\sigma}_h)}.

Figure 2. Overview of Caliper. (a) Caliper builds on top of the complementary gap, which when applied to the open-boundary setting returns an initial guess for the hidden syndrome σ^h0\hat{\sigma}_{h_0} and the gap. It then traverses the landscape of other possible hidden syndromes σ^h\hat{\sigma}_h to find low-weight complementary corrections, w1w_1, pruning locally suboptimal directions from the search frontier. (b) A step-by-step walkthrough of this process. In steps 1-3, Caliper finds σ^h0\hat{\sigma}_{h_0} and its first guess at the gap, w1−w0∗w_1-w_0^*. It then iteratively explores the syndrome space (steps 4-6), preferentially expanding predictions with low w1w_1, until the frontier is exhausted or the expansion limit is reached. (c) The weights of the corrections for each prediction (top) contribute to the score RR (bottom). A predicted hidden syndrome with nearly tied corrections can lower RR below the acceptance threshold; further predictions continue to adjust the sums.

Our key observation is that the structure of minimum-weight matching allows this space to be explored efficiently. Moving a −1-1 syndrome from uu to vv changes the optimal correction weight by at most the shortest-path distance between them, accounting for the logical parity of the path. The required graph distances can all be pre-computed once for the circuit (Supplementary Material), immediately bounding the weights for nearby syndromes.

Furthermore, flipping one hidden detector requires changing the minimum-weight correction only along a path starting at that detector. Caliper can therefore search for the new correction using precomputed distances, calling MWPM only when needed to resolve the smallest weights. This enables Caliper to explore the neighborhood of a syndrome without decoding every prediction separately.

Caliper uses this observation to traverse the hidden-syndrome space in Figure 2. Starting from σ^h0\hat{\sigma}_{h_0}, it evaluates hidden syndromes that differ by one hidden detector value and preferentially continues from those with low w1w_1. This directs the search toward the syndromes that contribute most strongly to the estimated logical error probability. Caliper also permits steps that increase w1w_1 during an initial exploration period, subject to certain constraints. In the Supplementary Material, we extend the search to exhaust the frontier and increase its budget, finding only marginal reductions in logical error rate in the regimes of interest at a substantial increase in evaluation time.

Despite exploring a large number of hidden syndromes, for f=3f=3 surface code cultivation, Caliper spends only tens of nanoseconds on each prediction, thanks to the precomputed graph distances. The resulting latency is within a factor of two of computing the complementary gap in closed-boundary postselection (End Matter).

Numerical simulations.—With Stim [57], we simulate ∣Yˉ⟩\lvert\bar{Y}\rangle state cultivation—an efficient proxy for ∣Tˉ⟩\lvert\bar{T}\rangle state simulation—using the circuits of Refs. [26, 28, 56], which we respectively refer to as color and (fold-transversal) surface code cultivation. We use the same circuits and circuit-level depolarizing noise model (SD6), with physical error rate p=10−3p=10^{-3}, and compare the logical error rate achieved as a function of the escape-stage postselection strength.

The results are shown in Figure 3. Across all panels, Caliper achieves an equal or lower logical error rate at any fixed discard rate than the other open-boundary methods tested. For the fault distance 3 (f=3f = 3) color code cultivation, it performs nearly indistinguishably from the closed-boundary curve, which most other methods also approximately follow. By contrast, in f=3f = 3 surface code cultivation, the lowest achieved logical error rates are separated from closed-boundary performance by at least an order of magnitude. Even full error detection on the visible syndromes achieves an error rate of 1.4×10−51.4 \times10^{-5}, exceeding the target by almost an order of magnitude. Caliper alone smoothly interpolates down to this performance. Our low-noise bound for full error detection (Supplementary Material) suggests that the separation may reflect fundamental limits of the available information.

Figure 3. Achievable suppression of logical error rate with open-boundary postselection. We compare the logical error rate achieved under closed-boundary postselection at a tunable discard rate for the escape stage (gray) with those achieved by various open-boundary postselection protocols, including Caliper (blue), string splitting (red) [48], the frozen gap (green) [49, 54], and cluster-based confidence (purple) [43, 55] for the protocols in Refs. [26, 28, 56]. Target LERs of 2×10−62 \times10^{-6} for fault distance 3 (f=3f = 3) cultivation and 10−910^{-9} for distance 5 (f=5f = 5) cultivation are annotated. Our reproduction of closed-boundary postselection matches the data in Refs. [26, 28] to within error bars, and the discard rate at which these curves reach the target LER is highlighted. Dashed horizontal lines indicate the LER plateaus reached when the postselection metrics saturate. At these points, each metric can no longer discriminate among the remaining shots by their likelihood of logical failure. The performance under full error detection is shown for f=3f = 3 surface code cultivation, with a discard rate of ∼82.4%\sim82.4\%; no shots passed full error detection for the other protocols.

In the larger f=5f = 5 color code scheme, Caliper outperforms existing methods by orders of magnitude at the relevant acceptance fractions. For instance, producing ∣T‾⟩|\overline{T}\rangle states at logical error rates of 10−710^{-7} is a common primitive in proposed fault-tolerant architectures [26, 58, 59, 60, 61]. Caliper reaches this target with an expected space-time volume per accepted state only 10% above that of closed-boundary postselection. The frozen gap [49], the only other method we benchmarked to reach this error rate, requires approximately 7×7 \times the closed-boundary volume. Reaching the more stringent 10−910^{-9} target with Caliper requires an escape-stage acceptance fraction of 6.4%, compared with 23.7% for closed-boundary postselection. The expected spacetime volume is therefore approximately 3.7×3.7 \times larger. Even accepting only a few percent of shots, the f=5f = 5 surface code protocol [62] under open-boundary postselection exhibits a logical error around 10−710^{-7}.

A curious suggestion from Figure 3 is that the performance gap between open- and closed-boundary postselection appears far larger for surface code cultivation than color code cultivation. As it turns out, these protocols differ considerably in the size of their escape stages. For f=3f = 3 surface code cultivation, the code is grown to d=7d = 7 and r=3r = 3 rounds of stabilizer measurements are performed before deciding whether to keep the attempt. The f=3f = 3 color code escape stage instead uses r=9r = 9 rounds in a d=15d = 15 grafted code—roughly a 14×14\times larger syndrome. This motivates studying modifications to the surface code escape stage.

Indeed, in Figure 4, we independently vary the escape distance and number of QEC cycles before running Caliper. Increasing the number of rounds alone leads to only an incremental reduction in logical error rate, despite a d=7d = 7 surface code being large enough to maintain a rate of order 10−610^{-6} per cycle. Recovering the target 2×10−62 \times10^{-6} requires increasing both the distance and the number of rounds, contrary to the usual expectation that dd rounds of repeated syndrome extraction equate to a noiseless transversal measurement. Among the escape stages studied, the expected spacetime volume needed to reach this target is minimized with r=6r = 6, d=11d = 11, and 50% escape-stage acceptance. This results in an escape stage roughly 5×5\times the size reported in Ref. [28], translating to roughly a 5×5\times increase in expected spacetime volume for the entire protocol.

Figure 4. Logical error rates under various escape stages. The escape distance dd and number of escape rounds rr parameterize the volume of the escape stage. We evaluate the resulting LERs at 68% escape-stage acceptance fraction, matching the rate reported in Ref. [28] to reach 2×10−62 \times10^{-6} for their f=3f = 3 surface code cultivation protocol. The outlined cells at d=7d = 7, r=3r = 3 correspond to the escape stage circuit proposed therein.

Finally, we study the discrepancy between open- and closed-boundary postselection, tracing it in part to rare shots in which the hidden syndrome substantially erodes the closed-boundary gap (End Matter). These shots can be readily discarded using the readout but cannot be identified from visible information alone. We develop a phenomenological theory of this effect and hypothesize that a large escape stage is needed to keep the noisy interface between the cultivation and escape stages far from both the spatial boundaries of the code and the open temporal boundary in order to mitigate erosion.

Outlook.— Our results show that fast and accurate mid-circuit postselection can be implemented on matchable codes. In some instances, Caliper recovers the logical error rates reported under closed-boundary postselection at nearly unchanged spacetime cost. However, for other protocols and target error rates, the cost of cultivation in practice may be significantly larger than previously expected, raising the resource overheads of architectural proposals based on its closed-boundary performance [58, 63, 64, 65, 66, 67, 68]. Recent work has also developed exact simulations of non-Clifford ∣T‾⟩|\overline{T}\rangle cultivation [69, 70, 71, 72, 73, 74, 75], some finding discrepancies with ∣Y‾⟩|\overline{Y}\rangle proxies. An exact simulation with open-boundary postselection is therefore an important direction for determining how realistic escape stages affect these discrepancies.

Nevertheless, it may be possible to mitigate the cost of practical postselection by optimizing escape proto-

cols. For example, adaptive escape schemes [76] could reserve large escape stages for rare, high-risk shots (Supplementary Material), reducing the average overhead required to achieve high fidelities. Simultaneously, more sophisticated inference, including ensembling [77] and machine learning [9, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91], could improve on Caliper’s performance. Neural decoders, in particular, can provide postselection metrics based on decoder confidence that approximate a logical gap and outperform the surface code complementary gap in closed-boundary experiments [78, 80, 85]. Extending these metrics to open boundaries poses challenges analogous to those for the complementary gap, and adapting them will require training to estimate the probability of eventual decoding failure using only the visible syndrome. Caliper can provide a benchmark for this task.

We expect the broader lessons on realistic postselection to extend to resource-state preparation with high-rate quantum low-density parity-check codes [92, 93, 94, 95]. The analogue of an escape stage for these protocols should likewise be co-designed with mid-circuit postselection.

Acknowledgements.— We acknowledge helpful discussions with Andi Gu, Nazli Ugur Koyluoglu, Luke Coffman, Nishad Maskara, and Kaavya Sahay. We also thank the authors of Refs. [26, 28] for making their circuits and simulation data open source. The authors acknowledge the use of Anthropic’s Claude Fable 5 to assist in writing the simulation code for this work. All code was reviewed, tested, and validated by the authors. This work was supported by Anthropic under the AI for Science program, the National Science Foundation (CCF 2313084), the CUA Physics Frontiers Center (PHY-2317134) and NVQL (PHY-2410716), IARPA and the Army Research Office, under the Entangled Logical Qubits program (W911NF 23-2-0219), the DARPA MeasQuIT program (HR0011-24-9-0359), and QuEra Computing.

Data availability.— The data supporting this work are available at https://github.com/rohanmehtagithub/MSC-data.

End Matter

Algorithmic description of Caliper.— Algorithm 1 summarizes the search. The distance table stores minimum path weights between graph nodes, including the spatial boundaries of the code. Caliper sums over all evaluated predictions in SS to estimate RR. For weights not known exactly, it uses the smallest correction weight found so far.

Algorithm 1 Caliper

Require: Visible syndrome σv\sigma_v, distance table, limits bb, BB, depth and branching limits

  1. Decode σv\sigma_v with hidden detectors free to obtain σ^h0\hat{\sigma}_{h0} and w0(σ^h0)w_0(\hat{\sigma}_{h0}).

  2. Fix σ^h0\hat{\sigma}_{h0} and decode the opposing logical class to obtain w1(σ^h0)w_1(\hat{\sigma}_{h0}).

  3. Initialize S←{σ^h0}S \leftarrow\{\hat{\sigma}_{h0}\}, Q←{σ^h0}Q \leftarrow\{\hat{\sigma}_{h0}\}; n←0n \leftarrow0.

  4. while Q≠∅Q \ne\varnothing and n<Bn < B do

  5. Take σ^h\hat{\sigma}_h with lowest estimated w1w_1 from QQ.

  6. N←N \leftarrow hidden syndromes differing from σ^h\hat{\sigma}_h by one hidden detector value.

  7. Bound the matching weights using the distance table, then tighten the bounds by updating known corrections.

  8. Use MWPM as needed to determine the smallest weights.

  9. Store the weight estimates and bounds; S←S∪NS \leftarrow S \cup N.

  10. n←n+1n \leftarrow n + 1.

  11. Select predictions in NN whose bounds allow w1w_1 to stay the same or decrease, favoring low estimates of w1w_1 and respecting the depth and branching limits.

  12. if n≤bn \le b and N≠∅N \ne\varnothing then

  13. Also select the prediction in NN with lowest estimated w1w_1.

  14. end if

  15. Add selected predictions to QQ only if not previously queued.

  16. end while

  17. return RR from Eq. (40).

In the Supplementary Material, we detail the input parameters employed for the simulations in the main text, along with the effect of longer searches.

Latency.— A critical aspect of any mid-circuit postselection metric is the speed at which it can be computed. Its result directly determines the subsequent computation, so the quantum computation must idle in the meantime [96, 97]. By using precomputed graph distances, Caliper achieves a latency comparable to computing the complementary gap. Caliper is written primarily in C++; for f=3f = 3 surface code cultivation, Caliper takes a median of 25.3 μs\mu\mathrm{s} per shot, compared with 15.5 μs\mu\mathrm{s} for the closed-boundary complementary gap (measured over 10410^4 shots) on one core of an Apple M4 processor.

It can be further accelerated since, in practice, Caliper needs only to determine whether the score exceeds the acceptance threshold R∗R^*. Shots with an initial score sufficiently far below R∗R^* can often be discarded before exploring further hidden syndromes. We set this early-rejection criterion from the observed changes in RR during the search. Figure 5 compares the resulting decision latencies with those of the thresholded closed-boundary gap.

Figure 5. Thresholded postselection latency. Distributions of the time per shot for the closed-boundary complementary gap (gray) and Caliper (blue), grouped by the closed-boundary gap, for (a) f=3f = 3 surface code cultivation and (b) f=5f = 5 color code cultivation. Both methods determine whether their score meets an acceptance threshold. Vertical marks indicate the median within each group.

On neutral-atom hardware, where a standard QEC cycle has a timescale on the order of milliseconds [9, 11], Caliper applied to the f=3f = 3 protocols is fast enough to output a decision without additional idling. The larger protocols may require faster execution or a modest number of additional QEC cycles to bridge the reaction time [26, 97]. On the microsecond timescales of superconducting hardware [13], however, both the complementary gap—even with a closed boundary—and Caliper may require substantial acceleration, potentially using specialized hardware such as FPGAs [98, 99, 100, 101]. In part, this is because, from our estimates, identifying the most likely class takes tens of microseconds, while the MWPM calculation for the complementary class can be up to 30×\times slower. Without such acceleration, the spacetime cost of preserving the state while awaiting the postselection decision could dominate the cost of cultivation.

Calibration.— An ideal postselection method is well-calibrated, which means that it can accurately predict the posterior LER that will occur at whatever postselection strength we choose. Calibration is not strictly necessary for a postselection method to perform well; clustering-based metrics [43], for example, do not predict the post-selected LER but can still rank shots by how likely to fail. they seem. Nevertheless, calibration provides an illuminating diagnostic: it allows us to test whether a method’s estimated confidence faithfully reflects the observed distribution and, when it does not, to empirically investigate why.

In Figure 6, we plot a reliability diagram for Caliper, along with closed-boundary complementary gap. A perfectly calibrated metric would follow the y=xy=x line, where the predicted and actual probabilities of logical failure are identical. Even in the closed-boundary setting, the complementary gap appears miscalibrated, consistently underestimating logical error rates. The reason for this overconfidence is well-understood: the predicted logical error rate is computed from the complementary gap GG as P^L≈e−G/(1+e−G)\hat{P}_{L} \approx e^{-G}/(1+e^{-G}) [39, 46], but it neglects the entropic factors that describe the number of degenerate error mechanisms that produce gap GG, along with higher-gap mechanisms [50, 102]. At low but finite pp, the contribution from higher-gap mechanisms is negligible, leaving only the number of degenerate gap GG mechanisms, N(G)N(G). The closed-boundary calibration curve is well-described by a linear relationship on the log-log plot of Figure 6; a linear fit achieves R2≃0.97R^2 \simeq0.97 and slope 1−T1-T, where T≃0.18T \simeq0.18 describes the effective (dimensionless) temperature of the system. For reference, the perfect calibration line corresponds to zero effective temperature, which is realized in the p→0p \to0 limit [50, 103].

Figure 6. Calibrations of Caliper and the complementary gap for f=3f=3 surface code cultivation. A power law fit, corresponding to a finite effective temperature TT, is applied to the closed boundary curve. Caliper is fit according to the phenomenological law (5).

From the fit, we also obtain an empirical entropy model with prefactor c0c_0:

N^(G)≈c0e−(1−T)G/e−G=c0eTG.(2)\hat{N}(G) \approx c_0 e^{-(1-T)G}/e^{-G} = c_0 e^{TG}. \tag*{(2)}

This is consistent with our expectation that with a gap of GG, the domain wall excitation corresponds to a string of length L∝GL \propto G, and there are NL∝exp⁡(L)N_L \propto\exp(L) such strings, so the entropy of the system scales as ΔS∝log⁡N(G)∝G\Delta S \propto\log N(G) \propto G [50]. Precisely in this sense, as T→0T \to0, the closed-boundary curve is perfectly calibrated since the complementary gap’s zero-temperature approximation becomes exact.

For the open-boundary setting, Caliper consistently underestimates the logical error rate by an even wider margin than the complementary gap. Moreover, its calibration curve is manifestly non-linear. In part, this is because the failure probability conditioned on the open-boundary score RR depends indirectly on RR. By the tower property,

Pr⁡(Fail∣R)=EG∼ρG∣R[Pr⁡(Fail∣G,R)∣R](3)\Pr(\mathrm{Fail}\mid R)=\mathbb{E}_{G\sim\rho_{G\mid R}}\left[\Pr(\mathrm{Fail}\mid G,R)\mid R\right] \tag*{(3)}

This is averaged over, and thus depends on, the distribution of gaps GG given RR, ρG∣R\rho_{G\mid R}. To leading order, the conditional LER depends only on GG: Pr⁡(Fail∣G,R)≈Pr⁡(Fail∣G)\Pr(\mathrm{Fail}\mid G,R)\approx\Pr(\mathrm{Fail}\mid G), where the only RR-dependence in the conditional LER is through ρG∣R\rho_{G\mid R}, and we numerically verify this behavior (SM). The non-linearity of the calibration curve is also expected to arise from ρG∣R\rho_{G\mid R}.

Thus, we study ρG∣R\rho_{G\mid R} in further empirical detail and summarize here the results; a more thorough discussion can be found in the Supplementary Material. We observe that for the most part, the closed-boundary complementary gap GG and Caliper score RR are close. However, in a select few instances, the hidden syndrome reveals information that results in G≪RG \ll R: a phenomenon we call erosion. Δ=R−G\Delta=R-G measures the shortfall of the realized gap relative to the open-boundary score, with larger Δ\Delta leading to larger discrepancies between the LER predicted by Caliper and reality. It is even possible for a maximally large open-boundary score RR to erode to a near-zero gap, at which point the decoding result is effectively random. That said, erosion is rare. Outside of R∼GR\sim G, we find that the probability R−G=ΔR-G=\Delta is exponentially suppressed in Δ\Delta, where ρ(G∣R)≈Ae−κΔ\rho(G\mid R)\approx Ae^{-\kappa\Delta}. The eroded fraction of shots at RR is

ER=∫0Rρ(Δ) dΔ=E∞(1−e−κR),(4)E_R=\int_0^R \rho(\Delta)\,\mathrm{d}\Delta=E_\infty(1-e^{-\kappa R}), \tag*{(4)}

where E∞=A/κE_\infty=A/\kappa is the asymptotic eroded fraction in this model. A shot at RR either did not erode and fails at a closed-boundary gap RR or erodes by Δ\Delta and fails at a gap R−ΔR-\Delta. Noting that ρ(Δ)→0\rho(\Delta)\to0 exponentially quickly as Δ→∞\Delta\to\infty, we obtain

Pr⁡(Fail∣R)≈[1−ER]c0e−(1−T)R+Be−κR,(5)\Pr(\mathrm{Fail}\mid R)\approx[1-E_R]c_0e^{-(1-T)R}+Be^{-\kappa R}, \tag*{(5)}

where TT is the same temperature as in the closed-boundary setting and BB is the amplitude of the contribution from eroded shots. We determine κ\kappa from the negative slope of a weighted linear fit to log⁡ρ(Δ)\log\rho(\Delta) versus Δ\Delta, excluding the peak near Δ=0\Delta=0. For each Δ\Delta, we pool shots with R≥ΔR\ge\Delta; the fitted amplitude gives AA.

Additional benchmarking

In this section, we supply additional results from our numerical study of open-boundary postselection, elaborating on the results detailed in the main text. Figure S1 shows how the logical error rate varies with the acceptance fraction for open-boundary postselection across modifications to the escape stage for f=3f = 3 surface code cultivation. Figure 4 is obtained by evaluating the logical error rate at the acceptance fraction corresponding to where closed-boundary postselection reaches the target logical error rate. As shown, the effects in Figure 4 due to insufficiently large escape stages persist at other acceptance fractions as well.

Figure S1. Logical error rate versus discard rate for larger escape stages. The curves for Caliper (blue) and closed-boundary postselection (gray) are depicted for escape code distances d=7,11,15d = 7, 11, 15 and idling round counts r=2,4,…,10r = 2, 4, \ldots, 10.

Figure S2 showcases the decoder latency for Caliper in further detail, evaluated in the same circumstances as in Figure 5. Without thresholding, Caliper is much slower than the closed-boundary complementary gap. This is because Caliper might spend considerable time searching the hidden syndrome space to estimate the open-boundary score more accurately, despite already having adequate information to conclude that a given shot should be discarded. The complementary gap is not accelerated to the same extent since it lacks Caliper’s iterative, adaptive search structure. That being said, it may be possible to apply principles from thresholding to speed up estimates of gap-like quantities in non-matchable decoding settings [44, 45, 104, 105].

Postselection decision latency plots

Figure S2. Postselection decision latency. (a) Frequency distribution of latencies for computing the closed boundary complementary gap in f=5f=5 color code cultivation. Exact corresponds to evaluating this gap completely, whereas thresholded requires computing whether the gap is less than a threshold value G∗G^{*}, calibrated here to the acceptance fraction that reaches the target LER of 10−910^{-9}. (b) The corresponding plot for Caliper, where the score threshold R∗R^{*} is determined by the same acceptance fraction. (c) Breakdown of the thresholded curve by the decision to accept or discard the shot. (d)-(f) Extension of (a)-(c) to f=3f=3 surface code cultivation, with the gap threshold determined by the target LER of 2×10−62 \times10^{-6}.

Next, we complement our discussion of erosion in the End Matter with additional numerics. There, we claimed that, to good approximation, P(Fail∣G,R)≈P(Fail∣G)P(\mathrm{Fail} \mid G, R) \approx P(\mathrm{Fail} \mid G). This is supported by Figure S3, where we find that P(Fail∣G,R)P(\mathrm{Fail} \mid G, R) is approximately constant at fixed GG over a range of RR. A higher-order effect arises in the neighborhood of R=GR = G, where we find that P(Fail∣G,R)P(\mathrm{Fail} \mid G, R) decreases slightly; we defer studying its cause to future work.

Figure S3. Dependence of logical error rate on RR and GG. Data for panels correspond to f=3f=3 surface code cultivation. (a) Logical error rate versus both the Caliper score RR and the eventual closed boundary gap GG. Gray squares correspond to (R,G)(R,G) pairs with fewer than 20 failures. (b) Sensitivity of the joint LER P(Fail∣G,R)P(\mathrm{Fail}\mid G,R) to RR alone, binned by the eventual closed-boundary gap. Boxed points correspond to instances where RR and GG are in the same 5 dB bin.

This effect in part is explained by Figure S4, where we find that modifying the escape stage appears to have a negligible impact on the calibration curve for closed-boundary postselection but considerably alters the phenomenology for open-boundary postselection. The fact that closed-boundary postselection remains barely affected is consistent with Ref. [28]. There, after r=3r = 3 rounds of syndrome extraction in the d=7d = 7 surface code, the authors unitarily grow to a d=13d = 13 surface code and append a variable number of idling rounds at that distance prior to readout, and they find that these additional idling rounds have virtually no impact on the performance of cultivation. Our results indicate that this behavior is not necessarily an accurate proxy for how altering the escape stage affects open-boundary postselection. Figure S4 shows that for Caliper, the different escape stages perform comparably at high logical error rates but they separate at low logical error rates. They each follow the functional form of erosion described by Eq. (5), but with different parameters. In Figure S4 and (Figure S4), we observe that κ\kappa, which describes how quickly the effect of erosion drops off, increases as the escape stage grows in volume, and E∞E_{\infty}, the total probability of erosion, decreases. This model suggests that increasing the size of the escape stage serves to suppress erosion until the bottleneck becomes the attainable logical error rate even with the closed-boundary complementary gap.

Figure S4. Effect of modified escape stages on calibration. Calibrations of the closed-boundary gap (a) and Caliper (b) as the number of idling rounds rr and distance of the escape code dd are increased. The linear fit shown in (a) is calculated by pooling the data across the different escape stages. The same line is illustrated in (b), along with the fit to the phenomenological description of erosion (5) for each open-boundary curve. The decay rate κ\kappa and asymptotic eroded fraction E∞E_{\infty} in Eq. (4) are extracted from fits to the erosion density for each escape stage independently and plotted against the escape stage size in (c) and (d).

Figure S5 compares vanilla and correlated matching for f=3f = 3 surface code cultivation. Correlated matching lowers the logical error rate at fixed discard rate for both the closed-boundary complementary gap and Caliper. Finally, Figure S6 shows the effect of increasing Caliper’s search depth. The reductions in logical error rate are modest compared with the increase in evaluation time.

Figure S5. Correlated matching. Ratio of logical error rates with correlated and vanilla matching at fixed discard rate for the closed-boundary complementary gap and Caliper in f=3f=3 surface code cultivation.

Logical error rate relative to Fig. 3 data

(a)

Cost ratio relative to Fig. 3 data

(b)

Figure S6. Caliper search depth. (a) Logical error rate at fixed acceptance, relative to the corresponding data in Figure 3, as the search depth increases. (b) Mean number of expansions per shot and mean search time, normalized to the same reference.

Guarantees from Caliper

In this section, we establish the properties of matching that allow Caliper to efficiently search over possible hidden syndromes. Throughout, we work in the most-likely-error approximation used in the main text. Exact maximum-likelihood decoding is #P-hard in general [106]. As an efficient proxy, matching retains only the most likely error configuration in each logical class.

Matchable detector error models

Definition 2.1 (Detector error model). Consider a circuit subject to a set E\mathcal{E} of independent elementary error mechanisms. Each mechanism ε∈E\varepsilon\in\mathcal{E} occurs with probability pεp_{\varepsilon} and flips a set of detectors ∂ε\partial\varepsilon. It may also flip the logical observable, in which case we call ε\varepsilon marked. The collection of error mechanisms together with their detector syndromes, logical outcomes, and probabilities defines the detector error model (DEM) of the circuit.

For an error configuration E⊆EE \subseteq\mathcal{E}, the observed syndrome is

∂E=⨁ε∈E∂ε,(6)\partial E = \bigoplus_{\varepsilon\in E} \partial\varepsilon, \tag*{(6)}

and its logical outcome is the parity of the marked mechanisms in EE. Since the mechanisms occur independently,

P(E)=∏ε∈Epε∏ε∉E(1−pε)=κe−w(E),(7)P(E) = \prod_{\varepsilon\in E} p_{\varepsilon} \prod_{\varepsilon\notin E} (1-p_{\varepsilon}) = \kappa e^{-w(E)}, \tag*{(7)}

where κ\kappa is independent of EE and

w(E)=∑ε∈Eωε,ωε=log⁡(1−pεpε).(8)w(E) = \sum_{\varepsilon\in E} \omega_{\varepsilon}, \qquad\omega_{\varepsilon} = \log\left(\frac{1-p_{\varepsilon}}{p_{\varepsilon}}\right). \tag*{(8)}

As in the main text, weights and scores use natural logarithms. Where figures quote values in dB, the conversion is 10/ln 10 dB per natural-log unit. We assume the weights are positive.

Definition 2.2 (Matchable DEM). A detector error model is matchable if every elementary error mechanism flips at most two detectors,

∣∂ε∣≤2for all ε∈E.(9)|\partial\varepsilon| \le2 \qquad\text{for all } \varepsilon\in\mathcal{E}. \tag*{(9)}

A matchable DEM has a weighted graph representation. Each detector is represented by a vertex. A mechanism that flips two detectors uu and vv gives an edge between uu and vv, while a mechanism that flips a single detector is connected to a virtual boundary vertex. Boundary vertices carry no detector constraint. Each edge has weight ωε\omega_{\varepsilon}, and an edge is marked exactly when the corresponding mechanism flips the logical observable. Parallel edges may be retained.

For a detector syndrome SS, a correction is an edge set MM whose odd-degree detector vertices are precisely SS; no parity constraint is imposed on virtual boundary vertices. Its weight is

∥M∥=∑ε∈Mωε.(10)\lVert M\rVert= \sum_{\varepsilon\in M} \omega_{\varepsilon}. \tag*{(10)}

Let W0(S)W_0(S) and W1(S)W_1(S) be the minimum weights of corrections with even and odd marked-edge parity, respectively. We write

w0(S)=min⁡{W0(S),W1(S)},w1(S)=max⁡{W0(S),W1(S)}.(11)w_0(S) = \min\{W_0(S), W_1(S)\}, \qquad w_1(S) = \max\{W_0(S), W_1(S)\}. \tag*{(11)}

The complementary gap is therefore

G(S)=w1(S)−w0(S).(12)G(S) = w_1(S) - w_0(S). \tag*{(12)}

Because all edge weights are positive, a minimum-weight correction contains no unnecessary closed loops. It may

therefore be written as a collection of paths pairing syndrome defects either with one another or with a boundary. Replacing every such path by a shortest path cannot increase the weight. This gives the usual reduction to minimum-weight perfect matching.

It will be useful below to keep track of the logical parity of a path. Let

db(u,v),b∈{0,1},(13)d_b(u,v), \qquad b \in\{0,1\}, \tag*{(13)}

denote the minimum weight of a path from uu to vv containing marked edges of parity bb. These distances depend only on the DEM and can therefore be precomputed. They can be obtained by running shortest-path search on the graph in which each vertex is doubled according to the accumulated marked-edge parity. When the logical parity is irrelevant, we write

d(u,v)=min⁡{d0(u,v),d1(u,v)}.(14)d(u,v)=\min\{d_0(u,v),d_1(u,v)\}. \tag*{(14)}

For a decoding graph with VV vertices and EE edges, the full distance table can be constructed by repeated Dijkstra searches in O(V(V+E)log⁡V)O(V(V+E)\log V) time and stored in O(V2)O(V^2) memory. Tracking logical parity changes these costs only by constant factors. The table is computed once for each circuit and noise model and is reused across shots.

Changing a syndrome

We now establish the basic observation used by Caliper. Suppose a syndrome SS is changed to S⊕TS \oplus T, where TT is a set of detector flips. Let MM be a minimum-weight correction for SS. For any edge set JJ, define its net cost relative to MM by

cM(J)=∑ε∈J∖Mωε−∑ε∈J∩Mωε.(15)c_M(J)=\sum_{\varepsilon\in J\setminus M}\omega_\varepsilon-\sum_{\varepsilon\in J\cap M}\omega_\varepsilon. \tag*{(15)}

This is exactly the change in weight produced by replacing MM by M⊕JM\oplus J.

Lemma 2.3 (Exact change under a syndrome modification). Let MℓM_\ell be a minimum-weight correction of syndrome SS in logical class ℓ\ell. Then

Wℓ⊕b(S⊕T)−Wℓ(S)=min⁡JcMℓ(J),(16)W_{\ell\oplus b}(S\oplus T)-W_\ell(S)=\min_J c_{M_\ell}(J), \tag*{(16)}

where the minimum is over edge sets JJ whose odd-degree detector vertices are exactly TT and whose marked-edge parity is bb.

Proof. For every allowed JJ, the edge set Mℓ⊕JM_\ell\oplus J has syndrome S⊕TS\oplus T and logical class ℓ⊕b\ell\oplus b. Hence

Wℓ⊕b(S⊕T)≤Wℓ(S)+cMℓ(J).(17)W_{\ell\oplus b}(S\oplus T)\le W_\ell(S)+c_{M_\ell}(J). \tag*{(17)}

Minimizing over JJ gives one inequality.

Conversely, let M′M' be a minimum-weight correction of S⊕TS\oplus T in class ℓ⊕b\ell\oplus b. Then

J=Mℓ⊕M′(18)J=M_\ell\oplus M' \tag*{(18)}

has detector boundary TT, marked-edge parity bb, and

cMℓ(J)=∥M′∥−∥Mℓ∥=Wℓ⊕b(S⊕T)−Wℓ(S).(19)c_{M_\ell}(J)=\lVert M'\rVert-\lVert M_\ell\rVert=W_{\ell\oplus b}(S\oplus T)-W_\ell(S). \tag*{(19)}

Thus the bound is attained.

The important special case is the relocation of a syndrome defect from uu to vv, for which T={u,v}T=\{u,v\}.

Corollary 2.4 (Distance bound). For any uu, vv and b∈{0,1}b\in\{0,1\},

∣Wℓ⊕b(S⊕{u,v})−Wℓ(S)∣≤db(u,v).(20)\left|W_{\ell\oplus b}(S\oplus\{u,v\})-W_\ell(S)\right|\le d_b(u,v). \tag*{(20)}

Proof. Let JJ be a minimum-weight uu–vv path of marked-edge parity bb. Toggling JJ transforms any correction for (S,ℓ)(S,\ell) into a correction for (S⊕{u,v},ℓ⊕b)(S \mathbin{\oplus} \{u,v\},\ell\mathbin{\oplus} b) and changes its weight by at most ∥J∥=db(u,v)\lVert J\rVert=d_b(u,v). Hence

Wℓ⊕b(S⊕{u,v})−Wℓ(S)≤db(u,v).(21)W_{\ell\oplus b}(S \mathbin{\oplus} \{u,v\})-W_\ell(S)\le d_b(u,v). \tag*{(21)}

Applying the same path in the reverse direction gives the opposite inequality.

Thus the effect of relocating a defect can always be bounded using a table lookup. The exact change depends on how the path intersects the current correction, through Eq. (15), but its magnitude is bounded independently of the shot.

Caliper frequently does better than this bound by explicitly considering the possible local modifications of the current correction.

Lemma 2.5 (Certificate for an exact local update). Let Jloc\mathcal{J}_{\mathrm{loc}} be a set of candidate modifications with the required syndrome and logical parity, and define

cloc=min⁡J∈JloccM(J).(22)c_{\mathrm{loc}}=\min_{J\in\mathcal{J}_{\mathrm{loc}}} c_M(J). \tag*{(22)}

Suppose λ\lambda is a lower bound on cM(J)c_M(J) for every allowed modification J∉JlocJ\notin\mathcal{J}_{\mathrm{loc}}. If

cloc≤λ,(23)c_{\mathrm{loc}}\le\lambda, \tag*{(23)}

then

Wℓ⊕b(S⊕T)−Wℓ(S)=cloc.(24)W_{\ell\oplus b}(S\mathbin{\oplus}T)-W_\ell(S)=c_{\mathrm{loc}}. \tag*{(24)}

Proof. By Lemma 2.3, the exact change is the minimum net cost over all allowed modifications. Every modification outside Jloc\mathcal{J}_{\mathrm{loc}} has cost at least λ\lambda, while a modification inside Jloc\mathcal{J}_{\mathrm{loc}} has cost cloc≤λc_{\mathrm{loc}}\le\lambda. Hence the global minimum lies in Jloc\mathcal{J}_{\mathrm{loc}}.

Lemma 2.6 (Update after flipping one detector). For the decoding graphs used here, let MM be a minimum-weight correction in one logical class, written as paths pairing defects or connecting them to a boundary. After flipping a hidden detector uu, a minimum-weight correction in the same class can be found by reconnecting these pairs along one path starting at uu and ending at a boundary. The change in weight is the total weight of the new connections minus that of the removed ones.

Proof. Compare the pairs in MM with those in a minimum-weight correction after the flip. The connections appearing in only one correction form a path from uu to a boundary, together with closed loops and paths between boundaries. Each remaining loop or boundary-to-boundary path preserves all detector values and the logical class. Its net cost must be zero: a negative cost would improve MM, while a positive cost would improve the new correction when reversed. We can therefore omit these loops and paths, leaving only the path starting at uu.

Caliper explores these reconnections using the precomputed distances. It reuses calculations for the same partial update and stops exploring a choice once its lower bound exceeds the best update found so far. Once every possible update has been checked or ruled out by the bounds, the matching weight is exact. The calculation is repeated for both logical classes, then the two weights are ordered as w0≤w1w_0\le w_1.

If this calculation is too large or reaches its search limit, Caliper continues with bounds on the weights. It improves these bounds where possible and uses MWPM as needed to identify the smallest weights. A further decode may also be needed to construct the correction used in the next search step. Some weights can remain approximate.

Simulation settings.—In the main text, we use b=6b=6 and B=18B=18, select up to ten neighbors by the non-increasing rule, and apply this rule only when expanding a prediction within three flips of the initial prediction. The exact update calculation uses limits of 63 defects, 57 matched pairs, and successive limits of 2048, 32768, and 524288 partial updates. The margins for additional decoding and for correction updates are 2.5 and 5, respectively, in natural-log units.

There is a particularly useful case in which no change to the gap is possible.

Lemma 2.7 (Cancellation away from the critical path). *Let M0M_0 and M1M_1 be minimum-weight corrections for syndrome SS in the two logical classes. Suppose a class-preserving modification JJ is certified by Lemma 2.5 to be optimal for both

class corrections. If

J∩(M0⊕M1)=∅,(25)J \cap(M_0 \oplus M_1) = \varnothing, \tag*{(25)}

then

G(S⊕T)=G(S).(26)G(S \oplus T) = G(S). \tag*{(26)}

Proof. Equation (S20) implies that every edge of JJ either belongs to both M0M_0 and M1M_1 or to neither. Therefore

cM0(J)=cM1(J).(27)c_{M_0}(J) = c_{M_1}(J). \tag*{(27)}

Since JJ preserves the logical class and is optimal for both modified matching problems, Lemma 2.3 shows that W0W_0 and W1W_1 change by exactly the same amount. Their difference is therefore unchanged.

The symmetric difference M0⊕M1M_0 \oplus M_1 is the part of the matching that distinguishes the two logical classes. Lemma 2.7 therefore formalizes the intuition used by Caliper: hidden-syndrome modifications that do not interact with this region can often be shown to leave the complementary gap exactly unchanged.

Minimum-weight limit of the open-boundary score

We now apply these facts to the open-boundary problem. At the time of the postselection decision, only a subset of the detector outcomes is known. Let σv\sigma_v denote this visible syndrome. The remaining detector outcomes, which would only be revealed by the later closing measurement, form the hidden syndrome σh\sigma_h.

Definition 2.8 (Hidden-syndrome prediction). A hidden-syndrome prediction σ^h\hat{\sigma}_h is a possible assignment of outcomes to all hidden detectors. Together with the observed syndrome σv\sigma_v, it determines a prediction of the full syndrome,

σ^=σv⊕σ^h.(28)\hat{\sigma} = \sigma_v \oplus\hat{\sigma}_h. \tag*{(28)}

Different predictions correspond to different possible syndromes that could be revealed if the circuit were subsequently closed by the final measurement. For a prediction σ^h\hat{\sigma}_h, let

w0(σv⊕σ^h)(29)w_0(\sigma_v \oplus\hat{\sigma}_h) \tag*{(29)}

and

w1(σv⊕σ^h)(30)w_1(\sigma_v \oplus\hat{\sigma}_h) \tag*{(30)}

denote the smaller and larger minimum-weight logical-class corrections for the resulting full syndrome.

Allowing the hidden detector values to vary freely gives

w0∗=min⁡σ^hw0(σv⊕σ^h).(31)w_0^* = \min_{\hat{\sigma}_h} w_0(\sigma_v \oplus\hat{\sigma}_h). \tag*{(31)}

This is simply the weight of the most likely error consistent with the information available at decision time, and it is obtained by decoding with an open time boundary.

The corresponding minimum-weight limit of the open-boundary score is

Rmin⁡(σv)=min⁡σ^hw1(σv⊕σ^h)−w0∗.(32)R_{\min}(\sigma_v) = \min_{\hat{\sigma}_h} w_1(\sigma_v \oplus\hat{\sigma}_h) - w_0^*. \tag*{(32)}

The first minimization asks for the hidden syndrome under which an error in the less likely logical class can occur with the smallest weight. Importantly, the hidden syndrome attaining this minimum need not be the same hidden syndrome that attains w0∗w_0^*. Thus simply computing the two unrestricted open-boundary matching weights does not determine Eq. (32); one must search over possible hidden syndromes.

The open-boundary decode selects an initial prediction σ^h0\hat{\sigma}_{h_0} attaining w0∗w_0^*. Caliper fixes this prediction and decodes the opposing class, then searches outward by changing hidden detector values. The bounds above apply to each neighboring hidden syndrome; they are not lower bounds on every hidden syndrome that could be reached by further changes.

Guarantee for the Caliper search

Let SS be the set of predictions evaluated by the search, including its root, and define

Rmin⁡(S)(σv)=min⁡σ^h∈Sw1(σv⊕σ^h)−w0∗.(33)R_{\min}^{(S)}(\sigma_v)=\min_{\hat{\sigma}_h\in S} w_1(\sigma_v\oplus\hat{\sigma}_h)-w_0^*. \tag*{(33)}

Theorem 2.9 (Minimum over evaluated predictions). If the class weights stored for each prediction in SS are exact, then

Rmin⁡(σv)≤Rmin⁡(S)(σv)≤G(σv⊕σ^h0).(34)R_{\min}(\sigma_v)\le R_{\min}^{(S)}(\sigma_v)\le G(\sigma_v\oplus\hat{\sigma}_{h_0}). \tag*{(34)}

Adding evaluated predictions can only decrease Rmin⁡(S)R_{\min}^{(S)}.

Proof. The minimum over a subset cannot be smaller than the unrestricted minimum, and the root is included in SS. Enlarging the set cannot increase its minimum.

We note that Caliper can find the smallest w1w_1 in SS without pinpointing every weight exactly. Only predictions whose lower bounds are below the smallest exact weight found so far could improve that minimum. Caliper tightens these bounds or decodes the predictions until none can do so.

This guarantee concerns the minimum opposing weight among evaluated predictions. Caliper limits which predictions it expands. A prediction rejected for expansion may have a descendant with lower opposing weight, so these local decisions do not certify the global minimum or exhaustive coverage within a fixed number of flips. Even when the frontier is exhausted, a restricted admission rule need not visit every hidden syndrome. Exhaustive enumeration would recover Rmin⁡R_{\min}, but would require exponentially many hidden syndromes. Nor does the monotonicity of Rmin⁡(S)R_{\min}^{(S)} imply monotonicity of the summed score RR below.

Relation to the logical failure probability

Finally, we connect the minimum in Eq. (32) to the most-likely-error approximation of the open-boundary logical failure probability.

For a set SS of hidden-syndrome predictions, define

AS=∑σ^h∈Se−w0(σv⊕σ^h)(35)A_S=\sum_{\hat{\sigma}_h\in S}e^{-w_0(\sigma_v\oplus\hat{\sigma}_h)} \tag*{(35)}

and

BS=∑σ^h∈Se−w1(σv⊕σ^h).(36)B_S=\sum_{\hat{\sigma}_h\in S}e^{-w_1(\sigma_v\oplus\hat{\sigma}_h)}. \tag*{(36)}

Within the most-likely-error approximation, ASA_S is the total weight assigned to the more likely logical class of each predicted full syndrome, while BSB_S is the corresponding weight of the less likely class. The logical failure probability restricted to these predictions is therefore

P^L(S)(σv)=BSAS+BS.(37)\widehat{P}_{\mathrm{L}}^{(S)}(\sigma_v)=\frac{B_S}{A_S+B_S}. \tag*{(37)}

It is convenient to define

RS(σv)=log⁡(AS+BS)−log⁡BS,(38)R_S(\sigma_v)=\log(A_S+B_S)-\log B_S, \tag*{(38)}

for which

P^L(S)(σv)=e−RS.(39)\widehat{P}_{\mathrm{L}}^{(S)}(\sigma_v)=e^{-R_S}. \tag*{(39)}

When SS contains every possible hidden syndrome, Eq. (37) is the full most-likely-error approximation to the open-boundary logical failure probability. Caliper instead sums over the predictions it has evaluated, using the smallest correction weights found during the search. Both sums omit positive terms, so the resulting score can err in either direction. The alternative log-odds score log⁡(AS/BS)\log(A_S/B_S) orders shots identically to RSR_S and approaches it when the estimated failure probability is small.

For each prediction, Caliper keeps the smallest correction weight found in each logical class. We write these as U0≤U1U_0 \le U_1, sorting them in the same way as w0,w1w_0,w_1. Since these corrections need not have minimum weight, Ui≥wiU_i \ge w_i. Caliper computes

R=−log⁡∑σ^h∈Se−U1(σ^h)∑σ^h∈S[e−U0(σ^h)+e−U1(σ^h)](40)R=-\log\frac{\sum_{\hat{\sigma}_h\in S}e^{-U_1(\hat{\sigma}_h)}}{\sum_{\hat{\sigma}_h\in S}\left[e^{-U_0(\hat{\sigma}_h)}+e^{-U_1(\hat{\sigma}_h)}\right]} \tag*{(40)}

In the exact limit, where both matching weights are known exactly for every prediction in SS, RS=RR_S=R.

The connection with the minimum-weight score follows from the usual log-sum-exp limit. If all edge weights are scaled by a common factor β\beta, then

lim⁡β→∞RSβ=min⁡σ^h∈Sw1(σv⊕σ^h)−min⁡σ^h∈Sw0(σv⊕σ^h).(41)\lim_{\beta\to\infty}\frac{R_S}{\beta}=\min_{\hat{\sigma}_h\in S}w_1(\sigma_v\oplus\hat{\sigma}_h)-\min_{\hat{\sigma}_h\in S}w_0(\sigma_v\oplus\hat{\sigma}_h). \tag*{(41)}

For the unrestricted set of hidden syndromes, the right-hand side is exactly Rmin⁡(σv)R_{\min}(\sigma_v). Equations (S27) and (S36) distinguish the two quantities. The open-boundary decoder immediately determines the minimum possible w0w_0, while the search finds predictions with low w1w_1. The minimum-weight quantity Rmin⁡(S)R_{\min}^{(S)} obeys Theorem 2.9; the finite-sum score RR estimates the probability of eventual failure. Neither is generally ordered relative to the closed-boundary gap of the subsequently observed hidden syndrome.

Observables and temporal boundaries

We discuss here the necessity of a measurement that closes a temporal boundary for a useful definition of the complementary gap. In particular, we demonstrate that logical observables defined mid-circuit are inequivalent to observables defined on temporal boundaries, and they do not implement useful realizations of the complementary gap.

To do so, we consider the spacetime code associated with the circuit-level DEM. In complete generality, it can be formally described by a subsystem code [107]; we omit the explicit formulation here since it is not necessary for our purposes. The relevant consideration is the role of detector correlations as circuit stabilizers. We should first note that there are two distinct flavors of circuit stabilizers, which should be distinguished. The first are the space-time stabilizers that correspond to error mechanisms that are undetectable but also do not flip any logical observable. These can be used to deform any logical error into all of its degenerate representatives in the circuit. The other set of stabilizers corresponds to deterministic correlations in the circuit that do not reveal any logical information, which are precisely the detectors of the circuit. The logical correlations, on the other hand, are the membranes defined in spacetime that capture the propagation of logical information through the circuit. In the case of our cultivation circuits, we have Yˉ\bar{Y} membranes that extend backwards from the terminal measurement.

Typically, detectors are evaluated from the perspective of parity checks in the circuit, but they also function as stabilizers. They can be used to deform certain logical correlations to other, logically equivalent correlations [108]. This equates to taking any representative membrane for Yˉ\bar{Y} and dressing it with the support of any set of detectors (Figure S7). Conversely, if two such membranes are indeed logically equivalent correlations, their product must therefore be a detector. The implication of this argument is that there cannot be any undetectable logical error that flips—intersects an odd number of times—one observable without flipping the other. If there were, taking the product of them would imply the resulting detector is flipped by the error, which contradicts that it is undetectable.

Equivalent logical membranes

Figure S7. Equivalent logical membranes. Adding an XX detector deforms Yˉ\bar{Y} into an equivalent membrane Yˉ′\bar{Y}', retaining support on the terminal measurement boundary.

From this, one can deduce that a logical observable defined instantaneously in the middle of a noisy circuit cannot be equivalent to a logical operator defined on the temporal boundary of the final measurement. The reason for this is that there are undetectable logical errors that can be applied between these two times, which seem to flip one logical correlation but not the other. Thus, the Yˉ\bar{Y} observable defined in the middle of a noisy circuit backpropagates to a membrane in spacetime that is inequivalent to the observable defined on the terminal boundary. Another way to see this is to explicitly consider deformations of the Yˉ\bar{Y} membrane backpropagating from the terminal boundary. One can verify that there is no way to clean the membrane off the terminal boundary, since there is no product of detectors whose support on the final measurement can evaluate to a logical operator.

This is precisely the sense in which the complementary gap is not well-defined when naively applied to observables defined in the middle of the circuit. In particular, an observable defined at time tt in the middle of the circuit corresponds to a spacetime membrane extending backwards in time from tt. This membrane can be flipped by the first type of stabilizers we described, as shown in Figure S8. Of course, those stabilizers do not flip the membranes of the correctly defined observables. As many of these stabilizers have weight O(1)O(1), if we tried to run the complementary gap on observables defined in the middle of the circuit, we would find that every shot has a small, constant-size gap, and would not achieve the desired suppression.

Logical membranes at an open temporal boundary

Figure S8. Logical membranes at an open temporal boundary. The local fault loop (inset) intersects the Xˉ\bar{X} membrane once before the decision time τ\tau and once after, flipping the truncated observable while preserving the full observable at tft_f.

Note that if we have a noiseless syndrome extraction round, it becomes possible to clean Yˉ\bar{Y} off the terminal boundary and to this noiseless error correction round. This is because, with the assumption of no further errors, there are many additional, linearly independent correlations that are assumed to be deterministic. We emphasize that these emerge artificially from the assumption that there is no noise in the system, rather than a result of error correction. It would be atypical to call these additional correlations detectors, but they function as circuit-level stabilizers just like the detectors. With these added correlations, it becomes immediate to clean Yˉ\bar{Y} to the preceding perfect syndrome extraction round, since without any subsequent noise, the two observables must agree.

Optimality of Full Error Detection

In this section, we discuss the optimality of full-error detection on the visible syndrome in mid-circuit postselection. This conclusion is often implicitly assumed by carrying over the intuition from closed-boundary postselection. In the closed-boundary setting, one decides whether to retain the classical statistics from an observed shot based on its complete syndrome. The strategy that retains only shots with trivial syndrome, σ=0\sigma= 0, is optimal.

One way to understand this result in the closed-boundary setting is through the statistical-mechanical model associated with the corresponding space-time code. For a fixed observed syndrome σ\sigma, the compatible fault configurations decompose into logical equivalence classes. If Zℓ(σ)Z_{\ell}(\sigma) denotes the partition function obtained by summing the probabilities of all fault configurations with syndrome σ\sigma and logical class ℓ\ell, then

Pr⁡(ℓ∣σ)=Zℓ(σ)∑ℓ′Zℓ′(σ).(42)\Pr(\ell\mid\sigma) = \frac{Z_{\ell}(\sigma)}{\sum_{\ell'} Z_{\ell'}(\sigma)}. \tag*{(42)}

Thus the posterior logical error probability is determined by the relative free energies

Fℓ(σ)=−β−1log⁡Zℓ(σ)(43)F_{\ell}(\sigma)=-\beta^{-1}\log Z_{\ell}(\sigma) \tag*{(43)}

of the different logical sectors. In particular, after maximum-likelihood decoding,

pL(σ)=1−max⁡ℓZℓ(σ)∑ℓ′Zℓ′(σ).(44)p_{\mathrm{L}}(\sigma)=1-\frac{\max_{\ell}Z_{\ell}(\sigma)}{\sum_{\ell'}Z_{\ell'}(\sigma)}. \tag*{(44)}

At p/pth≪1p/p_{\mathrm{th}}\ll1, i.e., low temperatures, these free-energy differences are dominated by the corresponding minimum energies, recovering the familiar picture in which logical reliability is controlled by the energy gap between the most likely logical sector and its competitors.

The open-boundary problem is subtler. In a cultivation-like circuit, the complete space-time syndrome is not available: a subset of detector outcomes is absent because the circuit terminates at an open temporal boundary. Consequently, postselection can depend only on the visible syndrome σv\sigma_v, and the posterior logical error probability must average over the unobserved portion of the syndrome. The usual closed-boundary argument therefore does not by itself imply that σv=0\sigma_v=0 is optimal – it is not necessarily the case that post-selecting purely on σv=0\sigma_v=0 shots minimizes the logical error rate.

Below we argue that at sufficiently low noise, full error-detection on the visible syndrome is nonetheless approximately optimal in a sense that is made precise below.

Theorem 4.1 (Low-noise optimality of zero visible syndrome). Let vv and hh denote the visible and hidden parts of the syndrome. For ℓ∈{0,1}\ell\in\{0,1\}, let dℓ(v,h)d_{\ell}(v,h) be the minimum number of faults producing syndrome (v,h)(v,h) and logical class ℓ\ell. Define

a(v)=min⁡h,ℓdℓ(v,h),b(v)=min⁡hmax⁡ℓdℓ(v,h),(45)a(v)=\min_{h,\ell}d_{\ell}(v,h),\qquad b(v)=\min_{h}\max_{\ell}d_{\ell}(v,h), \tag*{(45)}

and g(v)=b(v)−a(v)g(v)=b(v)-a(v).

If the complete syndrome (v,h)(v,h) is decoded by maximum likelihood, then the conditional probability of a logical error given vv is

Pr⁡(Fail∣v)=Θ(pg(v)),(46)\Pr(\mathrm{Fail}\mid v)=\Theta\left(p^{g(v)}\right), \tag*{(46)}

and

g(v)≤g(0)(47)g(v)\leq g(0) \tag*{(47)}

for every attainable visible syndrome vv.

Proof. Let Pℓ(v,h)P_{\ell}(v,h) be the probability that the syndrome is (v,h)(v,h) and the logical class is ℓ∈{0,1}\ell\in\{0,1\}. The contributions to Pℓ(v,h)P_{\ell}(v,h) are dominated by minimum weight faults, so that

Pℓ(v,h)=Θ(pdℓ(v,h)).(48)P_{\ell}(v,h)=\Theta\left(p^{d_{\ell}(v,h)}\right). \tag*{(48)}

For a fixed full syndrome (v,h)(v,h), maximum-likelihood decoding fails with joint probability

min⁡{P0(v,h),P1(v,h)}=Θ(pmax⁡{d0(v,h),d1(v,h)}).(49)\min\{P_0(v,h),P_1(v,h)\}=\Theta\left(p^{\max\{d_0(v,h),d_1(v,h)\}}\right). \tag*{(49)}

Summing over hh and approximating the sum by the dominant (minimum weight) contribution therefore gives

Pr⁡(v,Fail)=Θ(pb(v)).(50)\Pr(v,\mathrm{Fail})=\Theta\left(p^{b(v)}\right). \tag*{(50)}

where entropic factors are absorbed into the big-Θ\Theta notation. Similarly,

Pr⁡(v)=Θ(pa(v)).(51)\Pr(v)=\Theta\left(p^{a(v)}\right). \tag*{(51)}

Hence

Pr⁡(Fail∣v)=Θ(pb(v)−a(v)).(52)\Pr(\mathrm{Fail}\mid v)=\Theta\left(p^{b(v)-a(v)}\right). \tag*{(52)}

It remains to compare g(v)g(v) with g(0)g(0). Let EE be a fault configuration of weight a(v)a(v) producing visible syndrome vv. Choose two fault configurations A0A_0 and A1A_1 that attain b(0)b(0). Thus A0A_0 and A1A_1 have zero visible syndrome, the same hidden syndrome, opposite logical classes, and at most b(0)b(0) faults each.

The configurations

E⊕A0,E⊕A1,(53)E\mathbin{\oplus} A_0,\qquad E\mathbin{\oplus} A_1, \tag*{(53)}

where ⊕\oplus denotes symmetric difference, have visible syndrome vv, the same hidden syndrome, and opposite logical classes. Each has at most a(v)+b(0)a(v)+b(0) faults. Therefore

b(v)≤a(v)+b(0).(54)b(v)\leq a(v)+b(0). \tag*{(54)}

Since the no-fault configuration produces the zero syndrome, a(0)=0a(0)=0, and hence g(0)=b(0)g(0)=b(0). It follows that

g(v)=b(v)−a(v)≤b(0)=g(0).(55)g(v)=b(v)-a(v)\leq b(0)=g(0). \tag*{(55)}

Consequently, if

g(v)<g(0)for every v≠0,(56)g(v)<g(0)\qquad\text{for every }v\ne0, \tag*{(56)}

then, for all sufficiently small pp,

Pr⁡(Fail∣v)>Pr⁡(Fail∣0)for every v≠0.(57)\Pr(\mathrm{Fail}\mid v)>\Pr(\mathrm{Fail}\mid0)\qquad\text{for every }v\ne0. \tag*{(57)}

In this case, keeping only shots with v=0v=0 is the optimal postselection rule at its corresponding acceptance probability. However, it is possible that g(v)=g(0)g(v)=g(0), in which case it remains possible that full error-detection on the visible syndrome leads to a larger conditional probability of a logical error by a constant factor than a postselection policy that retains some shots with a non-trivial visible syndrome, even as p→0p\to0. Moreover, at larger pp, for example in near-threshold regimes, it is possible that other postselection strategies may be optimal.

Additional effects from T cultivation

In this work we simulated the Clifford circuit for ∣Yˉ⟩|\bar{Y}\rangle cultivation with open-boundary escape stage postselection as a proxy for ∣Tˉ⟩|\bar{T}\rangle state cultivation, which allows for a direct comparison with the closed-boundary postselection ∣Yˉ⟩|\bar{Y}\rangle state cultivation results of Refs. [26, 28]. Recent works [69, 70, 71, 72, 73, 74] have developed numerical methods to simulate the exact non-Clifford circuits of ∣Tˉ⟩|\bar{T}\rangle cultivation. Simulating only the injection and cultivation stages (without the escape stage), Refs. [69, 70, 73] identified that the logical error rate of f=5f=5 color code cultivation is roughly 15×15\times larger than that obtained from ∣Yˉ⟩|\bar{Y}\rangle cultivation proxies, as opposed to the 2×2\times originally expected [26]. These discrepancies can be understood as originating from hook errors in the non-Clifford circuit. Ref. [74] recently introduced a flagging method to recover the pre-escape circuit-distance with a modest increase in the expected number of retries.

However, Ref. [28] studied the discrepancy between ∣Yˉ⟩|\bar{Y}\rangle state and ∣Tˉ⟩|\bar{T}\rangle state cultivation including the escape stage (with closed-boundary postselection) for the f=3f=3 protocol. The authors conclude that the escape stage dominates the error-rate of the entire protocol for both the Clifford and non-Clifford circuit, leading to negligible differences in the final logical error-rate. A similar conclusion was made for the color-surface code cultivation protocol including escape (with closed-boundary postselection) in recent work in Ref. [70].

It remains to be understood whether further discrepancies arise between ∣Yˉ⟩|\bar{Y}\rangle and ∣Tˉ⟩|\bar{T}\rangle cultivation once the effects of open-boundary escape-stage postselection are included. It is possible that an exact simulation of ∣Tˉ⟩|\bar{T}\rangle cultivation with our open-boundary postselection method will reveal additional spacetime costs to recovering the performance of magic-state cultivation, and is thus an important direction for future work.

Adaptive Escape and Postselection Protocols

The escape-stage optimizations considered above use a fixed code distance and a fixed number of syndrome-extraction rounds for every attempt. However, the information needed to make a reliable postselection decision can vary substantially between syndrome histories. Some attempts may already be accepted or rejected after a short escape stage, whereas others remain ambiguous and could benefit from further measurements. This motivates an adaptive escape protocol, in which the observed syndrome determines both the postselection decision and the resources allocated before that decision. The objective is to reduce the expected space-time volume per accepted magic state while maintaining a prescribed logical error rate.

Syndrome-dependent termination

Consider a sequence of decision points during escape. Let hkh_k denote the information available at decision point kk, including the observed syndrome, the code geometry, and previous adaptive operations. Define the adaptive counterpart of the open-boundary conditional logical error probability P~L(σv)\widetilde{P}_L(\sigma_v) as

qk(hk)=Pr⁡(logical failure if accepted at k∣hk).(58)q_k(h_k) = \Pr(\text{logical failure if accepted at } k \mid h_k). \tag*{(58)}

Similar to the fixed case, this is inferred using only information available at decision time.

At each decision point, the protocol can accept, reject, or continue collecting syndrome information. A simple policy accepts when the estimated conditional logical error probability falls below a prescribed threshold. Otherwise, it continues if additional measurements are expected to justify their cost, and rejects if further measurements are unlikely to help or a maximum resource budget has been reached.

The distinction between continuation and rejection is essential. An inconclusive syndrome may indicate that the measurement record is too short to distinguish competing fault configurations, rather than that the attempt should be discarded. Additional measurements can resolve this ambiguity and allow some attempts to be accepted. Conversely, attempts that can already be accepted or rejected need not incur the cost of the longest escape stage.

Temporal and spatial adaptation

The simplest implementation holds the escape-code distance fixed and adapts the number of syndrome-extraction rounds. After an initial buffer of rmin⁡r_{\min} rounds, the protocol evaluates an open-boundary postselection metric. Attempts that remain ambiguous undergo another round, or a small batch of rounds, before reevaluation. This continues until acceptance, rejection, or a maximum duration rmax⁡r_{\max}.

Additional rounds move the open temporal boundary away from earlier portions of the escape circuit and can make previously ambiguous fault configurations more distinguishable. However, longer evolution does not guarantee a lower conditional logical error probability: additional rounds introduce faults, and an open temporal boundary remains at every decision point. The benefit of further information must therefore be weighed against its resource cost and the additional logical error accumulated during continuation.

The same principle extends to the spatial direction. Instead of growing every attempt immediately to a common final distance, the protocol could use intermediate code sizes, similar to the original cultivation protocol but now applied to the escape stage. At each size, the syndrome would determine whether to accept, reject, perform additional rounds, or grow the code further. It is worth noting, however, that for the spatial case, the smaller patch sizes could lead to logical error contributions that are not reversible upon further code growth. Our fixed-geometry results motivate considering both controls, since increasing the escape duration alone need not recover the performance obtained by increasing both duration and distance.

Resource objective

Let π\pi denote an adaptive policy, AA the acceptance event, and τ\tau the terminal decision point. Let VπV_\pi be the volume consumed by one attempt, including injection, cultivation, and escape:

Vπ=∑t=1TπntΔt(59)V_\pi= \sum_{t=1}^{T_\pi} n_t \Delta t \tag*{(59)}

where TπT_\pi is the number of circuit layers, ntn_t is the number of occupied physical qubits in layer tt, and Δt\Delta t is the duration of each layer. Rejected attempts contribute the volume consumed before rejection. For independently repeated attempts with nonzero acceptance probability, the expected volume per accepted state is

V‾π=Eπ[Vπ]Pr⁡π(A).(60)\overline{V}_\pi= \frac{\mathbb{E}_\pi[V_\pi]}{\Pr_\pi(A)}. \tag*{(60)}

The accepted logical error rate is

ϵπ=Eπ[1Aqτ(hτ)]Pr⁡π(A).(61)\epsilon_\pi= \frac{\mathbb{E}_\pi[1_A q_\tau(h_\tau)]}{\Pr_\pi(A)}. \tag*{(61)}

The optimization objective is therefore

min⁡πV‾πsubject toϵπ≤ϵtarget.(62)\min_\pi\overline{V}_\pi\qquad\text{subject to} \qquad\epsilon_\pi\le\epsilon_{\mathrm{target}}. \tag*{(62)}

Adaptation can reduce the volume spent on attempts that are already reliable, increase acceptance by resolving ambiguous histories, and avoid further expenditure on attempts that are unlikely to become acceptable.

With exact conditional probabilities, requiring qτ(hτ)≤ϵtargetq_\tau(h_\tau) \le\epsilon_{\mathrm{target}} for every accepted history is sufficient to satisfy the error constraint. This is stronger than necessary, since the constraint applies to the average error probability of the accepted ensemble. More general policies could use different thresholds at different decision points while maintaining the same ensemble-level target.

Since adaptive postselection requires making a decision at an open boundary, we can use Caliper to supply a postselection score at each decision point, and decide on acceptance, rejection or continuation. Calibration is particularly important for adaptive decisions, as the raw Caliper estimate need not equal the conditional logical error probability, and attempts reaching later checkpoints have already been selected by earlier decisions. In addition, adaptive postselection may place stringent requirements on the classical processing time, and if classical processing requires additional waiting rounds, their volume and faults must be included in the resource estimate. We leave the detailed optimization of such an adaptive protocol to future work.

References

  1. [1]P. W. Shor, Physical Review A 52, R2493 (1995).
  2. [2]A. M. Steane, Physical Review Letters 77, 793 (1996).
  3. [3]E. Knill, R. Laflamme, and W. H. Zurek, Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences 454, 365 (1998).
  4. [4]D. Aharonov and M. Ben-Or, SIAM Journal on Computing 38, 1207 (2008).
  5. [5]A. Y. Kitaev, Annals of Physics 303, 2 (2003), arXiv:quant-ph/9707021.
  6. [6]B. M. Terhal, Reviews of Modern Physics 87, 307 (2015).
  7. [7]A. G. Fowler, M. Mariantoni, J. M. Martinis, and A. N. Cleland, Physical Review A 86, 032324 (2012).
  8. [8]D. Bluvstein, S. J. Evered, A. A. Geim, S. H. Li, H. Zhou, T. Manovitz, S. Ebadi, M. Cain, M. Kalinowski, D. Hangleiter, J. P. Bonilla Ataides, N. Maskara, I. Cong, X. Gao, P. Sales Rodriguez, T. Karolyshyn, G. Semeg hini, M. J. Gullans, M. Greiner, V. Vuletić, and M. D. Lukin, Nature 626, 58 (2024).
  9. [9]D. Bluvstein, A. A. Geim, S. H. Li, S. J. Evered, J. P. Bonilla Ataides, G. Baranes, A. Gu, T. Manovitz, M. Xu, M. Kalinowski, S. Majidy, C. Kokaïl, N. Maskara, E. C. Trapp, L. M. Stewart, S. Hollerith, H. Zhou, M. J. Gullans, S. F. Yelin, M. Greiner, V. Vuletić, M. Cain, and M. D. Lukin, Nature 649, 39 (2026).
  10. [10]B. W. Reichardt et al., Fault-tolerant quantum computation with a neutral atom processor (2025), arXiv:2411.11822 [quant-ph].arxiv.org/abs/2411.11822
  11. [11]Atom Computing and Collaborators, Quantum error correction with the toric code (2026), arXiv:2606.04079 [quant-ph].arxiv.org/abs/2606.04079
  12. [12]Google Quantum AI, Nature 614, 676 (2023).
  13. [13]Google Quantum AI and Collaborators, Nature 638, 920 (2025).
  14. [14]S. Krinner, N. Lacroix, A. Remm, A. Di Paolo, E. Genois, C. Leroux, C. Hellings, S. Lazar, F. Swiadek, J. Herrmann, G. J. Norris, C. K. Andersen, M. Müller, A. Blais, C. Eichler, and A. Wallraff, Nature 605, 669 (2022).
  15. [15]C. Ryan-Anderson, J. G. Bohnet, K. Lee, D. Gresh, A. Hankin, J. P. Gaebler, D. Francois, A. Chernoguzov, D. Lucchetti, N. C. Brown, T. M. Gatterman, S. K. Halit, K. Gilmore, J. A. Gerber, B. Neyenhuis, D. Hayes, and R. P. Stutz, Physical Review X 11, 041058 (2021).
  16. [16]L. Postler, S. Heußen, I. Pogorelov, M. Rispler, T. Feldker, M. Meth, C. D. Marciniak, R. Stricker, M. Ringbauer, R. Blatt, P. Schindler, M. Müller, and T. Monz, Nature 605, 675 (2022).
  17. [17]A. Paetznick et al., Demonstration of logical qubits and repeated error correction with better-than-physical error rates (2024).arxiv.org/abs/2404.02280
  18. [18]M. H. Abobeih, Y. Wang, J. Randall, S. J. H. Loenen, C. E. Bradley, M. Markham, D. J. Twitchen, B. M. Terhal, and T. H. Taminiau, Nature 606, 884 (2022).
  19. [19]D. Gottesman, The Heisenberg Representation of Quantum Computers (1998), arXiv:quant-ph/9807006.arxiv.org/abs/quant-ph/9807006
  20. [20]E. Knill, Fault-Tolerant Postselected Quantum Computation: Schemes (2004), arXiv:quant-ph/0402171 [quant-ph], arXiv:quant-ph/0402171.DOI
  21. [21]S. Bravyi and A. Kitaev, Physical Review A 71, 022316 (2005).
  22. [22]B. Eastin and E. Knill, Physical Review Letters 102, 110502 (2009).
  23. [23]B. Zeng, A. Cross, and I. L. Chuang, IEEE Transactions on Information Theory 57, 6272 (2011), arXiv:0706.1382, arXiv:0706.1382.
  24. [24]C. Chamberland and K. Noh, npj Quantum Information 6, 91 (2020), arXiv:2003.03049 [quant-ph].DOI
  25. [25]T. Itagowa, Y. Takada, Y. Hirano, and K. Fujii, PRX Quantum 6, 020356 (2025), arXiv:2403.03991 [quant-ph].
  26. [26]C. Gidney, N. Shutty, and C. Jones, Magic state cultivation: growing T states as cheap as CNOT gates (2024), arXiv:2409.17595 [quant-ph].arxiv.org/abs/2409.17595
  27. [27]Google Quantum AI and Collaborators, Magic state cultivation on a superconducting quantum processor (2025), arXiv:2512.13908 [quant-ph].
  28. [28]K. Sahay, P.-K. Tsai, K. K. Chuang, Q. Su, T. B. Smith, S. Singh, and S. Puri, PRX Quantum 7, 033006 (2026).
  29. [29]Y. Vaknin, S. Jacoby, A. Grimsmo, and A. Retzker, PRX Quantum 7, 010533 (2026).
  30. [30]J. Claes, Cultivating T states on the surface code with only two-qubit gates (2025), arXiv:2509.05232 [quant-ph].arxiv.org/abs/2509.05232
  31. [31]Z.-H. Chen, M.-C. Chen, C.-Y. Lu, and J.-W. Pan, Efficient Magic State Cultivation on $\mathbb{RP}^2$ (2025), arXiv:2503.18657 [quant-ph].arxiv.org/abs/2503.18657
  32. [32]Y. Hirano, R. Toshio, T. Itogawa, and K. Fujii, Efficient magic state cultivation with lattice surgery (2026), arXiv:2510.24615 [quant-ph].arxiv.org/abs/2510.24615
  33. [33]D. Gottesman and I. L. Chuang, Nature 402, 390 (1999).
  34. [34]X. Zhou, D. W. Leung, and I. L. Chuang, Physical Review A 62, 052316 (2000), arXiv:quant-ph/0002039.DOI
  35. [35]D. Litinski, Quantum 3, 205 (2019), arXiv:1905.06903 [quant-ph].DOI
  36. [36]Y. Li, New Journal of Physics 17, 023037 (2015), arXiv:1410.7808 [quant-ph].DOI
  37. [37]C. Gidney, Cleaner magic states with hook injection (2023), arXiv:2302.12292 [quant-ph].arxiv.org/abs/2302.12292
  38. [38]C. Chamberland and A. W. Cross, Quantum 3, 143 (2019), arXiv:1811.00566, arXiv:1811.00566.DOI
  39. [39]H. Bombín, M. Pant, S. Roberts, and K. I. Seetharam, PRX Quantum 5, 010302 (2024).
  40. [40]S. C. Smith, B. J. Brown, and S. D. Bartlett, Communications Physics 7, 386 (2024), arXiv:2405.03766, arXiv:2405.03766.DOI
  41. [41]L. H. English, D. J. Williamson, and S. D. Bartlett, Physical Review Letters 135, 120603 (2025).
  42. [42]N. Meister, C. A. Pattison, and J. Preskill, Efficient soft-output decoders for the surface code (2024), arXiv:2405.07433 [quant-ph].arxiv.org/abs/2405.07433
  43. [43]S.-H. Lee, L. H. English, and S. D. Bartlett, npj Quantum Information 12, 96 (2026), arXiv:2510.05795 [quant-ph].
  44. [44]H. Xie, N. Yoshioka, K. Tsubouchi, and Y. Li, Simple, Efficient, and Generic Post-Selection Decoding for qLDPC codes (2026), arXiv:2601.17757 [quant-ph].DOI
  45. [45]A. Wills, T. J. Yoder, and I. C. Chuang, Forced Gap Post-Selection for Quantum LDPC Codes and their Operations (2026), arXiv:2605.20346 [quant-ph].arxiv.org/abs/2605.20346
  46. [46]C. Gidney, M. Newman, P. Brooks, and C. Jones, Yoked surface codes (2023), arXiv:2312.04522 [quant-ph].arxiv.org/abs/2312.04522
  47. [47]H. Chen, D. Xu, G. M. Sommers, D. A. Huse, J. D. Thompson, and S. Gopalakrishnan, Scalable accuracy gains from postselection in quantum error correcting codes (2026), arXiv:2510.05222 [cond-mat.stat-mech].arxiv.org/abs/2510.05222
  48. [48]J. W. Staples, W. Fu, and J. D. Thompson, Scalable Postselection of Quantum Resources (2026), arXiv:2603.08697 [quant-ph].arxiv.org/abs/2603.08697
  49. [49]P. Birchall, J. Bridgeman, C. Dawson, T. Farrelly, Y. Liu, N. Nickerson, M. Pant, S. Roberts, K. Seetharam, and D. Tuckett, Macromux: scalable postselection for high-threshold fault-tolerant quantum computation (2026), arXiv:2603.04875 [quant-ph].arxiv.org/abs/2603.04875
  50. [50]E. Dennis, A. Kitaev, A. Landahl, and J. Preskill, Journal of Mathematical Physics 43, 4452 (2002).
  51. [51]O. Higgott, ACM Transactions on Quantum Computing 3, 1 (2022), arXiv:2105.13082, arXiv:2105.13082.
  52. [52]O. Higgott and C. Gidney, Quantum 9, 1600 (2025), arXiv:2303.15933 [quant-ph].
  53. [53]A. Hutter, J. R. Wootton, and D. Loss, Physical Review A 89, 022326 (2014).
  54. [54]We optimize the frozen gap parameter φ via a parameter sweep.
  55. [55]We employ the LLR 2-norm instance of the metric.
  56. [56]The color code cultivation circuits we simulate are sourced from the Zenodo associated with [26]. The f = 3 surface code cultivation circuits are from the GitHub repository for Ref. [28]. The f = 5 circuit, however, we reconstruct following [28] and matching the noise conventions of the f = 3 circuit, as it is not publicly available.
  57. [57]C. Gidney, Quantum 5, 497 (2021), arXiv:2103.02202 [quant-ph].
  58. [58]H. Zhou, C. Duckering, C. Zhao, D. Bluvstein, M. Cain, A. Kubica, S.-T. Wang, and M. D. Lukin, Proceedings of the 52nd Annual International Symposium on Computer Architecture (2025) pp. 1432–1448, arXiv:2505.15907, arXiv:2505.15907.
  59. [59]Z. Sun and Z. Cai, A folded surface code architecture for 2d quantum hardware (2026), arXiv:2601.19823 [quant-ph].arxiv.org/abs/2601.19823
  60. [60]N. Fazio, M. Webster, and Z. Cai, Low-overhead magic state circuits with transversal cnot (2025), arXiv:2501.10291 [quant-ph].arxiv.org/abs/2501.10291
  61. [61]A. Khalid, A. Silva, G. A. Dagnew, T. Dvir, O. Wertheim, M. Gruda, X. Kong, M. Kramer, Z. Webb, A. Scherer, M. Mohseni, Y. Cohen, and P. Ronagh, Impact of decoder latency on a utility-scale quantum computer architecture (2026), arXiv:2511.10633 [quant-ph].arxiv.org/abs/2511.10633
  62. [62]In reality, this protocol only has fault distance 4, as was noted in [28].
  63. [63]C. Gidney, How to factor 2048 bit rsa integers with less than a million noisy qubits (2025), arXiv:2505.15917 [quant-ph].arxiv.org/abs/2505.15917
  64. [64]M. Cain, Q. Xu, R. King, L. R. B. Picard, H. Levine, M. Endres, J. Preskill, H.-Y. Huang, and D. Bluvstein, Shor’s algorithm is possible with as few as 10,000 reconfigurable atomic qubits (2026), arXiv:2603.28627 [quant-ph].arxiv.org/abs/2603.28627
  65. [65]P. Webster, L. Berent, O. Chandra, E. T. Hockings, N. Baspin, F. Thomsen, S. C. Smith, and L. Z. Cohen, arXiv preprint arXiv:2602.11457 (2026).arxiv.org/abs/2602.11457
  66. [66]T. Xue and J. P. Covey, arXiv preprint arXiv:2605.03791 (2026).
  67. [67]S. Khan, S. Sethi, K. Sahay, Y. Lin, J. Alnas, S. Kurapati, A. Anand, J. M. Baker, and K. R. Brown, arXiv preprint arXiv:2604.19735 (2026).arxiv.org/abs/2604.19735
  68. [68]T. J. Yoder, E. Schoute, P. Rall, E. Pritchett, J. M. Gambetta, A. W. Cross, M. Carroll, and M. E. Beverland, arXiv preprint arXiv:2506.03094 (2025).arxiv.org/abs/2506.03094
  69. [69]R. Li, K. Zheng, Y. Zhang, H. Lou, S. Ying, K. Liu, and X. Sun, arXiv preprint arXiv:2512.23037 (2025).arxiv.org/abs/2512.23037
  70. [70]B. A. Chase and F. Labib, Cliff: Fast Exact Simulation of Near-Clifford Quantum Circuits (2026), arXiv:2604.27058 [quant-ph].arxiv.org/abs/2604.27058
  71. [71]Y. Takada, S. D. Bartlett, and D. J. Williamson, Exact efficient simulation of noisy logical magic states using clifford stabilizers (2026), arXiv:2609.16929 [quant-ph].arxiv.org/abs/2609.16929
  72. [72]T. Hartweg and A. P. Orioli, Comparing magic state cultivation methods using matrix product states (2026), arXiv:2609.19116 [quant-ph].arxiv.org/abs/2609.19116
  73. [73]K. H. Wan and A. Zapirain, Exact logical error rates for magic state cultivation (2026), arXiv:2609.18922 [quant-ph].arxiv.org/abs/2609.18922
  74. [74]T. Chan, A. Strikis, Z. Sun, and Z. Cai, Diagnosing and Restoring the Degraded Fault Distance of Magic State Cultivation (2026), arXiv:2609.17706 [quant-ph].arxiv.org/abs/2609.17706
  75. [75]T. Tuloup and T. Ayral, Computing logical error thresholds with the Pauli Frame Sparse Representation (2026), arXiv:2603.14670 [quant-ph], arXiv:2603.14670.arxiv.org/abs/2603.14670
  76. [76]M. Mishima, R. Toshio, K. Kishi, J. Fujisaki, H. Oshima, S. Sato, and K. Fujii, Adaptive window decoding based on spatiotemporal complementary gap (2026), arXiv:2605.14637 [quant-ph].arxiv.org/abs/2605.14637
  77. [77]N. Shutty, M. Newman, and B. Villalonga, Physical Review Letters 136, 070603 (2026).
  78. [78]A. Gu, J. P. B. Ataides, M. D. Lukin, and S. F. Yelin, Scalable neural decoders for practical fault-tolerant quantum computation (2026), arXiv:2604.08358 [quant-ph].arxiv.org/abs/2604.08358
  79. [79]J. P. Bonilla Ataides, A. Gu, S. F. Yelin, and M. D. Lukin, PRX Intelligence 1, 013008 (2026).
  80. [80]D. Dentelski, Neural network decoder confidence as a learned proxy for the logical gap (2026), arXiv:2606.08758 [quant-ph].
  81. [81]J. Blue, H. Avlani, Z. He, L. Ziyin, and I. L. Chuang, Quantum 10, 2149 (2026).
  82. [82]P. Baireuther, T. E. O’Brien, B. Tarasinski, and C. W. J. Beenakker, Machine-learning-assisted correction of correlated qubit errors in a topological code (2017).DOI
  83. [83]P. Baireuther, M. D. Caio, B. Criger, C. W. J. Beenakker, and T. E. O’Brien, New Journal of Physics 21, 013003 (2019).
  84. [84]N. Lacroix et al., Nature 645, 614 (2025)
  85. [85]J. Bausch, A. W. Senior, F. J. H. Heras, T. Edlich, A. Davies, M. Newman, C. Jones, K. Satzinger, M. Y. Niu, S. Blackwell, G. Holland, D. Kafri, J. Atalaya, C. Gidney, D. Hassabis, S. Boixo, H. Neven, and P. Kohli, Nature 635, 834 (2024).
  86. [86]K. Meinerz, C.-Y. Park, and S. Trebst, Physical Review Letters 128, 080505 (2022).
  87. [87]M. Lange, P. Havström, B. Srivastava, I. Bengtsson, V. Bergentall, K. Hammar, O. Heuts, E. van Nieuwenburg, and M. Granath, Physical Review Research 7, 023181 (2025).
  88. [88]H. Cao, F. Pan, D. Feng, Y. Wang, and P. Zhang, Generative Decoding for Quantum Error-correcting Codes (2025), arXiv:2503.21374 [quant-ph].arxiv.org/abs/2503.21374
  89. [89]Z. Liu, A. Gong, and B. K. Clark, Decoding quantum low density parity check codes with diffusion (2025).
  90. [90]G. Hu, W. Ouyang, C.-Y. Lu, C. Lin, and H.-S. Zhong, Efficient and universal neural-network decoder for stabilizer-based quantum error correction (2025), arXiv:2502.19971 [quant-ph].arxiv.org/abs/2502.19971
  91. [91]K. Zhang, S. Wang, L. Kong, F. Zhang, Z. Ji, and J. Chen, Learning neural decoding with parallelism and self-coordination for quantum error correction (2025), arXiv:2509.03815 [quant-ph].arxiv.org/abs/2509.03815
  92. [92]V. Menon, J. P. Bonilla Ataides, R. Mehta, A. Gu, D. B. Tan, and M. D. Lukin, Physical Review X 16, 062014 (2026), arXiv:2508.10714, arXiv:2508.10714.DOI
  93. [93]A. Jacob, C. McLauchlan, and D. E. Browne, Single-Shot Decoding and Fault-tolerant Gates with Trivariate Tricycle Codes (2025), arXiv:2508.08191 [quant-ph].arxiv.org/abs/2508.08191
  94. [94]C. Li, J. Preskill, and Q. Xu, Transversal dimension jump for product qLDPC codes (2025), arXiv:2510.07269 [quant-ph].arxiv.org/abs/2510.07269
  95. [95]B. Hetényi, B. J. Brown, and D. J. Williamson, Constant depth magic state cultivation with Clifford measurements by gauging (2026), arXiv:2603.05429 [quant-ph].DOI
  96. [96]A. G. Fowler, Time-optimal quantum computation (2013), arXiv:1210.4626 [quant-ph], arXiv:210.4626.arxiv.org/abs/1210.4626
  97. [97]C. Gidney and A. G. Fowler, Flexible layout of surface code computations using AutoCCZ states (2019), arXiv:1905.08916 [quant-ph], arXiv:1905.08916.arxiv.org/abs/1905.08916
  98. [98]P. Das, C. A. Pattison, S. Manne, D. Carmean, K. Svore, M. Qureshi, and N. Delfosse, in 2022 IEEE International Symposium on High-Performance Computer Architecture (HPCA) (2022) pp. 259–273, arXiv:2001.06598, arXiv:2001.06598.arxiv.org/abs/2001.06598
  99. [99]A. Holmes, M. R. Jokar, G. Pasandi, Y. Ding, M. Pedram, and F. T. Chong, in 2020 ACM/IEEE 47th Annual International Symposium on Computer Architecture (ISCA) (2020) pp. 556–569, arXiv:2004.04794, arXiv:2004.04794.arxiv.org/abs/2004.04794
  100. [100]N. Liyanage, Y. Wu, A. Deters, and L. Zhong, in 2023 IEEE International Conference on Quantum Computing and Engineering (QCE) (2023) pp. 916–927, arXiv:2301.08419, arXiv:2301.08419.
  101. [101]Y. Wu, N. Liyanage, and L. Zhong, in Proceedings of the 30th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2 (2025) pp. 639–654, arXiv:2502.14787, arXiv:2502.14787.DOI
  102. [102]G. Duclos-Sianci and D. Poulin, Physical Review Letters 104, 050504 (2010), arXiv:0911.0581, arXiv:0911.0581.
  103. [103]H. Nishimori, Progress of Theoretical Physics 66, 1169 (1981).
  104. [104]A. J. Landahl, J. T. Anderson, and P. R. Rice, Fault-tolerant quantum computing with color codes (2011), arXiv:1108.5738 [quant-ph].arxiv.org/abs/1108.5738
  105. [105]J. Feldman, M. Wainwright, and D. Karger, IEEE Transactions on Information Theory 51, 954 (2005).
  106. [106]P. Iyer and D. Poulin, IEEE Transactions on Information Theory 61, 5209 (2015).
  107. [107]A. Pesah, A. K. Daniel, I. Tzitrin, and M. Vasmer, Fault-tolerant transformations of spacetime codes (2025), arXiv:2509.09603 [quant-ph].arxiv.org/abs/2509.09603
  108. [108]P.-J. H. S. Derks, A. Townsend-Teague, A. G. Burchards, and J. Eisert, Quantum 9, 1905 (2025), arXiv:2407.13826, arXiv:2407.13826.DOI

Paper details

vlnc:W_cd36hyfp
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Claude Fable 5 (bare)

View statement
Looking for related papers…
Contents