When to use Maestro

deltakit-maestro is designed for simulating QEC circuits under non-Pauli and non-Clifford noise—and for quantifying how much a standard Pauli-twirled approximation misses. For pure Pauli noise at scale, Stim is faster on x86; deltakit-maestro runs pure Pauli noise with identical logical error rates so you can use one workflow across both regimes.

Quick decision guide

What you want to simulate

Recommended setup

Practical scale

Pure Pauli noise (SI1000, SD6, custom Pauli)

Stim (fastest on x86), or MaestroBackend() with noise_type='pauli' (Stabilizer Pauli frames)

Hundreds of qubits

T1 relaxation + Pauli noise

MaestroBackend() with t1=... (Stabilizer, shot by shot)

Hundreds of qubits (benchmarked to 288 qubits)

Strong coherent over-rotations (1D chains or small 2D patches)

MaestroBackend() with noise_type='coherent' or 'full' (MatrixProductState, or Statevector at d=3)

Rotated d=3 surface code (17 qubits); repetition codes up to 101 qubits

Small coherent errors on larger 2D / qLDPC codes

MaestroBackend(simulation_type=ExtendedStabilizer, extended_stabilizer_amplitude_tolerance=...)

Surface codes up to d=7 (97 qubits); [[72,12,6]] qLDPC (144 qubits)

Per-qubit hardware calibration, asymmetric readout, ZZ crosstalk

Custom maestro.NoiseModel with MaestroCompiledSampler / MaestroSinterSampler

Stabilizer (Pauli/T1) or MatrixProductState (coherent/crosstalk)

Where it is most useful

Measuring what the Pauli twirl misses. Most QEC decoder studies replace coherent gate errors and T1 relaxation with their Pauli twirl so a Clifford simulator can run them. deltakit-maestro simulates the physical non-Pauli channel directly while giving the decoder the detector error model of the twirl, so both runs are decoded identically on the same circuit. Key findings from the Benchmarks:

  • On the rotated d=3 surface code, coherent over-rotations produce 17–40% more logical errors than their Pauli twirl, with the largest relative gap at low physical error rates.

  • On repetition codes, the gap widens with distance—reaching 45% at d=15. The Pauli twirl overstates the error-suppression factor Λ by 6–9%, making extrapolations to larger distances from twirled simulations optimistic.

  • A stronger twirl doesn’t fix it. Fitted to fire as many detection events as the coherent noise, the twirl overestimates the logical errors instead, by 58% at d=15, and understates Λ. No single-rate Pauli twirl matches both the detection-event rate and the logical error scaling (Λ) as the code grows (see Not a stronger Pauli twirl).

Coherent over-rotations. No Clifford simulator can execute unitary over-rotations. Maestro’s matrix product state (MPS) simulator runs them and matches exact statevector simulations across every tested circuit (see Matrix product state):

  • Rotated d=3 surface code (17 qubits): ~3.8 ms per shot on MPS (or ~1.9 ms on Statevector).

  • Repetition codes up to 101 qubits: ~0.91 s per shot across 30 threads, far beyond statevector memory limits (at 25 qubits, a statevector takes 12.5 s per shot versus 11 ms on MPS).

Small coherent errors on larger codes. When coherent errors are weaker than stochastic Pauli noise—as on typical superconducting hardware—Maestro’s extended stabilizer simulator handles codes that neither a statevector nor an MPS can hold: surface codes up to d=7 (97 qubits) and the [[72,12,6]] bivariate bicycle code (144 qubits). With coherent infidelity equal to a quarter of SI1000(0.002)’s two-qubit gate error, coherent noise produces 5–9% more detection events and at least 16% more logical errors at d=5 than its Pauli twirl (see Extended stabilizer and the runnable Extended stabilizer example; requires Maestro 0.3.16+).

T1 decay. Relaxation toward |0⟩ is not a Pauli channel either. Maestro’s stabilizer simulator runs it shot by shot as a probabilistic reset to |0⟩ with probability γ: ~23,000 shots/s at d=3 and ~2,700 shots/s at d=5 on a single Apple M4 Pro thread (see Performance). Statevector and MatrixProductState sample T1 as trajectory amplitude damping, and noise_type='full' combines in-circuit Pauli noise, coherent over-rotations, and optional t1= decay (see Noise). On the [[72,12,6]] and [[144,12,12]] bivariate bicycle codes, the Pauli twirl produces 6–9% more first-round detection events (while data qubits start in |0⟩), under 1% more overall, and identical logical error rates within sampling uncertainty (see T1 decay on qLDPC codes).

Hardware-shaped noise. A maestro.NoiseModel lets you specify per-qubit and per-coupler depolarizing rates, per-qubit T1, asymmetric readout errors, directed coherent rotations, and ZZ crosstalk (see Custom Maestro noise model).

One workflow for everything. Deltakit Circuits and plain stim.Circuits pass in directly and return measurements, detection events, or Sinter statistics. sinter_decoders() accepts 'pymatching' or any sinter.Decoder implementing compile_decoder_for_dem. Because ldpc’s built-in Sinter BP-OSD class does not implement compile_decoder_for_dem, either decode detection events directly (as shown in Every Deltakit code family) or use a thin compile_decoder_for_dem wrapper (as in benchmarks/common.py). Switching noise models requires no changes to the surrounding pipeline (see Sampling and Sinter).

Where another tool or mode is better

  • Pure Pauli noise at scale: Stim samples 1.4–2.6× faster on x86 with the same logical error rates (see Pauli noise against Stim).

  • Coherent noise on a small 2D code (d=3): Maestro’s exact Statevector is faster than MPS on 17 qubits (1.9 ms/shot vs. 3.8 ms/shot). Pass simulation_type=maestro.SimulationType.Statevector to MaestroBackend.

  • Strong coherent noise on long-range qLDPC codes: Non-local connectivity exceeds practical MPS bond dimensions, and the extended stabilizer’s runtime grows rapidly once coherent error rates approach stochastic gate error rates (see Extended stabilizer).