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

All sections

Saved
Error correction and systems

How much protection is needed when every logical operation exposes the machine for several rounds?

A code distance belongs to a workload, not a headline

Source research checked . Teaching calculations are ideal models.

A small logical error probability is meaningful only beside the number of opportunities for failure. A memory experiment, a short logical operation and a large algorithm can tolerate very different per-round rates. Choosing a code distance therefore starts with a workload and an explicit accounting convention, rather than a desired number of decimal places.

The model assigns a simple distance-dependent logical error and makes each logical operation consume a number of correction rounds proportional to distance. Increasing distance improves one factor while increasing the exposure count, footprint and serial duration. The calculation then selects the smallest tested odd distance meeting a stated union-bound target. A union bound adds event probabilities and does not require the events to be independent, although the assumed per-location probabilities remain a strong physical modeling choice.

This is an accounting exercise, not a surface-code resource estimate for a named algorithm. A real implementation must also count factories, routing, boundaries, correlated faults, logical gate constructions and recovery behavior. Moving from per-location protection to complete-workload protection requires an explicit exposure count. The footprint must also state which resources it excludes.

Synthetic decision model

Start with the assumptions

  • The error law and coefficients are invented.
  • A serial sequence of logical operations lasts d correction rounds per operation; all stored registers, including idle ones, remain exposed.
  • All counted locations share the stipulated per-location bound.

p_L(d) = A × ratio^((d+1)/2)

Counted locations = logical_registers × base_operations × d

Workload union bound = min(1, counted_locations × p_L)

Toy patch footprint = logical_registers × (2d²-1)

Synthetic a code distance belongs to a workload, not a headline plot: Failure probability bound versus Code distance.
Synthetic baseline case. Horizontal axis: Code distance. Vertical axis: Failure probability bound. Curves show Workload union bound, Target. These are computed teaching examples, not measured hardware results.

Compare the input regimes

Each case uses invented inputs. The results follow from this model and do not describe measured hardware.

Baseline regime
Complete inputs
Physical error / model threshold
0.12
Scaling prefactor
0.04
Base logical operations
10000
Logical registers
8
Workload failure bound
0.001
Cycle time, microseconds
1
Tested odd distances
3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41
  1. The error model gives p_L(d) = A × ratio^((d + 1)/2). Multiply by logical registers × base operations × distance to count the declared fault opportunities.
  2. At d = 17, the resulting union bound is min(1, 1,360,000 × 2.06391e-10) = 0.000281.
  3. The illustrative rotated-patch allocation is 8 × (2 × 17² - 1) = 4,616 physical qubits. The serial duration is 0.17 seconds. Routing space, factories and extra control patches are excluded.
Baseline regime · synthetic calculated results
Calculated quantitySynthetic result
Smallest passing tested distance17
Chosen-distance logical error per location2.0639121408e-10
Counted fault locations1360000
Union-bound workload failure0.000280692051149
Illustrative physical-qubit footprint4616
Serial operation time, seconds0.17
Complete tested distance range
DistancePer-location errorCounted locationsWorkload failure boundPhysical qubitsSeconds
30.00057624000011360.03
50.0000691240000013920.05
70.000008294456000017760.07
99.95328e-77200000.7166361612880.09
111.1943936e-78800000.105106636819280.11
131.43327232e-810400000.01490603212826960.13
151.719926784e-912000000.002063912140835920.15
172.0639121408e-1013600000.00028069205114946160.17
192.47669456896e-1115200000.000037645757448257680.19
212.97203348275e-1216800000.0000049930162510270480.21
233.5664401793e-1318400006.56224992992e-784560.23
254.27972821516e-1420000008.55945643033e-899920.25
275.1356738582e-1521600001.10930555337e-8116560.27
296.16280862983e-1623200001.42977160212e-9134480.29
317.3953703558e-1724800001.83405184824e-10153680.31
338.87444442696e-1826400002.34285332872e-11174160.33
351.06493333124e-1828000002.98181332746e-12195920.35
371.27791999748e-1929600003.78264319255e-13218960.37
391.53350399698e-2031200004.78453247057e-14243280.39
411.84020479637e-2132800006.03587173211e-15268880.41

Distance 17 is the smallest tested odd distance meeting the stated target. The gate count alone is not the exposure count: this model makes each logical operation last d rounds. Its scaling prefactor and threshold ratio are invented. No threshold theorem or device forecast is inferred from the scan.

Comparison regime
Complete inputs
Physical error / model threshold
0.245
Scaling prefactor
0.04
Base logical operations
60000
Logical registers
18
Workload failure bound
0.001
Cycle time, microseconds
1.5
Tested odd distances
3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41
  1. The error model gives p_L(d) = A × ratio^((d + 1)/2). Multiply by logical registers × base operations × distance to count the declared fault opportunities.
  2. At d = 29, the resulting union bound is min(1, 31,320,000 × 2.75138e-11) = 0.000862.
  3. The illustrative rotated-patch allocation is 18 × (2 × 29² - 1) = 30,258 physical qubits. The serial duration is 2.61 seconds. Routing space, factories and extra control patches are excluded.
Comparison regime · synthetic calculated results
Calculated quantitySynthetic result
Smallest passing tested distance29
Chosen-distance logical error per location2.75138431283e-11
Counted fault locations31320000
Union-bound workload failure0.000861733566778
Illustrative physical-qubit footprint30258
Serial operation time, seconds2.61
Complete tested distance range
DistancePer-location errorCounted locationsWorkload failure boundPhysical qubitsSeconds
30.002401324000013060.27
50.000588245540000018820.45
70.0001441200257560000117460.63
90.0000353094061259720000128980.81
110.0000086508045006211880000143380.99
130.0000021194471026514040000160661.17
155.1926454015e-716200000180821.35
171.27219812337e-7183600001103861.53
193.11688540225e-8205200000.639584884542129781.71
217.63636923551e-9226800000.173192854261158581.89
231.8709104627e-9248400000.0464734158935190262.07
254.58373063362e-10270000000.0123760727108224822.25
271.12301400524e-10291600000.00327470883927262262.43
292.75138431283e-11313200000.000861733566778302582.61
316.74089156643e-12334800000.000225685049644345782.79
331.65151843378e-12356400000.0000588601169798391862.97
354.04622016275e-13378000000.0000152947122152440823.15
379.91323939874e-14399600000.00000396133046374492663.33
392.42874365269e-14421200000.00000102298682651547383.51
415.95042194909e-15442800002.63484683906e-7604983.69

Distance 29 is the smallest tested odd distance meeting the stated target. The gate count alone is not the exposure count: this model makes each logical operation last d rounds. Its scaling prefactor and threshold ratio are invented. No threshold theorem or device forecast is inferred from the scan.

Extended regime
Complete inputs
Physical error / model threshold
0.395
Scaling prefactor
0.04
Base logical operations
120000
Logical registers
30
Workload failure bound
0.001
Cycle time, microseconds
2.1
Tested odd distances
3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41
  1. The error model gives p_L(d) = A × ratio^((d + 1)/2). Multiply by logical registers × base operations × distance to count the declared fault opportunities.
  2. At d = 41, the resulting union bound is min(1, 147,600,000 × 1.35082e-10) = 0.019938.
  3. The illustrative rotated-patch allocation is 30 × (2 × 41² - 1) = 100,830 physical qubits. The serial duration is 10.332 seconds. Routing space, factories and extra control patches are excluded.
Extended regime · synthetic calculated results
Calculated quantitySynthetic result
Smallest passing tested distanceNo tested distance passes
Chosen-distance logical error per location1.35082471965e-10
Counted fault locations147600000
Union-bound workload failure0.0199381728621
Illustrative physical-qubit footprint100830
Serial operation time, seconds10.332
Complete tested distance range
DistancePer-location errorCounted locationsWorkload failure boundPhysical qubitsSeconds
30.0062411080000015100.756
50.00246519518000000114701.26
70.00097375202525200000129101.764
90.00038463204987532400000148302.268
110.00015192965970139600000172302.772
130.0000600122155817468000001101103.276
150.0000237048251548540000001134703.78
170.00000936340593614612000001173104.284
190.00000369854534478684000001216304.788
210.00000146092541119756000001264305.292
235.77065537419e-7828000001317105.796
252.2794088728e-7900000001374706.3
279.00366504758e-8972000001437106.804
293.55644769379e-81044000001504307.308
311.40479683905e-81116000001576307.812
335.54894751424e-91188000000.659214964692653108.316
352.19183426812e-91260000000.276171117784734708.82
378.65774535909e-101332000000.115321168183821109.324
393.41980941684e-101404000000.0480141242125912309.828
411.35082471965e-101476000000.019938172862110083010.332

The tested distance range does not meet the target. The gate count alone is not the exposure count: this model makes each logical operation last d rounds. Its scaling prefactor and threshold ratio are invented. No threshold theorem or device forecast is inferred from the scan.

Try the reasoning: Double the number of stored logical registers. Which costs and failure opportunities increase even if the serial operation count stays fixed?

Sources and model boundaries

  • Surface codes: Towards practical large-scale quantum computation ↗

    Surface-code computation requires physical layouts, repeated stabilizer information and logical operation constructions with resource costs. Only architectural context is used. All scaling coefficients and workload values in the lab are invented, and the toy footprint excludes substantial resources.

Back to this lab in the catalog