Pauli noise against Stim

Pauli noise runs on Maestro’s stabilizer simulator, sampled on Pauli frames (see Simulation types). Stim is the standard for it, so here it is the reference that checks Maestro’s statistics.

In short: Maestro gives the same logical error rates as Stim, at all 54 points below. For Pauli noise alone, use Stim: on one thread of an x86 machine it samples detection events 1.4–2.6× faster on these codes, and on Apple Silicon, where Stim has no SIMD build, the two are even. Maestro is for noise Stim can’t run, with Pauli noise as part of it.

Logical error rates

Using sinter.collect, rotated surface code Z-memory experiments (d=3, 5, 7, d syndrome rounds) were sampled both by Stim directly and by Maestro via as_sinter_task(), then decoded identically by PyMatching using the circuit’s own detector error model. Each point ran to 50 million shots or 5,000 logical errors under three Deltakit noise models:

  • SI1000, superconducting-inspired: two-qubit gates p, single-qubit gates and idling p/10, readout 5p, reset and idling during readout and reset 2p.

  • SD6, standard depolarizing: every gate, idle, reset and readout p.

  • Toy: two-qubit gates p, single-qubit gates and idling p/10, readout p.

tasks = []
for circuit, meta in circuits:
    tasks.append(sinter.Task(circuit=circuit, decoder='pymatching', json_metadata=meta))
    tasks.append(backend.as_sinter_task(circuit, json_metadata=meta))
sinter.collect(num_workers=os.cpu_count(), tasks=tasks,
               custom_decoders=backend.sinter_decoders(decoder='pymatching'), ...)
Three log-log plots of logical error rate against physical noise strength p, for SI1000, SD6 and Toy noise, with curves for d=3, 5 and 7. Maestro's markers sit on Stim's lines at every point.

Logical error rate per shot against p. Stim is the line, with a ±2σ band; Maestro is the markers, with ±2σ bars.

Maestro and Stim agree at all 54 points. If the two sample the same distribution, the 54 z-scores behave like draws from a standard normal, and they do: mean +0.09, standard deviation 1.03, χ² = 56.2 where agreement gives 54 ± 10, and three beyond ±2 (the largest 2.6), where chance gives about 2.5. Every point reached 5,000 logical errors from each sampler except two that stopped at 50 million shots: Toy noise at p=0.001 on d=5, with 4,001 (Maestro) and 3,937 (Stim), and on d=7, with 450 and 505.

Sampling throughput

For pure Pauli noise, Stim remains faster on x86 (1.4–2.6× on a single thread across surface, repetition, toric, and bivariate bicycle codes; on Apple Silicon, where Stim has no SIMD build, the two are comparable):

Two plots of single-thread Pauli-frame detection-event throughput on x86. Left, rotated surface code SI1000(0.002) shots per second from d=3 to d=15 for Stim and Maestro on a log scale. Right, Maestro divided by Stim throughput ratio across 18 circuit and noise configurations, ranging from 0.39x to 0.72x.

Single-thread detection-event sampling throughput on x86 (c2-standard-30) via compile_sampler(...).sample_detection_events() vs. Stim’s compile_detector_sampler().sample().

The full throughput measurements are in benchmarks/results/stabilizer_speed.json, from benchmarks/stabilizer_speed.py.