GPU-Accelerated Quantum Simulation of Stabilizer Circuits
This paper introduces QuaSARQ, a GPU-accelerated simulator that employs novel parallel algorithms for stabilizer circuit evolution and measurements to achieve up to 105× speedups and over 80% energy reduction compared to state-of-the-art CPU and GPU simulators, enabling efficient simulation of circuits with up to 180,000 qubits.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
In the quest to build a working quantum computer, scientists face a paradox: to prove a machine works, they must first simulate its behavior on a classical computer. But simulating a quantum system is notoriously difficult because the amount of information required to describe it grows explosively with every added particle. A single quantum bit, or qubit, can exist in a state of superposition, representing both 0 and 1 simultaneously. When you link many qubits together, their combined state becomes a vast, complex web of possibilities that is incredibly hard to track. However, there is a special class of quantum circuits, known as stabilizer circuits, that behave in a more predictable way. These circuits use a specific set of operations that, while powerful enough to test error correction and communication protocols, do not create the full, chaotic complexity of a universal quantum computer. Because of this structure, they can be simulated on classical machines, but only if the simulation is clever enough to avoid getting bogged down by the sheer volume of data.
The challenge has been that as these circuits grow larger—reaching tens of thousands of qubits and millions of operations—traditional simulation methods hit a wall. They struggle particularly when the circuit includes measurements, which are the moments where the quantum state is observed and forced to collapse into a definite result. These measurements introduce randomness and require the computer to constantly reorganize its internal data structure, a process that becomes painfully slow and sequential on standard processors. Researchers at Leiden University have now introduced a new approach that bypasses these bottlenecks by moving the entire simulation onto a graphics processing unit, or GPU. These chips, originally designed to render video games, are built to perform thousands of simple calculations simultaneously, making them ideal for the kind of massive, parallel data crunching required to simulate large quantum circuits.
The team, led by Muhammad Osama, Dimitrios Thanos, and Alfons Laarman, developed a new simulator called QuaSARQ. Instead of trying to force the old, sequential methods to run faster, they completely rewrote the underlying algorithms to fit the GPU's architecture. In a standard simulation, updating the state of a quantum circuit after a measurement often involves a step-by-step process similar to solving a complex puzzle where you cannot move the next piece until the current one is placed. This creates a chain of dependencies that slows everything down. The researchers redesigned this process so that the GPU can handle thousands of these updates at the same time. They achieved this by organizing the data in a way that allows the memory to be accessed in smooth, continuous streams, eliminating the pauses and conflicts that usually occur when many processors try to read and write to the same memory space at once.
A key innovation in their work is how they handle the "pivot" points during the simulation. When a measurement occurs, the simulator must identify which parts of the quantum state are affected and update them. In previous methods, finding these affected parts was a slow, searching process that varied wildly depending on the specific circuit. The new method packs these search results into a tight, compact list, allowing the GPU to process them in a single, efficient pass. Furthermore, they replaced the traditional step-by-step elimination of data with a parallel technique that calculates the necessary changes in three coordinated sweeps. This allows the simulator to handle circuits with up to 180,000 qubits and depths of 1,000 layers, a scale that was previously out of reach for many existing tools.
The results of their testing were striking. When compared against the fastest existing simulators, including the highly optimized CPU-based tool known as Stim, QuaSARQ demonstrated a massive improvement in speed. On the most demanding test cases, the new simulator ran up to 105 times faster than its competitors. Beyond raw speed, the efficiency gains were equally significant. Because the GPU completed the tasks so much more quickly, it consumed over 80 percent less energy than the CPU-based alternatives. This is a crucial finding, as the energy cost of running large-scale simulations is becoming a major concern for researchers. The new tool also excelled at "many-shot" sampling, a process where the same circuit is run thousands of times to build a statistical picture of its behavior. While other simulators slowed down significantly as the number of required samples increased, QuaSARQ maintained a steady, rapid pace, handling thousands of shots with ease.
The researchers tested their system against a broad suite of benchmarks, ranging from small circuits to massive ones with 180,000 qubits. In these tests, QuaSARQ consistently outperformed not only Stim but also other leading software packages like Qiskit-Aer, Qibo, Cirq, and PennyLane. In one specific comparison, while the leading CPU simulator managed to complete 125 circuits within a 132-hour window, QuaSARQ finished 177 circuits in just 72 hours. The advantage was particularly pronounced in circuits with many measurements, where the new parallel algorithms prevented the simulation from stalling. The team noted that their approach does not just make existing simulations faster; it enables the simulation of quantum circuits at a scale that was previously impossible to study in detail.
This work suggests that the path to understanding complex quantum systems may lie in adapting classical hardware to think in parallel rather than in sequence. By rethinking how data is stored and how updates are calculated, the researchers have shown that the limitations of current simulators are not fundamental laws of physics, but rather engineering challenges that can be solved. The success of QuaSARQ indicates that for the specific class of stabilizer circuits, the combination of specialized algorithms and modern GPU hardware can provide a powerful tool for verifying quantum error correction and designing future quantum protocols. While this does not solve the simulation problem for all types of quantum circuits, it provides a robust and efficient method for a foundational class of problems that are critical to the development of reliable quantum computers. The findings offer a clear demonstration that with the right approach, the computational barriers to simulating large-scale quantum behavior can be significantly lowered.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.