Quantum Error Correction Simulator Matches Leading Software Performance

A new open-source simulator, Tsim, accelerates the simulation of quantum error correction, a key step towards building practical quantum computers. Rafael Haenel and his colleagues designed Tsim for high-throughput analysis of noisy quantum circuits. Representing circuits as ZX diagrams and using GPU acceleration, Tsim achieves linear time complexity for sampling with Clifford gates, offering a sharp performance boost for certain circuit types. By extending the Stim API and circuit format, the simulator provides a flexible set of tools for researchers developing and testing quantum error correction codes.

Parameterised ZX diagram modelling enables efficient high-fidelity quantum simulation

Tsim now achieves a throughput matching that of Stim for low-magic circuits, a sharp improvement considering previous simulators struggled with even modestly sized quantum computations. This performance leap stems from Tsim’s unique approach to modelling noise, representing error channels as ‘parameterised vertices’ within ZX diagrams, a visual method for mapping quantum circuits. ZX diagrams offer a distinct advantage over traditional quantum circuit representations, such as Qiskit’s OpenQASM, by explicitly representing the structure of Clifford gates and allowing for simplification through diagrammatic equivalence rules. These rules, applied during a compilation phase, reduce the complexity of the circuit before simulation, significantly improving performance. The parameterization of vertices allows for the modelling of a wide range of Pauli channels, including bit-flip, phase-flip, and depolarizing errors, with a relatively small number of parameters. This contrasts with methods that require specifying the entire error matrix, which can become computationally expensive for higher-dimensional error spaces. By utilising GPU acceleration and a streamlined simulation pipeline, Tsim can sample detector shots in linear time with Clifford gates, an important advancement for simulating complex quantum error correction schemes.

The simulator extends the Stim API, seamlessly integrating with existing quantum workflows and enabling analysis targeting error rates of 10−9 to 10−12, previously inaccessible to many simulation tools. Stim is a widely used, high-performance quantum circuit simulator specifically designed for quantum error correction, and compatibility ensures Tsim can leverage existing benchmarks and testing infrastructure. The ability to probe such low error rates is crucial for validating the effectiveness of quantum error correction codes, as these codes are designed to reduce errors to levels below the threshold required for fault-tolerant quantum computation. Following a one-time compilation process, Tsim can generate detector shots, representing measurement outcomes, in a time directly proportional to the number of Clifford gates used, a key capability for simulating sophisticated quantum error correction. This compilation step involves transforming the ZX diagram into a form optimised for vectorized sampling on the GPU, effectively pre-computing certain calculations to speed up the simulation. However, these throughput gains currently focus on low-magic circuits, and scaling to simulations of highly complex, fault-tolerant quantum algorithms remains a significant hurdle. Its full support of the Stim API and its ability to analyse error rates ranging from 10−9 to 10−12 are valuable, as many proposed quantum error correction schemes rely heavily on Clifford gates, providing a powerful tool for testing these vital techniques. The linear scaling with Clifford gates is particularly significant, as it allows researchers to explore larger code sizes and longer simulation times without encountering prohibitive computational costs.

Simulating error correction prioritises circuits utilising Clifford gates

The pursuit of stable quantum computers demands ever-more-sophisticated simulation tools, and Tsim represents a notable step forward in modelling the noise inherent in these systems. Quantum computers are inherently susceptible to noise arising from various sources, including environmental disturbances and imperfections in quantum gates. Accurately modelling this noise is essential for developing effective error correction strategies. The developers have created a simulator that streamlines calculations and efficiently models errors by visually mapping circuits as ZX diagrams, an important advance for testing quantum error correction. This visual representation aids in understanding the flow of quantum information and the impact of errors on the computation. Efficient modelling of errors as parameterised vertices further streamlines the process of testing quantum error correction techniques. By reducing the number of parameters needed to define the error channels, Tsim reduces the computational burden of simulating noisy quantum circuits.

Despite its current strengths with simpler circuits, Tsim faces limitations with more complex ‘high-magic’ designs which contain numerous non-Clifford gates. These gates, essential for universal quantum computation, sharply slow down simulation times; the simulator’s performance scales exponentially with their number. Non-Clifford gates, such as the Toffoli gate, break the structure that allows for efficient simplification in ZX diagrams, requiring more complex and computationally intensive simulation methods. Future investigation centres on extending its efficiency to circuits containing a greater proportion of non-Clifford gates, potentially through algorithmic optimisation or hardware acceleration. This could involve developing new ZX diagram equivalence rules that can handle non-Clifford gates more efficiently, or exploring alternative simulation techniques that are better suited for these types of circuits. The development of more efficient methods for simulating high-magic circuits is crucial for evaluating the performance of fully fault-tolerant quantum algorithms.

Tsim offers a valuable new tool for simulating noisy quantum circuits. Representing circuits as ZX diagrams simplifies complex calculations and allows for efficient modelling of errors, providing a streamlined process for testing quantum error correction techniques. While currently demonstrating comparable performance to Stim for circuits primarily utilising Clifford gates, the team is actively working to address the challenges posed by high-magic circuits. The open-source nature of Tsim encourages collaboration and allows researchers to contribute to its development, potentially accelerating the progress towards building practical, fault-tolerant quantum computers. The simulator’s ability to efficiently simulate quantum error correction codes is a significant contribution to the field, providing a powerful platform for exploring new error correction strategies and evaluating their performance.

Tsim is a new open-source simulator capable of efficiently modelling noisy quantum circuits. By representing circuits as ZX diagrams and utilising GPU acceleration, it streamlines the process of testing quantum error correction techniques, achieving comparable sampling performance to Stim for low-magic circuits. The simulator’s speed scales exponentially with the number of non-Clifford gates, which currently limits its performance on more complex designs. Researchers are now focused on improving Tsim’s efficiency with high-magic circuits through algorithmic optimisation and hardware acceleration.

👉 More information
🗞 Tsim: Fast Universal Simulator for Quantum Error Correction
🧠 ArXiv: https://arxiv.org/abs/2604.01059

Rohail T.

Rohail T.

As a quantum scientist exploring the frontiers of physics and technology. My work focuses on uncovering how quantum mechanics, computing, and emerging technologies are transforming our understanding of reality. I share research-driven insights that make complex ideas in quantum science clear, engaging, and relevant to the modern world.

Latest Posts by Rohail T.:

Fermionic Systems’ Efficient Calculations Now Possible with New Equations

Fermionic Systems’ Efficient Calculations Now Possible with New Equations

April 8, 2026
Fewer Measurements Unlock More Precise Quantum Sensing Techniques

Fewer Measurements Unlock More Precise Quantum Sensing Techniques

April 8, 2026
Calculations Bound Quantum System Energies for up to Ten Particles

Calculations Bound Quantum System Energies for up to Ten Particles

April 8, 2026