Coherent noise against its Pauli twirl

Decoder studies replace coherent gate errors by their Pauli twirl: the same error probability per gate, but no coherence, so a Clifford simulator such as Stim can run it. On hardware, small over-rotations add up in amplitude between measurements, and the twirl can’t show what that does. Here both run on the same circuits and are decoded the same way: the over-rotations on Maestro’s matrix product state (MPS), their twirl on Stim, both by PyMatching with the twirl’s detector error model. What differs is only what the twirl leaves out.

sampler = backend.compile_sampler(noisy, decoder=None, noise_type='coherent')
coherent = sampler.sample_detection_events(shots)                                 # MPS: (dets, obs)
twirl = backend.twirled_circuit(noisy, noise_type='coherent')
pauli = twirl.compile_detector_sampler().sample(shots, separate_observables=True) # Stim: (dets, obs)
dem = sampler.task.detector_error_model                                           # decodes both

noise_type='coherent' replaces each gate’s depolarizing noise in a Deltakit SI1000(p) circuit by an over-rotation of the same process infidelity about a body diagonal of the Bloch sphere, with a sign drawn once per qubit per shot. Idle, reset and readout noise stay as they are (see Coherent noise).

In short: coherent over-rotations produce 17–40% more logical errors than their Pauli twirl on the rotated d=3 surface code, most at the weakest noise (so the twirl underestimates the coherent LEP by 15–28%). On repetition codes the gap grows with distance, reaching 45% more logical errors at d=15 (a 31% underestimate): the twirl overstates how fast the logical error probability falls as the code grows. A stronger twirl doesn’t fix it. Fitted to fire as many detection events as coherent noise, the twirl overestimates the logical error probability instead, and that gap grows with distance too: coherent noise has 5–7% fewer logical errors than the fitted twirl on the surface code, and 37% fewer at d=15 (see Not a stronger Pauli twirl).

The rotated d=3 surface code

3 syndrome rounds, with 600,000 coherent shots and 120 million Pauli-twirl shots per point:

p

Detection rate, coherent

Twirl

Ratio

LEP, coherent

Twirl

Ratio

0.002

0.0730

0.0603

1.211 ± 0.002

0.0243

0.0174

1.395 ± 0.011

0.003

0.1048

0.0876

1.196 ± 0.001

0.0488

0.0363

1.344 ± 0.008

0.005

0.1614

0.1372

1.177 ± 0.001

0.1126

0.0875

1.286 ± 0.005

0.007

0.2092

0.1807

1.158 ± 0.001

0.1813

0.1465

1.238 ± 0.003

0.01

0.2678

0.2364

1.133 ± 0.001

0.2732

0.2330

1.172 ± 0.002

The coherent runs have 14,587 logical errors at p=0.002 and 163,933 at p=0.01, so every ratio is measured to about 1%. Coherent noise gives more detection events and more logical errors at every strength, and the weaker the noise, the larger the excess: at p=0.002 coherent noise produces 40% more logical errors than its twirl (so the twirl misses 28% of them).

Repetition codes, by distance

Each repetition code ran for d syndrome rounds until reaching 400 coherent logical errors or 400,000 shots per point, compared against 120 million Pauli-twirl shots per point. At p=0.005 for d ≥ 11, fewer logical errors occur in 400,000 shots than needed for a reliable ratio, so those points are omitted:

Code

p

Detection rate, coherent

Twirl

Ratio

LEP, coherent

Twirl

Ratio

d=3

0.01

0.1828

0.1700

1.075 ± 0.002

0.0428

0.0416

1.03 ± 0.01

d=5

0.01

0.1943

0.1812

1.073 ± 0.001

0.0265

0.0244

1.08 ± 0.01

d=7

0.01

0.1995

0.1863

1.071 ± 0.001

0.0161

0.0141

1.14 ± 0.02

d=9

0.01

0.2022

0.1894

1.067 ± 0.001

0.0100

0.0081

1.22 ± 0.04

d=11

0.01

0.2041

0.1914

1.066 ± 0.001

0.0063

0.0048

1.32 ± 0.05

d=13

0.01

0.2054

0.1929

1.065 ± 0.001

0.0038

0.0028

1.35 ± 0.06

d=15

0.01

0.2062

0.1940

1.063 ± 0.0004

0.0024

0.0017

1.45 ± 0.07

d=3

0.005

0.1009

0.0929

1.085 ± 0.002

0.0116

0.0113

1.03 ± 0.02

d=5

0.005

0.1082

0.0998

1.084 ± 0.001

0.0035

0.0032

1.10 ± 0.03

d=7

0.005

0.1117

0.1029

1.085 ± 0.001

0.00104

0.00083

1.24 ± 0.06

d=9

0.005

0.1135

0.1048

1.083 ± 0.001

0.00029

0.00021

1.36 ± 0.13

Two plots of coherent over Pauli twirl. Left, the rotated d=3 surface code against noise strength p from 0.002 to 0.01: the logical error rate ratio falls from 1.40 to 1.17 and the detection-event ratio from 1.21 to 1.13. Right, repetition codes against distance d from 3 to 15: the detection-event ratio is flat near 1.07, while the logical error rate ratio rises from 1.03 at d=3 to 1.45 at d=15.

Coherent noise over its Pauli twirl, ±2σ: solid lines the logical error rate, dashed lines detection events. Left: the d=3 surface code against p. Right: repetition codes against distance, where detection events stay flat and the logical error rate rises.

The detection-event excess stays nearly flat across distance, 6–7% at p=0.01 and about 8% at p=0.005, while the logical error excess grows. Fitting the logical error rate against distance gives the error-suppression factor Λ, the factor the LEP falls by for each +2 in distance (a fit of ln LEP against d/2, weighted by the logical errors counted):

p

Distances

Λ, coherent

Λ, twirl

Λ, fitted twirl

0.01

3 to 15

1.622 ± 0.007

1.717 ± 0.001

1.535 ± 0.001

0.005

3 to 9

3.37 ± 0.06

3.66 ± 0.004

3.18 ± 0.01

The twirl overstates Λ by 6–9%, so a projection of the logical error rate to larger codes from twirled simulations is optimistic, and more so the further it reaches. The fitted twirl, below, understates it.

Not a stronger Pauli twirl

A flat detection-event excess and a growing logical error excess suggest that coherent noise acts like Pauli noise a few percent stronger, whose excess compounds over the (d + 1) / 2 faults a logical error needs. It doesn’t. Raise the twirl’s coherent rate until the twirl fires exactly as many detection events as coherent noise did (computed from its detector error model; the rate goes up by a factor of 1.41 to 1.70), sample it on Stim, and decode it with the same detector error model as coherent noise:

fitted = backend.twirled_circuit(noisy, noise_type='coherent', coherent=scale * p)

Code

p

Rate ×

LEP, coherent

Twirl

Fitted twirl

Coherent ÷ fitted

rotated d=3

0.002

1.70

0.0243

0.0174

0.0260

0.935 ± 0.008

rotated d=3

0.003

1.69

0.0488

0.0363

0.0526

0.926 ± 0.006

rotated d=3

0.005

1.68

0.1126

0.0875

0.1211

0.929 ± 0.004

rotated d=3

0.007

1.67

0.1813

0.1465

0.1934

0.937 ± 0.003

rotated d=3

0.01

1.66

0.2732

0.2330

0.2890

0.945 ± 0.002

repetition d=3

0.01

1.58

0.0428

0.0416

0.0495

0.86 ± 0.01

repetition d=5

0.01

1.51

0.0265

0.0244

0.0333

0.79 ± 0.01

repetition d=7

0.01

1.48

0.0161

0.0141

0.0215

0.75 ± 0.01

repetition d=9

0.01

1.45

0.0100

0.0081

0.0137

0.73 ± 0.02

repetition d=11

0.01

1.44

0.0063

0.0048

0.0090

0.70 ± 0.03

repetition d=13

0.01

1.43

0.0038

0.0028

0.0059

0.65 ± 0.03

repetition d=15

0.01

1.41

0.0024

0.0017

0.0038

0.63 ± 0.03

repetition d=3

0.005

1.57

0.0116

0.0113

0.0137

0.85 ± 0.01

repetition d=5

0.005

1.51

0.0035

0.0032

0.0045

0.78 ± 0.02

repetition d=7

0.005

1.50

0.00104

0.00083

0.00139

0.75 ± 0.04

repetition d=9

0.005

1.48

0.00029

0.00021

0.00042

0.70 ± 0.07

The fitted twirl fires as many detection events as coherent noise but makes more logical errors, at every point, and by more the larger the code: coherent noise has 93–95% of its logical errors on the surface code, and 63% on the d=15 repetition code (the fitted twirl overestimates LEP by 58% at d=15). Each fitted twirl ran until 20,000 logical errors; the ratios’ errors include both runs’ sampling error and the error of the coherent detection rate the fit matches. Decoding the fitted twirl with its own detector error model, as a study of that model would, lowers its logical error probability by at most 6.5%, and coherent noise still has 68–95% as many logical errors.

Two plots of repetition codes against distance d from 3 to 15. Left, logical error probability at p=0.01 on a log axis: coherent noise (Λ=1.622) lies strictly between the pessimistic detection-matched fitted twirl (Λ=1.535) and the optimistic nominal twirl (Λ=1.717). Right, coherent divided by twirl LEP ratio at p=0.01 and p=0.005: coherent over nominal twirl rises above 1 (up to 1.45), while coherent over fitted twirl falls below 1 (down to 0.63).

Nominal and detection-matched Pauli twirls bracket coherent noise on repetition codes. Left: LEP vs. distance at p=0.01, showing the three error-suppression slopes Λ. Right: coherent ÷ twirl LEP ratios (±2σ) diverging on opposite sides of 1 as distance grows.

Why does the detection-matched twirl overshoot? The fit holds SI1000’s idle, reset, and readout noise fixed and scales up only the after-gate depolarizing channel (coherent=scale * p, by 1.41–1.70×) until the mean detector rate matches. That uniform isotropic inflation increases independent spacelike data-qubit errors across the code faster than coherent over-rotations—whose amplitudes interfere within fixed-sign trajectories rather than acting as stronger independent flips—produce multi-qubit logical chains.

So no single-rate Pauli twirl matches both the detection-event rate and the logical error scaling (Λ) as the code grows: at the nominal gate infidelity it is optimistic, fitted to the detection events it is pessimistic, and both drift further from coherent noise with distance. While an intermediate effective rate could be fit post-hoc to match Λ alone, neither the physical infidelity nor the observed syndrome rate predicts it without running the coherent simulation.

Checking χ

Truncation adds detection events too (see Bond dimension), so each part reran its most demanding point at χ=64, double the default, with independent seeds. On the d=15 repetition code at p=0.01, χ=32 and χ=64 agree: z = +0.1 on the detection rate and +0.6 on the LEP, 28,800 shots each. On the d=3 surface code at p=0.01, with 200,000 shots each, χ=32 has 0.2% fewer detection events than χ=64 (z = −1.9), the opposite of what truncation does, and the same LEP (z = −0.6). Either way, 0.2% is small next to the coherent excess of 13%. The surface code at χ=32 also agrees with an exact statevector on these circuits (see Matrix product state).

How these were run

On a Google Cloud n2d-highcpu-128 (AMD EPYC 7B13, 128 threads), with Maestro 0.3.15 and otherwise the same software as the other pages. Maestro 0.3.16 converges in χ the same way for coherent noise alone (see Matrix product state). A sampler doesn’t use a machine that size by itself, so coherent.py runs 120 single-threaded processes (OMP_NUM_THREADS=1), each sampling its own seeded chunk of shots, and merges their counts. Only accuracy is reported here, so the machine doesn’t matter to the results. The whole run took about 2½ hours.

The fitted twirl (coherent.py fitted) runs only Stim, from the coherent runs’ saved results; it took 25 minutes on a 12-core laptop.