# General Noise Channels and Mid-Circuit Measurements for Pre-Trajectory Sampling with Batched Execution

Quantum.world

> Exact trajectory sampling now handles Kraus channels and mid-circuit measurements, making QEC decoder-training datasets cheaper without Pauli-twirling approximations.

**arXiv**: 2611.23923 · Preprint · not peer-reviewed

**Published**: 2026-11-18

**Authors**: Louis Follet, Paavai Pari, Isidor Schoch, Thien Nguyen, Justin G. Lietz, Daniel Lowell, Brucek Khailany, Krysta M. Svore, Dirk R. Englund, Taylor L. Patti

## In plain words

Exact sampling of measurement records from noisy quantum circuits is expensive, and approximate methods such as Pauli twirling are fast but change the output statistics.

## AI summary

## Overview

**Research area:** Classical simulation of noisy quantum circuits — specifically quantum trajectory (Monte Carlo wavefunction) simulation and its batched variant, applied to quantum error correction (QEC) workload generation.

**Technical level:** Advanced. The paper assumes familiarity with Kraus operator representations, quantum trajectories, stabilizer/Clifford simulation, and Pauli twirling, although its central idea can be grasped with lighter background.

**Scope (one sentence):** The paper generalizes pre-trajectory sampling with batched execution (PTSBE) so that it works exactly with mid-circuit measurements and general Kraus channels, implements the method on GPUs as an extension of CUDA-Q, and benchmarks it against conventional CUDA-Q trajectory sampling and the near-Clifford simulator Clifft.

## What This Paper Is About

Exact sampling of measurement records from noisy quantum circuits is expensive, and approximate methods such as Pauli twirling are fast but change the output statistics. Pre-trajectory sampling with batched execution (PTSBE) speeds up exact trajectory simulation by drawing all noise outcomes before state evolution and evolving each distinct trajectory only once — but this requires every outcome probability to be independent of the quantum state, which rules out mid-circuit measurements and general (non-mixture-of-unitaries) Kraus channels. The paper removes that restriction without adding approximations, splitting each stochastic event into a state-independent part that is pre-sampled and a residual part that is drawn from the intermediate state at run time.

## Key Contributions

1. **A partially pre-sampled trajectory framework.** Each stochastic event is assigned a state-independent lower bound on its outcome probabilities (taken from the delayed inner product algorithm) plus a residual distribution. A proposal either fixes an outcome in advance or marks the event as deferred, and the resulting decomposition reproduces the exact Born-rule probabilities.
2. **Grouped execution with multinomial splitting and state caching.** Trajectories with identical proposals evolve as one group; at a deferred event a single multinomial draw splits the group into sibling groups, which restart from a cached state in a depth-first traversal.
3. **A GPU implementation as an extension of CUDA-Q**, with three terminal readout modes — proportional sampling (m_α = c_α), rescaled proportional sampling (m_α = b·c_α), and nonproportional sampling (m_α = m, with records weighted by c_α/N).
4. **An optional preprocessing search over equivalent Kraus representations** to maximize the pre-sampling probability s_v and thereby reduce the expected number of deferred events per proposal. The authors note the standard form of amplitude damping used in their benchmarks is already optimal, and that a larger s_v does not guarantee shorter runtime.

## Main Findings

- **Speedup on QEC memories:** On distance-3 topological code memories under amplitude damping, generalized PTSBE reaches 11–24× higher sampling throughput than conventional trajectory sampling in CUDA-Q v0.15.1 (up to 24×). At M = 10² shots the speedup is only 1.5× to 3.5×, because those 10² draws contain just 54 distinct proposals in each surface-code memory and 37 in the color code; at M = 10⁶ the speedup reaches 11× for both surface-code memories and 24× for the 10-qubit color code, which has 261 noise locations against 384 for the surface codes.
- **Speedup on random monitored circuits:** For n = 16, 24, and 30 qubits with depth D = 8 under Pauli gate noise of probability 10⁻³, the speedup over CUDA-Q is 47–318× and nearly flat in the non-Clifford gate density η, since a statevector engine applies Clifford and non-Clifford gates at the same cost.
- **Crossover with Clifft:** The method outperforms the near-Clifford simulator Clifft above a crossover non-Clifford density of approximately 62%, 35%, and 24% for n = 16, 24, and 30 respectively, reaching 3.8×, 10³×, and 681× at η = 1. Clifft runs on 16 CPU cores; the other two simulators evolve single-precision GPU statevectors on one GPU.
- **Amplitude damping versus Pauli twirling:** On a distance-3 rotated surface-code memory storing |0⟩_L over three rounds with 24 detectors, the exact and twirled syndrome distributions lie at a total-variation distance of 19.8% given a detection, versus 0.4% from finite sampling with about 10⁹ sampled syndromes each. Individual syndrome probabilities shift by up to 329-fold, and twirling overestimates the detection rate by 21% (at least one detection in 30.3% of shots versus 25.1% exactly).
- **Decoder impact:** A lookup decoder built from twirled statistics fails on 0.458% of 10⁷ exact-noise records, against 0.424% for the exact table — an 8% relative increase in logical error rate. The authors explain the structure via error sets E: exact damping leaves a Z-check ancilla in |0⟩ quiet, whereas the twirled channel fires its detector pair half the time, producing the observed 25%, 50%, and 75% plateaus.
- **Amplitude damping with Clifft excluded:** Replacing Pauli noise with amplitude damping (γ = 10⁻³ after single-qubit layers, 5×10⁻⁴ per qubit after two-qubit layers) gives speedups of 176×, 111×, and 83× over CUDA-Q for n = 16, 24, and 30, since Clifft does not support non-unitary Kraus channels.
- **Nonproportional mode:** For an n = 30, D = 16 circuit with amplitude damping on every qubit, recording 14 mid-circuit and 30 terminal bits per shot, 100 proposals give 100 distinct trajectories. CUDA-Q runs at 0.723 shots/s; the per-trajectory shot rate exceeds CUDA-Q by 1.4× at m = 10² and over 70,000× at m = 10⁷, while the fraction of distinct shots stays above 0.89. Generating the trajectories takes a fixed 46.3 s, and sampling their final states grows only from 55.5 s to 149 s over five orders of magnitude in m.

## Methodology in Plain English

Noisy quantum circuits are usually simulated by "trajectories": for each shot, a simulator draws each random event (a noise outcome or a measurement result) as the state evolves, then updates the state accordingly. This is exact but wasteful, because many shots repeat the same sequence of random events and are evolved from scratch each time. PTSBE fixes all random outcomes up front, groups identical sequences, and evolves each distinct one only once — but it can only do so when the probability of each outcome doesn't depend on the state, which fails for mid-circuit measurements and for channels such as amplitude damping.

The authors' fix is to split each event's probability into two pieces. A state-independent lower bound (the smallest singular value squared of the relevant Kraus operator) is pre-sampled, exactly as in PTSBE, and covers a total probability s_v. The remaining probability 1 − s_v is turned into a residual distribution that is only evaluated when the trajectory actually reaches the event on a concrete state. So each trajectory starts as a "proposal" containing some fixed outcomes and some deferred markers. Identical proposals travel together as a group with a shared quantum state and a multiplicity count. When a group hits a deferred event, the residual distribution is computed once on the group's state, and a single multinomial draw allocates the group's copies among the possible outcomes. Sibling groups resume from a cached copy of the state taken just before the event, and depth-first traversal bounds the cache to the number of deferred events on the current path. At the end, each final state is sampled in a batch, either as many times as its multiplicity, that many times scaled by a factor, or a fixed number of times per trajectory.

## Why This Matters

**Impact on research.** The work closes a gap between fast batched trajectory sampling and the noise models people actually want to study. Exact simulation of general channels previously relied on density-matrix simulation (limited to about 17 qubits in prior work) or on tensor networks that either assume perfect syndrome measurements or take seconds per shot; quasiprobability methods return signed-weight samples. The paper shows a concrete case where the popular Pauli-twirling approximation measurably biases both syndrome statistics and decoder performance, and it makes exact, high-throughput data generation practical at sizes and rates that were previously out of reach.

**Real-world applications (as framed by the paper):**

- Generating large labeled training datasets for machine-learning QEC decoders under hardware-accurate noise.
- Studying measurement-based fault-tolerant protocols where mid-circuit measurements and non-Clifford operations are intrinsic.
- Predicting hardware behavior and validating devices against faithful noise models, at scales where collecting data directly is costly and offers limited control over error processes.
- Producing many labeled shots per evolved trajectory, which the authors use as a route to bulk dataset construction.

**Industry relevance.** The implementation is built as an extension of CUDA-Q and shipped from NVIDIA, targeting GPU-accelerated quantum simulation workflows. The 83–318× throughput gains and the 70,000× per-trajectory sampling rate in nonproportional mode directly affect the cost of building decoder training pipelines, which is a practical bottleneck for fault-tolerant quantum computing roadmaps.

## Future Directions

- **Alternative readout mode.** The authors report that speedup decreases with n partly because their runs sample final states only after all trajectories are complete, requiring each to be prepared again; they plan a mode that samples each trajectory as soon as its final state is reached.
- **Optimizing Kraus representations more broadly.** The optional search over equivalent Kraus representations that maximize s_v is proposed but not fully exploited; the authors note that a larger s_v does not guarantee shorter runtime because the representation also changes how often trajectories coincide and branch.
- **Scaling behavior for larger codes.** For QEC, the number of likely error configurations grows with code size, number of rounds, and error rates, potentially reducing the speedup, while the cost saved per avoided evolution grows exponentially in qubit number. The net effect is system-dependent and left for future study.
- **More demanding decoder evaluations.** The lookup decoder tested is described as a simple case using only which side of 1/2 each P(L = 1 | S) estimate falls on; the authors suggest soft-output decoders and learned decoders that consume full measurement bitstrings could be affected differently by twirling, and that twirling may matter more for them.

## Target Audience

Quantum error correction researchers and simulator developers who need large volumes of exact, hardware-faithful measurement data; practitioners building or training ML decoders; and GPU quantum-simulation engineers working with CUDA-Q or comparable statevector stacks. Readers interested in the accuracy of Pauli twirling as an approximation will also find the surface-code comparison directly useful, though the paper assumes comfort with Kraus operators, trajectory methods, and stabilizer simulation.

## Authors’ abstract

Many studies of quantum protocols require fast sampling of large amounts of measurement data from noisy quantum circuits, such as for training machine-learning decoders for quantum error correction. Exact simulation of realistic noise is expensive, while stabilizer-based simulators are fast but approximate, for example through Pauli twirling, which generally alters the output statistics. Pre-trajectory sampling with batched execution (PTSBE) accelerates exact trajectory…

[The full abstract on arXiv](https://arxiv.org/abs/2611.23923)

[Read the original paper](https://arxiv.org/abs/2611.23923)

## Related papers

- [TCBP-JOBS: GPU-Accelerated Quantum Error Correction Decoding and Noise Learning with Near-Optimal Accuracy](https://quantum.world/paper/tcbp-jobs-gpu-accelerated-quantum-error-correction-decoding-and-noise-2611.21321) 2026-11-16 · quant-ph · Also by Justin G. Lietz, Krysta M. Svore
- [Agentic Pipelines for Mapping Topological Codes to Quantum Hardware](https://quantum.world/paper/agentic-pipelines-for-mapping-topological-codes-to-quantum-hardware-2611.03329) 2026-11-02 · quant-ph · Also by Krysta M. Svore, Taylor L. Patti
- [Lifting: Quantum State Discrimination Framework for Mid-Circuit Measurements](https://quantum.world/paper/lifting-quantum-state-discrimination-framework-for-mid-circuit-2610.18482) 2026-10-13 · quant-ph · Key terms of the title in common
- [CUDA-Q Logical: Retargetable Compilation for Fault-Tolerant Quantum Computing](https://quantum.world/paper/cuda-q-logical-retargetable-compilation-for-fault-tolerant-quantum-2609.13388) 2026-09-11 · quant-ph · Also by Krysta M. Svore
- [AxQM: A Textbook-Scale Benchmark for Formal Proof Synthesis in a Library of Finite-Dimensional Quantum Mechanics](https://quantum.world/paper/axqm-a-textbook-scale-benchmark-for-formal-proof-synthesis-in-a-library-2609.05157) 2026-09-04 · quant-ph · Also by Dirk R. Englund

---

Canonical: https://quantum.world/paper/general-noise-channels-and-mid-circuit-measurements-for-pre-trajectory-2611.23923
