Skip to main content
KetQat

Appearance

Topic · intermediate

Quantum Software Engineering

The engineering of quantum programs and toolchains. Intermediate representations such as OpenQASM 3 and QIR, verification and testing of quantum programs and compilers, circuit equivalence checking and its complexity, and classical simulators with their exponential limits.

ExpositionMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Overview

Quantum programs pass through a toolchain before they reach a device: a language or library, an intermediate representation (IR), a series of compiler passes, and a back end that emits control instructions. Quantum software engineering asks how to make this toolchain interoperable, correct and testable. Three themes dominate.

  • Representations. Open standards let languages and devices meet in the middle. OpenQASM 3 extends a circuit assembly language with real-time classical control, timing and pulse-level calibrations (Cross et al.); QIR embeds quantum programs in LLVM IR and defines profiles of supported features (QIR specification).
  • Verification and testing. Compilers rewrite circuits aggressively, and a wrong rewrite produces plausible but wrong outputs. Equivalence checking compares circuits (Burgholzer and Wille); formally verified compilers prove their passes correct in a proof assistant (Hietala et al.). In general, deciding approximate equivalence is QMA-complete (Janzing, Wocjan and Beth).
  • Simulation. Classical simulators are the reference against which programs are tested; their cost grows exponentially with qubit number in general and polynomially for restricted classes such as stabilizer circuits (Aaronson and Gottesman) or circuits of small treewidth (Markov and Shi).

Intuition

Classical software engineering relies on running a program and inspecting its state. Quantum programs resist both: inspecting the state destroys it, and a run returns one sample from a distribution. Tests therefore become statistical (do the observed frequencies match the expected distribution within error bars?) or move to a simulator, where the full state can be inspected but only for small instances.

Compilers make the problem sharper. A single compiled circuit may be the output of dozens of passes, each of which must preserve the unitary (often up to phase and qubit permutation). Because checking that two circuits agree is as hard as general quantum verification, the practical answer is layered: exact checks for structured pieces (Clifford parts, small blocks), heuristic checks for the rest, and proofs of correctness for the rewrite rules themselves.

Prerequisites

The circuit model, the Clifford group and stabilizer formalism, QMA for the complexity statements, and an outline of quantum compilation. The lesson circuits and simulation shows state-vector simulation at small scale.

Mathematical Definitions

DefinitionQuantum intermediate representationEstablished definition

An intermediate representation (IR) for quantum programs is a format, with defined syntax and semantics, that front ends (languages, circuit libraries) emit and back ends (compilers for specific devices, simulators) consume, so that LL languages and TT targets need L+TL + T translators rather than L×TL \times T. Two open standards are widely used.

OpenQASM 3 (Cross et al.; specification) is a textual language. Its gate semantics rest on two built-in gates, the single-qubit U(θ,ϕ,λ)U(\theta, \phi, \lambda) and the global phase gphase(γ)\mathrm{gphase}(\gamma); further gates are defined hierarchically or by modifiers such as ctrl @, negctrl @ and inv @. Beyond circuits it adds classical types and arithmetic, branching and loops on measurement results that must execute within the qubits' coherence time, subroutines and extern calls, timing types (duration, stretch) with delay, box and barrier, and defcal blocks that attach pulse-level implementations, in a selectable pulse grammar, to gates and measurements on specific physical qubits. A gate definition fixes a unitary, not how the hardware implements it.

QIR (specification) defines quantum programs as LLVM IR: qubits and results are opaque pointers, quantum operations are calls to functions of a quantum instruction set that the target chooses, and classical code is ordinary LLVM. Because targets differ widely, QIR defines profiles, coherent subsets that a back end declares it supports. The Base Profile requires only a sequence of quantum instructions followed by measurement of the qubits at the end; the Adaptive Profile adds mid-circuit measurement, conversion of results to booleans, and nested forward branching on them, with loops and further features as optional capabilities.

The two are complementary: OpenQASM 3 reads like an assembly language for circuits with real-time control, QIR reuses classical compiler infrastructure for analysis and optimisation.

Holds when
  • The descriptions of OpenQASM 3 and QIR follow their public specifications as accessed on 2026-12-01; both are living standards and later versions may differ.
DefinitionQuantum circuit equivalence checkingEstablished definition

Given circuits C1,C2C_1, C_2 on nn qubits with unitaries U1,U2U_1, U_2:

  • Exact equivalence: U1=U2U_1 = U_2.
  • Equivalence up to global phase: U1=eiφU2U_1 = e^{i\varphi} U_2 for some φ∈R\varphi \in \R, equivalently U2†U1U_2\dagg U_1 is a multiple of the identity. This is the relevant notion for whole programs, but not for subcircuits that may later be controlled.
  • Approximate equivalence: min⁡φ∥U1−eiφU2∥≤δ\min_\varphi \norm{U_1 - e^{i\varphi}U_2} \le \delta in operator norm, for a tolerance δ\delta, as needed when rotations are synthesised approximately.
  • Equivalence on a subspace or up to permutation: restrictions to an invariant subspace (for example with ancillas starting in ∣0⟩\ket0), or equality after a known relabelling of qubits (as left by routing).

Equivalence checking decides one of these relations from the circuit descriptions. Because U2†U1U_2\dagg U_1 is implemented by the circuit C2−1C1C_2^{-1} C_1, every version reduces to an identity check. In its approximate form with a promise gap, deciding whether a circuit is far from every multiple of the identity (the yes case) or close to one is QMA-complete (Janzing, Wocjan and Beth); practical tools therefore use methods that work well on circuits produced by compilers, such as ZX-calculus rewriting, or decision diagrams combined with simulation of random inputs and with alternating gates of C1C_1 and C2−1C_2^{-1} so that intermediate representations stay close to the identity (Burgholzer and Wille).

Theorems

How hard is verification?

TheoremNon-identity check is QMA-completePeer-reviewed result

Given a circuit with unitary UU, decide whether UU is close to eiφIe^{i\varphi} I in operator norm for some φ\varphi (output "identity") or far from every such multiple (output "non-identity"), under the promise that one of the two holds. Janzing, Wocjan and Beth show that the "non-identity" side of this problem is QMA-complete, and that the more general equivalence check, whether two circuits almost coincide on a given common invariant subspace, is QMA-complete as well. Membership is intuitive: a witness is an input state that UU moves far from itself (up to phase), which a verifier can test. Hardness comes from encoding a QMA verification circuit into a unitary that is far from the identity exactly when some witness is accepted.

For practice the theorem means that no efficient algorithm is expected for general circuit equivalence; efficient methods exist only for restricted classes, such as Clifford circuits.

Holds when
  • The input is a classical description of a polynomial-size circuit from a fixed universal gate set; the problem is a promise problem with thresholds whose gap is at least an inverse polynomial in the input size, as specified in the cited paper.
TheoremEquivalence of Clifford circuits is decidable in polynomial timeEstablished result

Let C1,C2C_1, C_2 be Clifford circuits with m1m_1 and m2m_2 gates and unitaries U1,U2U_1, U_2. Then U1=eiφU2U_1 = e^{i\varphi}U_2 for some φ\varphi if and only if

U1PU1†=U2PU2†for all P∈{X1,…,Xn,Z1,…,Zn},U_1 P U_1\dagg = U_2 P U_2\dagg \qquad \text{for all } P \in \{X_1, \dots, X_n, Z_1, \dots, Z_n\},

where both sides are signed Pauli strings. The 2n2n conjugated generators, with their signs, form the stabilizer tableau of the circuit, which can be computed by updating O(n)O(n) bits per gate (Aaronson and Gottesman). Equivalence is therefore decided in time O(n(m1+m2)+n2)O\big(n(m_1 + m_2) + n^2\big). The tableau formalism goes back to the Heisenberg-picture description of stabilizer circuits by Gottesman.

Holds when
  • Circuits on nn qubits built from H, S and CNOT gates (any Clifford gate set compiles to these with constant overhead per gate).
  • Equivalence means equality up to a global phase.
Proof · Proof that Clifford circuit equivalence is efficient

Only if. If U1=eiφU2U_1 = e^{i\varphi}U_2, the phases cancel in U1PU1†U_1 P U_1\dagg.

If. Put W=U2†U1W = U_2\dagg U_1. The hypothesis gives WPW†=PW P W\dagg = P, i.e. WP=PWWP = PW, for each generator PP, hence for every product of generators, which (up to phases) are all 4n4^n Pauli strings. The Pauli strings form a basis of the space of 2n×2n2^n \times 2^n complex matrices, so WW commutes with every matrix. Taking the matrix units Ejk=∣j⟩⟨k∣E_{jk} = \ketbra{j}{k}: WEjk=EjkWW E_{jk} = E_{jk} W applied to ∣k⟩\ket{k} gives W∣j⟩=⟨k∣W∣k⟩ ∣j⟩W\ket{j} = \bra{k}W\ket{k}\,\ket{j} for all j,kj, k, so WW is diagonal with all diagonal entries equal, W=cIW = c I. Since WW is unitary, ∣c∣=1\abs c = 1, so c=eiφc = e^{i\varphi} and U1=eiφU2U_1 = e^{i\varphi}U_2.

Algorithm. Represent a signed Pauli string on nn qubits by 2n2n bits and a sign bit. Starting from the identity tableau (row jj is XjX_j, row n+jn + j is ZjZ_j), apply the gates of C1C_1 in order, conjugating every row: H, S and CNOT map each Pauli string to another one with a sign given by a simple Boolean formula, and only the columns of the one or two qubits the gate touches change, so each gate costs O(n)O(n) operations on the 2n2n rows (Aaronson and Gottesman). Do the same for C2C_2 and compare the two tableaux, O(n2)O(n^2) bits. The total time is O(n(m1+m2)+n2)O(n(m_1 + m_2) + n^2).

How far can simulators go?

EquationCost of state-vector simulationEstablished result
M(n)=b⋅2n bytes,Tgate(n,k)=O(2 n+k)M(n) = b \cdot 2^{n}\ \text{bytes}, \qquad T_{\text{gate}}(n, k) = O\big(2^{\,n+k}\big)

A pure state of nn qubits is a unit vector in C2n\C^{2^n}, so storing it takes b 2nb\,2^n bytes. A kk-qubit gate acts on the vector as 2n−k2^{n-k} independent products of a 2k×2k2^k \times 2^k matrix with a 2k2^k-vector, one for each setting of the other n−kn-k qubits, i.e. 2n−k⋅4k=2n+k2^{n-k}\cdot 4^k = 2^{n+k} multiply–adds, and it must read and write every amplitude. With b=16b = 16: n=30n = 30 gives 2342^{34} bytes =16= 16 GiB; n=40n = 40 gives 1616 TiB; n=45n = 45 gives 2492^{49} bytes =512= 512 TiB, consistent with the roughly half-petabyte memory used for the 45-qubit simulation of Häner and Steiger; n=50n = 50 gives 1616 PiB. Each additional qubit doubles memory and time. Density-matrix simulation of mixed states squares the dimension, b 4nb\,4^n bytes. Simulators that avoid the full vector (stabilizer, tensor-network, low-rank) trade this exponential for others tied to circuit structure.

Holds when
  • Pure-state simulation storing every amplitude; bb bytes per complex amplitude (b=16b = 16 for two double-precision floats); a dense kk-qubit gate given as a 2k×2k2^k \times 2^k matrix.
TheoremGottesman–Knill theoremEstablished result

Let a circuit on nn qubits begin in ∣0⟩⊗n\ket{0}^{\otimes n} and consist of mm operations, each a Clifford gate on at most two qubits, a measurement of ZZ on one qubit, or a Clifford gate applied conditionally on earlier outcomes. Then a classical algorithm samples the outcomes of all measurements with exactly the probabilities given by quantum mechanics, using O(n)O(n) elementary operations per gate and O(n3)O(n^3) per measurement, so O(mn3)O(m n^3) in total.

At every stage the state is a stabilizer state: the unique state fixed by an abelian group S≤PnS \le \mathcal{P}_n with nn independent generators and −I∉S-I \notin S (a stabilizer code with k=0k = 0). The algorithm stores the nn generators as a binary n×2nn \times 2n matrix with nn sign bits, the stabilizer tableau, and every measurement outcome is either deterministic or uniformly random.

The theorem is due to Gottesman, who credits Knill (Gottesman); it is section 10.5.4 of Nielsen and Chuang. Aaronson and Gottesman add the nn destabilizer generators to the tableau, which removes the Gaussian elimination and brings the cost of a measurement down to O(n2)O(n^2) at the price of doubling the storage. They also show that simulating stabilizer circuits is complete for the classical complexity class ⊕L\oplus\mathrm{L}, so it is believed to be strictly weaker than general polynomial-time classical computation.

Holds when
  • The circuit acts on nn qubits initialised in ∣0⟩⊗n\ket{0}^{\otimes n}.
  • Its operations are Clifford gates (HH, SS, CNOT, or any gate given by its action on Pauli operators), measurements of single-qubit ZZ (equivalently, of any Pauli operator), and gates chosen as functions of earlier outcomes.
  • Simulation means sampling the joint distribution of measurement outcomes exactly, given access to unbiased random bits.
Proof · Proof of the Gottesman–Knill theorem

Stabilizer states are determined by their generators. If SS is abelian, −I∉S-I \notin S and SS has nn independent generators, the dimension theorem with k=0k = 0 says that SS fixes a one-dimensional subspace, so it determines a unique state ∣ψS⟩\ket{\psi_S} up to phase. Moreover the normalizer equals ⟨iI⟩S\langle iI \rangle S: in the binary representation, the span S\mathcal{S} of the generators is isotropic of dimension nn, and S⊥s\mathcal{S}^{\perp_s} has dimension 2n−n=n2n - n = n and contains S\mathcal{S}, so S⊥s=S\mathcal{S}^{\perp_s} = \mathcal{S}. Hence a Pauli operator that commutes with all of SS is λs\lambda s for some s∈Ss \in S, and since −I∉S-I \notin S only one of ±s\pm s lies in SS.

Initial state. ∣0⟩⊗n\ket{0}^{\otimes n} is stabilized by Z1,…,ZnZ_1, \dots, Z_n.

Gates. If g∣ψ⟩=∣ψ⟩g \ket{\psi} = \ket{\psi} then (UgU†) U∣ψ⟩=U∣ψ⟩(U g U\dagg)\, U\ket{\psi} = U \ket{\psi}, so U∣ψ⟩U\ket{\psi} is the stabilizer state with generators UgjU†U g_j U\dagg. These are again Pauli operators, independent and commuting because conjugation is an automorphism. For a gate on at most two qubits, each UgjU†U g_j U\dagg differs from gjg_j only on those qubits and in its sign, and the new entries and sign follow from a fixed table (for HH, SS, CNOT, the table in the Clifford group record). Updating all nn generators costs O(n)O(n).

Measurement of ZaZ_a, random case. Suppose some generator, say g1g_1, anticommutes with ZaZ_a. Multiplying every other generator that anticommutes with ZaZ_a by g1g_1 gives a generating set g1,g2′,…,gn′g_1, g_2', \dots, g_n' of the same group in which only g1g_1 anticommutes with ZaZ_a; this costs O(n)O(n) per generator, O(n2)O(n^2) in all. Then

⟨ψ∣Za∣ψ⟩=⟨ψ∣Zag1∣ψ⟩=−⟨ψ∣g1Za∣ψ⟩=−⟨ψ∣Za∣ψ⟩,\bra{\psi} Z_a \ket{\psi} = \bra{\psi} Z_a g_1 \ket{\psi} = - \bra{\psi} g_1 Z_a \ket{\psi} = - \bra{\psi} Z_a \ket{\psi} ,

so ⟨ψ∣Za∣ψ⟩=0\bra{\psi} Z_a \ket{\psi} = 0 and each outcome (−1)μ(-1)^{\mu}, μ∈{0,1}\mu \in \{0,1\}, has probability 12\tfrac12. The post-measurement state is proportional to 12(I+(−1)μZa)∣ψ⟩\tfrac12 (I + (-1)^{\mu} Z_a) \ket{\psi}. It is fixed by (−1)μZa(-1)^{\mu} Z_a and, because gj′g_j' commutes with ZaZ_a, by every gj′g_j'. These nn operators commute, are independent (the gj′g_j' are independent, and the vector of ZaZ_a is not in their span because ZaZ_a anticommutes with g1g_1 whereas every element of ⟨g2′,…,gn′⟩⊆S\langle g_2', \dots, g_n' \rangle \subseteq S commutes with g1g_1), and their group does not contain −I-I because they fix a nonzero vector. So the simulator draws a fair random bit μ\mu and replaces g1g_1 by (−1)μZa(-1)^{\mu} Z_a.

Measurement of ZaZ_a, deterministic case. Suppose ZaZ_a commutes with every generator. By the first paragraph ϵZa∈S\epsilon Z_a \in S for exactly one ϵ∈{+1,−1}\epsilon \in \{+1, -1\}, so Za∣ψ⟩=ϵ∣ψ⟩Z_a \ket{\psi} = \epsilon \ket{\psi} and the outcome is ϵ\epsilon with certainty; the state does not change. To find ϵ\epsilon, solve ∑jxjvj=ea\sum_j x_j v_j = e_a over F2\F_2 for the binary vector eae_a of ZaZ_a by Gaussian elimination, O(n3)O(n^3) operations, then multiply the generators gjg_j with xj=1x_j = 1 in order, tracking the overall phase; each product of two Pauli operators and its phase costs O(n)O(n), so this step costs O(n2)O(n^2). The resulting product is ϵZa\epsilon Z_a.

Classical control and sampling. A conditional gate is simulated by evaluating the condition on the outcomes already sampled and applying the gate update if required. Processing the operations in order, each measurement outcome is drawn from its exact conditional distribution given all previous outcomes, so the joint distribution of the sampled outcomes is the quantum one. The total cost is O(n)O(n) per gate and O(n3)O(n^3) per measurement.

Measuring a general Pauli operator QQ reduces to the same two cases with QQ in place of ZaZ_a: it is random exactly when QQ anticommutes with a generator. The argument is that of Gottesman, presented as in section 10.5 of Nielsen and Chuang; Aaronson and Gottesman replace the Gaussian elimination by maintaining destabilizer generators, which gives O(n2)O(n^2) per measurement.

TheoremSimulation of quantum circuits of bounded treewidthPeer-reviewed result

Let CC be a quantum circuit with TT gates whose underlying graph GCG_C has treewidth dd. Then CC can be simulated by a deterministic classical algorithm in time

TO(1) exp⁡ ⁣(O(d)),T^{O(1)}\, \exp\!\big(O(d)\big),

which is polynomial in TT when d=O(log⁡T)d = O(\log T) (Markov and Shi). The algorithm views the circuit as a tensor network and contracts it in an order derived from a tree decomposition; the cost of the best contraction order is exponential in the treewidth of the line graph of GCG_C, which is within constant factors of the treewidth of GCG_C for bounded-degree graphs.

Two consequences stated by the authors: circuits of depth O(log⁡T)O(\log T) whose gates act only on nearby qubits have logarithmic treewidth and are classically simulable; and a one-way (measurement-based) computation on a graph state of treewidth dd can be simulated by a randomized algorithm in time TO(1)exp⁡(O(d))T^{O(1)} \exp(O(d)).

Holds when
  • Circuits of TT gates, each acting on a bounded number of qubits; the underlying graph has a vertex per gate (and per input and output) and an edge per wire segment.
  • The simulation computes output amplitudes or probabilities to within numerical precision; treewidth is of the circuit's graph, not of any qubit layout.

Worked Examples

Real-time feed-forward in OpenQASM 3

The following program prepares a Bell pair, measures the first qubit, and conditionally flips the second within the same shot:

OPENQASM 3.0;
include "stdgates.inc";
qubit[2] q;
bit[2] c;
h q[0];
cx q[0], q[1];
c[0] = measure q[0];
if (c[0]) { x q[1]; }
c[1] = measure q[1];

After the measurement the second qubit is in ∣c0⟩\ket{c_0}, and the conditional XX maps it to ∣0⟩\ket0, so c[1] is 00 in every shot while c[0] is uniformly random. A test can therefore assert a deterministic property, c[1] == 0, instead of comparing distributions. The branch must execute while q[1] is coherent; in QIR terms the program needs the Adaptive Profile (mid-circuit measurement and branching on its result), not the Base Profile (QIR specification).

Checking a CNOT reversal with tableaux

Is (H⊗H) CNOT1→2 (H⊗H)(H \otimes H)\,\mathrm{CNOT}_{1\to 2}\,(H \otimes H) equal to CNOT2→1\mathrm{CNOT}_{2\to 1}? Conjugate the generators through the three layers (H swaps XX and ZZ; CNOT1→2\mathrm{CNOT}_{1\to2} maps X1↦X1X2X_1 \mapsto X_1X_2, Z2↦Z1Z2Z_2 \mapsto Z_1Z_2 and fixes X2,Z1X_2, Z_1):

input after H⊗HH\otimes H after CNOT1→2\mathrm{CNOT}_{1\to2} after H⊗HH\otimes H
X1X_1 Z1Z_1 Z1Z_1 X1X_1
X2X_2 Z2Z_2 Z1Z2Z_1 Z_2 X1X2X_1 X_2
Z1Z_1 X1X_1 X1X2X_1 X_2 Z1Z2Z_1 Z_2
Z2Z_2 X2X_2 X2X_2 Z2Z_2

The last column is exactly the tableau of CNOT2→1\mathrm{CNOT}_{2\to1} (control 2 copies X2X_2 onto qubit 1 and Z1Z_1 onto qubit 2), with all signs ++. By the Clifford equivalence theorem the two circuits are equal up to a global phase, checked with 16 table entries instead of two 4×44\times4 matrix products.

Memory budgets for simulators

By the state-vector cost, a laptop with 32 GiB holds at most n=31n = 31 qubits in double precision (231×162^{31} \times 16 bytes =32= 32 GiB, with nothing left over), so 30 qubits is a practical limit. A stabilizer simulator stores a tableau of about 2n(2n+1)2n(2n+1) bits: for n=104n = 10^4 qubits that is about 4×1084 \times 10^8 bits =50= 50 MB, which is why stabilizer simulators such as Stim (Gidney) handle error-correction circuits with thousands of qubits, while a single non-Clifford gate takes the circuit outside their scope.

Algorithms and Implementations

  • State-vector simulators store all amplitudes and apply gates as sparse updates; distributed versions split the vector across nodes and minimise communication.
  • Stabilizer simulators update tableaux in time polynomial in nn (Aaronson and Gottesman); sampling-oriented implementations are optimised for error-correction workloads (Gidney).
  • Tensor-network simulators contract the circuit as a network; cost is exponential in the treewidth of the circuit graph rather than in nn (Markov and Shi), and the tensor networks page treats contraction ordering.
  • Equivalence checkers combine decision diagrams, rewriting and simulation with random inputs (Burgholzer and Wille); ZX-calculus rewriting provides another complete method.
  • Verified compilation: VOQC expresses circuits in a small IR embedded in the Coq proof assistant and proves each optimisation correct with respect to a matrix semantics (Hietala et al.).

Computational Complexity

Approximate equivalence of general circuits, with an inverse-polynomial promise gap, is QMA-complete, so it is not expected to be efficiently decidable even with a quantum computer; Clifford equivalence is in polynomial time. Strong simulation of general circuits takes exponential time with known methods, with the exceptions above. These two facts are linked: if a circuit class is closed under inversion, composition and the addition of Bell-pair preparations, an efficient strong simulator for it gives an efficient equivalence check, because the amplitude ⟨Φ∣(C2−1C1⊗I)∣Φ⟩=Tr⁡(U2†U1)/2n\bra{\Phi}(C_2^{-1}C_1 \otimes I)\ket{\Phi} = \tr(U_2\dagg U_1)/2^n on a maximally entangled state ∣Φ⟩\ket\Phi of 2n2n qubits has modulus 11 exactly when U1=eiφU2U_1 = e^{i\varphi}U_2.

Limitations and Common Pitfalls

  • Phase and permutation conventions. Many false alarms in equivalence checking come from global phases, qubit-ordering conventions (big- versus little-endian) and the output permutation left by routing. State them explicitly in tests.
  • Shots are samples. A test that compares measured frequencies needs a statistical criterion and enough shots; a pass at 100 shots says little about a 1 percent bias.
  • Simulators lie about noise. A program verified on an ideal simulator can fail on hardware for reasons the simulator does not model; noisy simulation needs an explicit noise model.
  • Specifications evolve. OpenQASM 3 and QIR are living specifications; a program valid for one version or profile may not be accepted by a back end implementing another.
  • Verified passes, unverified pipeline. A proof covers the passes inside the verified tool, not the parser, the hardware calibration or the code that calls it.

State of the Art

As of 2026-11, from the cited sources:

  • 2017: a 45-qubit circuit was simulated in full state-vector form on a supercomputer using 8,192 nodes and about 0.5 petabytes of memory (Häner and Steiger).
  • 2021: VOQC, a circuit optimizer whose optimisations are proved correct in Coq, was presented (Hietala et al.); Stim, a stabilizer simulator for error-correction circuits, was published (Gidney).
  • 2022: the OpenQASM 3 language paper was published (Cross et al.); the language is maintained as a live specification (OpenQASM).
  • QIR's current specification (accessed 2026-12-01) defines version 2.0 on LLVM opaque pointers, compatible with LLVM 16 and later, and the Base and Adaptive profiles (QIR specification).

Compiler passes whose correctness is at stake are on quantum compilation and Clifford+T synthesis; the complexity background is on quantum complexity theory; classical simulation by tensor contraction is on tensor networks.

Builds on

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Andrew Cross, Ali Javadi-Abhari, Thomas Alexander, … Blake R. Johnson (2022). OpenQASM 3: A Broader and Deeper Quantum Assembly Language. ACM Transactions on Quantum Computing 3, 1-50. doi:10.1145/3505636arXiv:2104.14722
  2. OpenQASM contributors (2026). OpenQASM 3.x Live Specification. openqasm.com
  3. QIR Alliance (2026). Quantum Intermediate Representation (QIR) specification, including the Base and Adaptive profiles. github.com
  4. Dominik Janzing, Pawel Wocjan, Thomas Beth (2005). "Non-identity-check" is QMA-complete. International Journal of Quantum Information 3, 463-473. doi:10.1142/S0219749905001067arXiv:quant-ph/0305050
  5. Lukas Burgholzer, Robert Wille (2021). Advanced Equivalence Checking for Quantum Circuits. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 40, 1810-1824. doi:10.1109/TCAD.2020.3032630arXiv:2004.08420
  6. Kesha Hietala, Robert Rand, Shih-Han Hung, … Michael Hicks (2021). A verified optimizer for quantum circuits. Proceedings of the ACM on Programming Languages 5 (POPL), 1-29. doi:10.1145/3434318arXiv:1912.02250
  7. Scott Aaronson, Daniel Gottesman (2004). Improved simulation of stabilizer circuits. Physical Review A 70, 052328. doi:10.1103/PhysRevA.70.052328arXiv:quant-ph/0406196
  8. Craig Gidney (2021). Stim: a fast stabilizer circuit simulator. Quantum 5, 497. doi:10.22331/q-2021-07-06-497arXiv:2103.02202
  9. Igor L. Markov, Yaoyun Shi (2008). Simulating quantum computation by contracting tensor networks. SIAM Journal on Computing 38, 963-981. doi:10.1137/050644756arXiv:quant-ph/0511069
  10. Thomas Häner, Damian S. Steiger (2017). 0.5 petabyte simulation of a 45-qubit quantum circuit. Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis (SC17), article 33. doi:10.1145/3126908.3126947arXiv:1704.01127
  11. Daniel Gottesman (1998). The Heisenberg Representation of Quantum Computers. arXiv:quant-ph/9807006
  12. Michael A. Nielsen, Isaac L. Chuang (2010). Quantum Computation and Quantum Information (10th Anniversary Edition). Cambridge University Press. doi:10.1017/CBO9780511976667

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass with notes · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Topic body checked; embedded records carry their own review states. OpenQASM 3 feed-forward example checked against the live spec (measure assignment, if on a bit) and its deterministic outcome re-derived; QIR Adaptive vs Base Profile, version 2.0 opaque pointers and LLVM 16+ compatibility compared with qir-alliance/qir-spec main (specification/README.md Version Compatibility, profiles). CNOT-reversal tableau table recomputed row by row. Memory figures recomputed (2^31 x 16 B = 32 GiB; 2n(2n+1) bits = 4.0e8 bits = 50 MB at n = 1e4). Dated items compared with abstracts: Haner-Steiger arXiv 1704.01127 (8,192 nodes, 0.5 PB, 2017), Hietala et al. arXiv 1912.02250 (VOQC verified in Coq, POPL 2021), Gidney Stim (Quantum 5, 497, 2021), Markov-Shi arXiv quant-ph/0511069 (treewidth), Cross et al. 2022; complexity compared with Janzing-Wocjan-Beth arXiv quant-ph/0305050. Crossref metadata match.

    Two corrections. (1) The text said exact or approximate equivalence of general circuits is QMA-complete; Janzing, Wocjan and Beth prove QMA-completeness only for the approximate promise version, so both mentions now say approximate (with promise gap). (2) The claim that any efficient simulator immediately gives an efficient equivalence check was too strong; it now states the closure conditions needed and the Bell-state overlap tr(U2^dag U1)/2^n that makes it work.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e

Current revision 0c07d983da45046f. Source file knowledge/records/topic/quantum-software-engineering.md in the content repository (readable there once it is public).