Abstraqt: Analysis of Quantum Circuits via Abstract Stabilizer Simulation

Benjamin Bichsel, Anouk Paradis, Maximilian Baader, Martin Vechev · DOI

TL;DR

Abstraqt is a novel tool that brings the power of abstract interpretation to quantum circuit simulation. By merging exponential sums of quantum states into single "abstract summands," it enables the efficient analysis of circuits containing non-Clifford gates, successfully verifying properties that are mathematically intractable for existing exact simulators.

What Problem Does This Paper Address?

Classical simulation of quantum circuits is notoriously difficult. While the Gottesman-Knill theorem allows us to simulate "Clifford circuits" (using gates like H, S, and CNOT) very efficiently, adding even a few non-Clifford gates (like the T gate) typically triggers an exponential blow-up in runtime.

Existing "extended" stabilizer simulators attempt to track the quantum state as a sum of many stabilizer states. However, the number of terms in this sum grows exponentially with the number of non-Clifford gates. This makes it impossible to simulate or verify large-scale, complex quantum circuits using traditional exact methods. The authors aim to break this "exponential wall" by trading off perfect precision for computational efficiency.

Methods

The researchers introduce a framework called Abstract Stabilizer Simulation. Their approach is built on two pillars:

  1. Abstract Interpretation: Instead of tracking the exact state $\rho$, they track an "abstract" version that represents a set of possible states. They define specific abstract domains to represent components of the quantum state, such as:
  2. Booleans and $Z_4$: Represented as sets of possible values.
  3. Real and Complex Numbers: Represented using intervals (e.g., polar coordinates where magnitude and phase are ranges).
  4. Pauli Elements: Represented as sets of Pauli matrices.
  5. Merging Summands (Compression): This is the "secret sauce." When a non-Clifford gate is applied, it normally splits one state into many. Abstraqt immediately "joins" these new states back into a single abstract summand that over-approximates all of them. This keeps the representation compact and the runtime polynomial rather than exponential.

The authors developed abstract transformers—mathematical functions that describe how gates and measurements affect these abstract states. As shown in Figure 1, the simulator propagates these abstract states through the circuit, maintaining a "sound" over-approximation at every step.

Figure 1: Overview of Abstraqt, where we define c and c1–c4 in §3.

Datasets

The authors evaluated Abstraqt using a benchmark suite of 12 quantum circuits, each operating on 62 qubits. These benchmarks were specifically designed to be challenging:

  • They include a mix of Clifford and non-Clifford gates (T, CCX, $RX_{\pi/4}$, $RZ_2$).
  • They are constructed such that a specific set of "lower" qubits should always revert to the $|0\rangle$ state, though the path to get there is non-obvious.
  • One benchmark, MeasureGHZ, includes internal measurements, which typically cause path explosion in other simulators.

Abstraqt was compared against several state-of-the-art baselines: ESS (Qiskit's Extended Stabilizer Simulator), QuiZX, Feynman, YP21, and standard Statevector simulation.

Key Insights and Ideas

  • Soundness over Precision: By using abstract interpretation, Abstraqt guarantees that if it proves a property (like "this qubit is definitely $|0\rangle$"), it is true. It might sometimes be "too imprecise" (returning "maybe"), but it will never be wrong.
  • Efficient Measurement Handling: Exact simulators often have to branch for every possible measurement outcome. Abstraqt can merge these outcomes into one abstract state, allowing it to simulate circuits with many internal measurements without slowing down.
  • Domain Specificity: The choice of abstract domains (like the interval-based complex numbers shown in Figure 4) is crucial. These domains are tailored to the linear algebraic structure of stabilizer states.
Table 2: Example elements on abstract domains.

Key Results

The results were stark: Abstraqt achieved a 100% success rate across all 100 instantiations of the 12 benchmarks, usually within minutes.

In contrast, the baselines struggled significantly:

  • QuiZX only succeeded on 22% of instances, frequently timing out or running out of memory.
  • ESS (Qiskit) actually produced incorrect results for some circuits, sampling impossible measurement outcomes—a bug discovered thanks to Abstraqt's formal approach.
  • Feynman, YP21, and Statevector failed to solve a single benchmark, either due to memory limits (Statevector) or lack of support for specific gates and measurements.
  • Memory Efficiency: Abstraqt never required more than 600 MB of RAM, while baselines often hit the 12 GB limit.

Limitations and Future Work

The primary limitation is precision loss. On general circuits without specific underlying structures, the abstract intervals can quickly grow to cover the entire range $[0, 1]$, rendering the analysis useless (e.g., saying the probability of an outcome is between 0 and 1).

Future work includes:

  • Relational Domains: Developing domains that track relationships between different qubits to improve precision.
  • Abstracting Modern Simulators: Applying these abstract interpretation techniques to more advanced simulation methods like CH-forms or ZX-calculus (QuiZX), which might offer a better baseline for scaling.
  • Optimization: Using these insights to help compilers optimize quantum circuits by identifying invariant states that allow for gate removal.

Summary updated

BibTeX
@article{bichsel2023abstraqt,
  author = {Benjamin Bichsel and Anouk Paradis and Maximilian Baader and Martin Vechev},
  title = {{Abstraqt: Analysis of Quantum Circuits via Abstract Stabilizer Simulation}},
  journal = {Quantum},
  year = {2023},
  doi = {10.22331/q-2023-11-20-1185},
}
Figure