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 , let be the minimum weight of any error configuration consistent with the observed syndrome, and let 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 [39, 46], which approximates the conditional logical error probability . After computing the complementary gap, a decoder makes a postselection decision on whether to accept or discard the shot based on whether this gap exceeds a tunable threshold .
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 . Full error detection is used in the injection and cultivation stages (left). The escape stage (center) involves growing to a surface code and repeating 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 is unphysical; the gap must be predicted from 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 and , respectively.
At decision time, however, the decoder only has access to a visible syndrome history . The final readout would reveal an additional, hidden (future) syndrome , giving the complete syndrome [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 : .
Replacing each logical class by its minimum-weight error configuration gives
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 of hidden syndromes selected by its search, and reports the open-boundary postselection score . Large indicates a reliable shot, which is accepted when . This plays the role of 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 , with weight . Fixing this prediction and decoding the opposing logical class gives . These two calls to MWPM determine the complementary gap if the hidden syndrome were indeed , 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 .
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 and the gap. It then traverses the landscape of other possible hidden syndromes to find low-weight complementary corrections, , pruning locally suboptimal directions from the search frontier. (b) A step-by-step walkthrough of this process. In steps 1-3, Caliper finds and its first guess at the gap, . It then iteratively explores the syndrome space (steps 4-6), preferentially expanding predictions with low , 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 (bottom). A predicted hidden syndrome with nearly tied corrections can lower 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 syndrome from to 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 , it evaluates hidden syndromes that differ by one hidden detector value and preferentially continues from those with low . This directs the search toward the syndromes that contribute most strongly to the estimated logical error probability. Caliper also permits steps that increase 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 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 state cultivation—an efficient proxy for 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 , 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 () color code cultivation, it performs nearly indistinguishably from the closed-boundary curve, which most other methods also approximately follow. By contrast, in 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 , 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 for fault distance 3 () cultivation and for distance 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 surface code cultivation, with a discard rate of ; no shots passed full error detection for the other protocols.
In the larger color code scheme, Caliper outperforms existing methods by orders of magnitude at the relevant acceptance fractions. For instance, producing states at logical error rates of 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 the closed-boundary volume. Reaching the more stringent 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 larger. Even accepting only a few percent of shots, the surface code protocol [62] under open-boundary postselection exhibits a logical error around .
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 surface code cultivation, the code is grown to and rounds of stabilizer measurements are performed before deciding whether to keep the attempt. The color code escape stage instead uses rounds in a grafted code—roughly a 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 surface code being large enough to maintain a rate of order per cycle. Recovering the target requires increasing both the distance and the number of rounds, contrary to the usual expectation that 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 , , and 50% escape-stage acceptance. This results in an escape stage roughly the size reported in Ref. [28], translating to roughly a increase in expected spacetime volume for the entire protocol.
Figure 4. Logical error rates under various escape stages. The escape distance and number of escape rounds 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 for their surface code cultivation protocol. The outlined cells at , 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 cultivation [69, 70, 71, 72, 73, 74, 75], some finding discrepancies with 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 to estimate . For weights not known exactly, it uses the smallest correction weight found so far.
Algorithm 1 Caliper
Require: Visible syndrome , distance table, limits , , depth and branching limits
Decode with hidden detectors free to obtain and .
Fix and decode the opposing logical class to obtain .
Initialize , ; .
while and do
Take with lowest estimated from .
hidden syndromes differing from by one hidden detector value.
Bound the matching weights using the distance table, then tighten the bounds by updating known corrections.
Use MWPM as needed to determine the smallest weights.
Store the weight estimates and bounds; .
.
Select predictions in whose bounds allow to stay the same or decrease, favoring low estimates of and respecting the depth and branching limits.
if and then
Also select the prediction in with lowest estimated .
end if
Add selected predictions to only if not previously queued.
end while
return 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 surface code cultivation, Caliper takes a median of 25.3 per shot, compared with 15.5 for the closed-boundary complementary gap (measured over 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 . Shots with an initial score sufficiently far below can often be discarded before exploring further hidden syndromes. We set this early-rejection criterion from the observed changes in 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) surface code cultivation and (b) 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 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 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 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 as [39, 46], but it neglects the entropic factors that describe the number of degenerate error mechanisms that produce gap , along with higher-gap mechanisms [50, 102]. At low but finite , the contribution from higher-gap mechanisms is negligible, leaving only the number of degenerate gap mechanisms, . The closed-boundary calibration curve is well-described by a linear relationship on the log-log plot of Figure 6; a linear fit achieves and slope , where describes the effective (dimensionless) temperature of the system. For reference, the perfect calibration line corresponds to zero effective temperature, which is realized in the limit [50, 103].
Figure 6. Calibrations of Caliper and the complementary gap for surface code cultivation. A power law fit, corresponding to a finite effective temperature , 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 :
This is consistent with our expectation that with a gap of , the domain wall excitation corresponds to a string of length , and there are such strings, so the entropy of the system scales as [50]. Precisely in this sense, as , 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 depends indirectly on . By the tower property,
This is averaged over, and thus depends on, the distribution of gaps given , . To leading order, the conditional LER depends only on : , where the only -dependence in the conditional LER is through , and we numerically verify this behavior (SM). The non-linearity of the calibration curve is also expected to arise from .
Thus, we study 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 and Caliper score are close. However, in a select few instances, the hidden syndrome reveals information that results in : a phenomenon we call erosion. measures the shortfall of the realized gap relative to the open-boundary score, with larger leading to larger discrepancies between the LER predicted by Caliper and reality. It is even possible for a maximally large open-boundary score to erode to a near-zero gap, at which point the decoding result is effectively random. That said, erosion is rare. Outside of , we find that the probability is exponentially suppressed in , where . The eroded fraction of shots at is
where is the asymptotic eroded fraction in this model. A shot at either did not erode and fails at a closed-boundary gap or erodes by and fails at a gap . Noting that exponentially quickly as , we obtain
where is the same temperature as in the closed-boundary setting and is the amplitude of the contribution from eroded shots. We determine from the negative slope of a weighted linear fit to versus , excluding the peak near . For each , we pool shots with ; the fitted amplitude gives .
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 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 and idling round counts .
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].

Figure S2. Postselection decision latency. (a) Frequency distribution of latencies for computing the closed boundary complementary gap in color code cultivation. Exact corresponds to evaluating this gap completely, whereas thresholded requires computing whether the gap is less than a threshold value , calibrated here to the acceptance fraction that reaches the target LER of . (b) The corresponding plot for Caliper, where the score threshold 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 surface code cultivation, with the gap threshold determined by the target LER of .
Next, we complement our discussion of erosion in the End Matter with additional numerics. There, we claimed that, to good approximation, . This is supported by Figure S3, where we find that is approximately constant at fixed over a range of . A higher-order effect arises in the neighborhood of , where we find that decreases slightly; we defer studying its cause to future work.
Figure S3. Dependence of logical error rate on and . Data for panels correspond to surface code cultivation. (a) Logical error rate versus both the Caliper score and the eventual closed boundary gap . Gray squares correspond to pairs with fewer than 20 failures. (b) Sensitivity of the joint LER to alone, binned by the eventual closed-boundary gap. Boxed points correspond to instances where and 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 rounds of syndrome extraction in the surface code, the authors unitarily grow to a 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 , which describes how quickly the effect of erosion drops off, increases as the escape stage grows in volume, and , 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 and distance of the escape code 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 and asymptotic eroded fraction 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 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 surface code cultivation.

(a)

(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 of independent elementary error mechanisms. Each mechanism occurs with probability and flips a set of detectors . It may also flip the logical observable, in which case we call 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 , the observed syndrome is
and its logical outcome is the parity of the marked mechanisms in . Since the mechanisms occur independently,
where is independent of and
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,
A matchable DEM has a weighted graph representation. Each detector is represented by a vertex. A mechanism that flips two detectors and gives an edge between and , 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 , and an edge is marked exactly when the corresponding mechanism flips the logical observable. Parallel edges may be retained.
For a detector syndrome , a correction is an edge set whose odd-degree detector vertices are precisely ; no parity constraint is imposed on virtual boundary vertices. Its weight is
Let and be the minimum weights of corrections with even and odd marked-edge parity, respectively. We write
The complementary gap is therefore
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
denote the minimum weight of a path from to containing marked edges of parity . 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
For a decoding graph with vertices and edges, the full distance table can be constructed by repeated Dijkstra searches in time and stored in 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 is changed to , where is a set of detector flips. Let be a minimum-weight correction for . For any edge set , define its net cost relative to by
This is exactly the change in weight produced by replacing by .
Lemma 2.3 (Exact change under a syndrome modification). Let be a minimum-weight correction of syndrome in logical class . Then
where the minimum is over edge sets whose odd-degree detector vertices are exactly and whose marked-edge parity is .
Proof. For every allowed , the edge set has syndrome and logical class . Hence
Minimizing over gives one inequality.
Conversely, let be a minimum-weight correction of in class . Then
has detector boundary , marked-edge parity , and
Thus the bound is attained.
The important special case is the relocation of a syndrome defect from to , for which .
Corollary 2.4 (Distance bound). For any , and ,
Proof. Let be a minimum-weight – path of marked-edge parity . Toggling transforms any correction for into a correction for and changes its weight by at most . Hence
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 be a set of candidate modifications with the required syndrome and logical parity, and define
Suppose is a lower bound on for every allowed modification . If
then
Proof. By Lemma 2.3, the exact change is the minimum net cost over all allowed modifications. Every modification outside has cost at least , while a modification inside has cost . Hence the global minimum lies in .
Lemma 2.6 (Update after flipping one detector). For the decoding graphs used here, let 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 , a minimum-weight correction in the same class can be found by reconnecting these pairs along one path starting at 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 with those in a minimum-weight correction after the flip. The connections appearing in only one correction form a path from 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 , 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 .
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 .
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 and , 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 and be minimum-weight corrections for syndrome in the two logical classes. Suppose a class-preserving modification is certified by Lemma 2.5 to be optimal for both
class corrections. If
then
Proof. Equation (S20) implies that every edge of either belongs to both and or to neither. Therefore
Since preserves the logical class and is optimal for both modified matching problems, Lemma 2.3 shows that and change by exactly the same amount. Their difference is therefore unchanged.
The symmetric difference 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 denote this visible syndrome. The remaining detector outcomes, which would only be revealed by the later closing measurement, form the hidden syndrome .
Definition 2.8 (Hidden-syndrome prediction). A hidden-syndrome prediction is a possible assignment of outcomes to all hidden detectors. Together with the observed syndrome , it determines a prediction of the full syndrome,
Different predictions correspond to different possible syndromes that could be revealed if the circuit were subsequently closed by the final measurement. For a prediction , let
and
denote the smaller and larger minimum-weight logical-class corrections for the resulting full syndrome.
Allowing the hidden detector values to vary freely gives
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
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 . 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 attaining . 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 be the set of predictions evaluated by the search, including its root, and define
Theorem 2.9 (Minimum over evaluated predictions). If the class weights stored for each prediction in are exact, then
Adding evaluated predictions can only decrease .
Proof. The minimum over a subset cannot be smaller than the unrestricted minimum, and the root is included in . Enlarging the set cannot increase its minimum.
We note that Caliper can find the smallest in 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 , but would require exponentially many hidden syndromes. Nor does the monotonicity of imply monotonicity of the summed score 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 of hidden-syndrome predictions, define
and
Within the most-likely-error approximation, is the total weight assigned to the more likely logical class of each predicted full syndrome, while is the corresponding weight of the less likely class. The logical failure probability restricted to these predictions is therefore
It is convenient to define
for which
When 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 orders shots identically to 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 , sorting them in the same way as . Since these corrections need not have minimum weight, . Caliper computes
In the exact limit, where both matching weights are known exactly for every prediction in , .
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 , then
For the unrestricted set of hidden syndromes, the right-hand side is exactly . Equations (S27) and (S36) distinguish the two quantities. The open-boundary decoder immediately determines the minimum possible , while the search finds predictions with low . The minimum-weight quantity obeys Theorem 2.9; the finite-sum score 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 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 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.

Figure S7. Equivalent logical membranes. Adding an detector deforms into an equivalent membrane , 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 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 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 in the middle of the circuit corresponds to a spacetime membrane extending backwards in time from . 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 , 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.

Figure S8. Logical membranes at an open temporal boundary. The local fault loop (inset) intersects the membrane once before the decision time and once after, flipping the truncated observable while preserving the full observable at .
Note that if we have a noiseless syndrome extraction round, it becomes possible to clean 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 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, , 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 , the compatible fault configurations decompose into logical equivalence classes. If denotes the partition function obtained by summing the probabilities of all fault configurations with syndrome and logical class , then
Thus the posterior logical error probability is determined by the relative free energies
of the different logical sectors. In particular, after maximum-likelihood decoding,
At , 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 , 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 is optimal – it is not necessarily the case that post-selecting purely on 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 and denote the visible and hidden parts of the syndrome. For , let be the minimum number of faults producing syndrome and logical class . Define
and .
If the complete syndrome is decoded by maximum likelihood, then the conditional probability of a logical error given is
and
for every attainable visible syndrome .
Proof. Let be the probability that the syndrome is and the logical class is . The contributions to are dominated by minimum weight faults, so that
For a fixed full syndrome , maximum-likelihood decoding fails with joint probability
Summing over and approximating the sum by the dominant (minimum weight) contribution therefore gives
where entropic factors are absorbed into the big- notation. Similarly,
Hence
It remains to compare with . Let be a fault configuration of weight producing visible syndrome . Choose two fault configurations and that attain . Thus and have zero visible syndrome, the same hidden syndrome, opposite logical classes, and at most faults each.
The configurations
where denotes symmetric difference, have visible syndrome , the same hidden syndrome, and opposite logical classes. Each has at most faults. Therefore
Since the no-fault configuration produces the zero syndrome, , and hence . It follows that
Consequently, if
then, for all sufficiently small ,
In this case, keeping only shots with is the optimal postselection rule at its corresponding acceptance probability. However, it is possible that , 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 . Moreover, at larger , 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 cultivation with open-boundary escape stage postselection as a proxy for state cultivation, which allows for a direct comparison with the closed-boundary postselection 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 cultivation. Simulating only the injection and cultivation stages (without the escape stage), Refs. [69, 70, 73] identified that the logical error rate of color code cultivation is roughly larger than that obtained from cultivation proxies, as opposed to the 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 state and state cultivation including the escape stage (with closed-boundary postselection) for the 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 and cultivation once the effects of open-boundary escape-stage postselection are included. It is possible that an exact simulation of 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 denote the information available at decision point , including the observed syndrome, the code geometry, and previous adaptive operations. Define the adaptive counterpart of the open-boundary conditional logical error probability as
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 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 .
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 denote an adaptive policy, the acceptance event, and the terminal decision point. Let be the volume consumed by one attempt, including injection, cultivation, and escape:
where is the number of circuit layers, is the number of occupied physical qubits in layer , and 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
The accepted logical error rate is
The optimization objective is therefore
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 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]P. W. Shor, Physical Review A 52, R2493 (1995).
- [2]A. M. Steane, Physical Review Letters 77, 793 (1996).
- [3]E. Knill, R. Laflamme, and W. H. Zurek, Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences 454, 365 (1998).
- [4]D. Aharonov and M. Ben-Or, SIAM Journal on Computing 38, 1207 (2008).
- [5]A. Y. Kitaev, Annals of Physics 303, 2 (2003), arXiv:quant-ph/9707021.
- [6]B. M. Terhal, Reviews of Modern Physics 87, 307 (2015).
- [7]A. G. Fowler, M. Mariantoni, J. M. Martinis, and A. N. Cleland, Physical Review A 86, 032324 (2012).
- [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]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]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]Atom Computing and Collaborators, Quantum error correction with the toric code (2026), arXiv:2606.04079 [quant-ph].arxiv.org/abs/2606.04079
- [12]Google Quantum AI, Nature 614, 676 (2023).
- [13]Google Quantum AI and Collaborators, Nature 638, 920 (2025).
- [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]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]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]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]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]D. Gottesman, The Heisenberg Representation of Quantum Computers (1998), arXiv:quant-ph/9807006.arxiv.org/abs/quant-ph/9807006
- [20]E. Knill, Fault-Tolerant Postselected Quantum Computation: Schemes (2004), arXiv:quant-ph/0402171 [quant-ph], arXiv:quant-ph/0402171.DOI
- [21]S. Bravyi and A. Kitaev, Physical Review A 71, 022316 (2005).
- [22]B. Eastin and E. Knill, Physical Review Letters 102, 110502 (2009).
- [23]B. Zeng, A. Cross, and I. L. Chuang, IEEE Transactions on Information Theory 57, 6272 (2011), arXiv:0706.1382, arXiv:0706.1382.
- [24]C. Chamberland and K. Noh, npj Quantum Information 6, 91 (2020), arXiv:2003.03049 [quant-ph].DOI
- [25]T. Itagowa, Y. Takada, Y. Hirano, and K. Fujii, PRX Quantum 6, 020356 (2025), arXiv:2403.03991 [quant-ph].
- [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]Google Quantum AI and Collaborators, Magic state cultivation on a superconducting quantum processor (2025), arXiv:2512.13908 [quant-ph].
- [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]Y. Vaknin, S. Jacoby, A. Grimsmo, and A. Retzker, PRX Quantum 7, 010533 (2026).
- [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]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]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]D. Gottesman and I. L. Chuang, Nature 402, 390 (1999).
- [34]X. Zhou, D. W. Leung, and I. L. Chuang, Physical Review A 62, 052316 (2000), arXiv:quant-ph/0002039.DOI
- [35]D. Litinski, Quantum 3, 205 (2019), arXiv:1905.06903 [quant-ph].DOI
- [36]Y. Li, New Journal of Physics 17, 023037 (2015), arXiv:1410.7808 [quant-ph].DOI
- [37]C. Gidney, Cleaner magic states with hook injection (2023), arXiv:2302.12292 [quant-ph].arxiv.org/abs/2302.12292
- [38]C. Chamberland and A. W. Cross, Quantum 3, 143 (2019), arXiv:1811.00566, arXiv:1811.00566.DOI
- [39]H. Bombín, M. Pant, S. Roberts, and K. I. Seetharam, PRX Quantum 5, 010302 (2024).
- [40]S. C. Smith, B. J. Brown, and S. D. Bartlett, Communications Physics 7, 386 (2024), arXiv:2405.03766, arXiv:2405.03766.DOI
- [41]L. H. English, D. J. Williamson, and S. D. Bartlett, Physical Review Letters 135, 120603 (2025).
- [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]S.-H. Lee, L. H. English, and S. D. Bartlett, npj Quantum Information 12, 96 (2026), arXiv:2510.05795 [quant-ph].
- [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]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]C. Gidney, M. Newman, P. Brooks, and C. Jones, Yoked surface codes (2023), arXiv:2312.04522 [quant-ph].arxiv.org/abs/2312.04522
- [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]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]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]E. Dennis, A. Kitaev, A. Landahl, and J. Preskill, Journal of Mathematical Physics 43, 4452 (2002).
- [51]O. Higgott, ACM Transactions on Quantum Computing 3, 1 (2022), arXiv:2105.13082, arXiv:2105.13082.
- [52]O. Higgott and C. Gidney, Quantum 9, 1600 (2025), arXiv:2303.15933 [quant-ph].
- [53]A. Hutter, J. R. Wootton, and D. Loss, Physical Review A 89, 022326 (2014).
- [54]We optimize the frozen gap parameter φ via a parameter sweep.
- [55]We employ the LLR 2-norm instance of the metric.
- [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]C. Gidney, Quantum 5, 497 (2021), arXiv:2103.02202 [quant-ph].
- [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]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]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]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]In reality, this protocol only has fault distance 4, as was noted in [28].
- [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]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]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]T. Xue and J. P. Covey, arXiv preprint arXiv:2605.03791 (2026).
- [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]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]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]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]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]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]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]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]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]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]N. Shutty, M. Newman, and B. Villalonga, Physical Review Letters 136, 070603 (2026).
- [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]J. P. Bonilla Ataides, A. Gu, S. F. Yelin, and M. D. Lukin, PRX Intelligence 1, 013008 (2026).
- [80]D. Dentelski, Neural network decoder confidence as a learned proxy for the logical gap (2026), arXiv:2606.08758 [quant-ph].
- [81]J. Blue, H. Avlani, Z. He, L. Ziyin, and I. L. Chuang, Quantum 10, 2149 (2026).
- [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]P. Baireuther, M. D. Caio, B. Criger, C. W. J. Beenakker, and T. E. O’Brien, New Journal of Physics 21, 013003 (2019).
- [84]N. Lacroix et al., Nature 645, 614 (2025)
- [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]K. Meinerz, C.-Y. Park, and S. Trebst, Physical Review Letters 128, 080505 (2022).
- [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]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]Z. Liu, A. Gong, and B. K. Clark, Decoding quantum low density parity check codes with diffusion (2025).
- [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]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]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]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]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]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]A. G. Fowler, Time-optimal quantum computation (2013), arXiv:1210.4626 [quant-ph], arXiv:210.4626.arxiv.org/abs/1210.4626
- [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]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]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]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]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]G. Duclos-Sianci and D. Poulin, Physical Review Letters 104, 050504 (2010), arXiv:0911.0581, arXiv:0911.0581.
- [103]H. Nishimori, Progress of Theoretical Physics 66, 1169 (1981).
- [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]J. Feldman, M. Wainwright, and D. Karger, IEEE Transactions on Information Theory 51, 954 (2005).
- [106]P. Iyer and D. Poulin, IEEE Transactions on Information Theory 61, 5209 (2015).
- [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]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









