Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Logical error-budget allocation

Logical error-budget allocation assigns acceptable failure contributions among storage, gates, measurements, state factories and other parts of a computation.

Edition released Coverage: Overview · Technical · Research
On this page

Explanation and significance

Not every operation needs the same error target. A rare but expensive operation and a frequently repeated cheap operation contribute differently to total failure. The allocation guides code distances and resource choices. A final target should include algorithmic approximation and statistical error separately from hardware failure.

Mechanism and mathematical structure

For operation classes j with counts N_j and per-operation failure bounds p_j, the union bound gives P_fail≤sum_j N_j p_j. This bound does not require independence. Different classes can receive budgets epsilon_j with sum epsilon_j≤epsilon_total and p_j≤epsilon_j/N_j.

Fully worked reference example

Consider one million memory locations and one thousand non-Clifford operations, with total hardware-failure budget0.01. Allocate0.004 to memory,0.005 to non-Clifford operations and 0.001 to all remaining tasks. Then memory needs p_mem≤4×10^-9 per location, while the non-Clifford target is p_T≤5×10^-6 per operation. Equal per-operation error targets would ignore the thousand-fold count difference and may waste resources.

Limits and misconceptions

The union bound can be conservative, but replacing it with an independence product needs justified assumptions. Failures can propagate or correlate across classes. A resource optimization must preserve the task’s actual tolerance, not choose budgets solely to make a qubit count attractive.

Scientific relationships

Is used in fault-tolerant resource estimation. Depends on logical operation counts and failure definitions. Is distinct from an application’s numerical approximation tolerance.

A budget is tied to a failure definition

The union bound combines probabilities of specified bad events without requiring independence. It is therefore a useful conservative starting point for heterogeneous logical operations. The events must still be meaningful: an average physical gate infidelity is not automatically a probability that a logical computation fails. For coherent channel errors, composition may instead be controlled using a norm bound or an explicit logical noise model. Substituting average infidelities into a stochastic ledger without justification changes the mathematical claim.

Storage exposure also depends on the schedule. A logical qubit waiting for a factory output accumulates memory locations; a successful retry can extend the exposure of other registers. Counting only gates in the algorithm's symbolic circuit omits these locations. A resource estimate should therefore connect precision choices to the execution schedule, because stronger protection or a slower factory can change both the cost and the number of opportunities for failure.

Deriving an illustrative optimal allocation

Consider a simplified cost C=Σaⱼ ln(1/pⱼ), with positive aⱼ and per-operation failure targets pⱼ. Impose ΣNⱼpⱼ=ε. A Lagrange multiplier λ gives −aⱼ/pⱼ+λNⱼ=0, so pⱼ=aⱼ/(λNⱼ). Summing the budget terms yields λ=(Σaⱼ)/ε and therefore Nⱼpⱼ=εaⱼ/Σaⱼ. Under this particular logarithmic model, class budgets are proportional to their cost sensitivities aⱼ.

Take two classes with a_memory=9, a_T=1, N_memory=10⁶, N_T=10³, and ε=0.01. The optimal modeled budgets are 0.009 and 0.001, giving per-location targets 9×10⁻⁹ and 10⁻⁶. These differ from an equal split of total failure probability. They also differ from a model in which aⱼ itself includes Nⱼ times a per-operation cost. The algebra is useful precisely because it exposes which cost assumptions determine the answer.

Discrete code distances change the optimization

A common illustrative logical model is pL(d)=Ar^((d+1)/2) for odd distance d and fixed r<1. Solving pL(d)≤p* gives d≥2ln(p*/A)/ln(r)−1, followed by rounding upward to an allowed odd distance. With A=0.1, r=0.1, and p*=10⁻⁹, the smallest distance in this model is fifteen. A target of 5×10⁻⁹ also selects fifteen because the next smaller odd distance gives 10⁻⁸.

Thus small changes in an assigned budget may have no hardware effect until they cross a discrete resource boundary. Conversely, crossing that boundary can change data count, ancilla count, surgery duration, and factory throughput together. A continuous optimum is a guide to candidate allocations; a concrete design must evaluate its discrete choices. The logical scaling law is itself noise- and decoder-dependent and cannot be imported from a different architecture without justification.

Error classes, correlations, and common events

If a common event can damage several logical registers, counting it once as a global bad event may be more informative than assigning independent marginal probabilities to every register. The union bound remains valid for overlapping events, but excessive overlap can make it loose. Replacing it by a product of success probabilities is only appropriate when the required independence or conditional factorization is justified.

Factories create another distinction: a rejected state costs time and resources, while an accepted incorrect state threatens the algorithm. Their probabilities belong in different parts of the model. A factory with excellent conditional output fidelity but low yield may increase storage exposure elsewhere. The same accounting applies to heralded links and postselected logical operations. Conditional error, acceptance, and retry latency must be combined before selecting a final budget.

Numerical accuracy and failure probability are different units

An application may tolerate an energy error of a specified size, a confidence failure probability, and a probability of a catastrophic logical fault. These are not directly additive quantities. A complete analysis can allocate a probability budget among bad events and separately allocate deterministic approximation error among synthesis, discretization, and truncation. Statistical error contributes through a tail probability at a chosen tolerance. Writing all of them as one unlabeled epsilon can hide incompatible units and unsupported assumptions.

Some logical faults have bounded influence on an observable rather than causing certain total failure. A task-specific risk model can exploit that structure, but it requires the observable and loss function. It should not silently reinterpret a fault-tolerant guarantee that assumed arbitrary outputs after an uncorrected fault. The stricter union-bound ledger and the task-specific expectation-error analysis answer different questions.

Slack can be valuable near an uncertain scaling law

An allocation that exactly saturates every modeled limit can be fragile when logical-rate parameters are uncertain. If an upper confidence or credible envelope is used for pL(d), the chosen distance can differ from one selected using only the central fit. This is a quantitative sensitivity decision, not a universal requirement to add an arbitrary safety factor. Reporting which parameters drive the extra resource shows whether improved characterization or improved hardware would reduce the uncertainty cost most effectively.

Media reference: A million operations under a declared failure budget

For M operations with independent identical failure probability p, the chance of at least one failure is 1-(1-p)^M. When Mp is small, the leading approximation is Mp. Without independence, a union bound still gives an upper bound by the sum of individual event probabilities, provided those probabilities refer to the relevant complete procedure. With M=10^6 and p=10^-9, the independent model gives approximately 0.0009995. Runtime additionally depends on dependency depth, operation duration, auxiliary-state supply and communication. A million counted operations does not by itself specify either reliable completion or wall-clock time.

Sources