Home · ASPLOS 2022 · Quantum Computing

QUEST: systematically approximating Quantum circuits for higher output fidelity

Tirthak Patel, Ed Younis, Costin Iancu, Wibe de Jong and Devesh Tiwari

Conference
ASPLOS 2022
Published
2022
Pages
514-528
Citations
51

On today's noisy quantum computers every two-qubit gate costs 1–3% error, so the exact circuit often gives worse answers than a deliberately approximate one — QUEST partitions circuits, synthesizes shorter stand-ins with provably bounded drift, and runs several deliberately dissimilar ones so their individual biases average away.

The argument in one glance

  1. Problem

    The gates that entangle are the gates that destroy

    Near-term (NISQ) quantum computers err at every step: state preparation, measurement, decoherence — and gates. Two-qubit CNOT gates, the workhorse of entanglement, fail at 1–3% per application, an order of magnitude worse than single-qubit gates, and take longer (more decoherence). Running real algorithms like the TFIM and Heisenberg material simulations on IBM hardware yields outputs too corrupted to be meaningful.

  2. What people did

    Compile harder, exactly

    Compilers like Qiskit apply the full arsenal: collapse adjacent gates, cancel via commutativity, map circuits to hardware layouts that minimize SWAPs, route around the noisiest qubits. All transformations preserve exact circuit semantics.

  3. Why it fell short

    Exactness caps the savings

    Measured across benchmarks, Qiskit’s optimizations often reduce CNOT counts negligibly — and for some circuits (hidden linear function, multipliers) slightly INCREASE them. Semantics-preserving rewriting can only find the shortenings that happen to exist; for most circuits the exact-equivalent short circuit simply is not there. Meanwhile every retained CNOT keeps charging its 1–3%.

  4. This paper's idea

    Approximate the circuit — carefully, and in ensemble

    A circuit is a unitary matrix, and unitaries have many mathematically close neighbors reachable with far fewer CNOTs. QUEST partitions circuits into synthesizable blocks, generates many low-CNOT approximations per block, proves the full circuit’s approximation error is bounded by its blocks’ errors, then uses dual annealing to select several mutually DISSIMILAR full-circuit approximations — running all of them and averaging outputs cancels their individual biases. CNOT counts drop 30–80%; on noisy systems output error falls by up to 30 percentage points.

Why this problem is worth solving

The site’s quantum explainers so far cover compilation (Paulihedral) and error correction (LILLIPUT). QUEST lives in the era before error correction:

noisy intermediate-scale quantum — today’s devices, with enough qubits to be interesting but no error correction, so every gate’s error lands directly in the output
machines, where the only defense against noise is running fewer, better gates.

The arithmetic of despair is simple. A CNOT — the two-qubit gate that creates entanglement, and into which all quantum algorithms decompose (together with single-qubit rotations) — fails at 1–3% per application. A circuit with a hundred CNOTs is thus mostly noise. The paper opens with the demonstration: the TFIM and Heisenberg Hamiltonian-simulation algorithms — real materials science, computing magnetization over time for four-spin systems — run on IBM’s relatively good Manila device with all Qiskit optimizations enabled, and produce outputs that track neither the amplitude nor even the shape of the ground truth.

The overlooked lever is exactness itself. Conventional compilers must emit a circuit computing precisely the same

the 2ⁿ×2ⁿ matrix that mathematically represents an n-qubit circuit’s entire computation — the product of its gates’ matrices
. But on a machine that will corrupt the result by several percent anyway, insisting on a mathematically perfect circuit is a strange bargain: QUEST’s wager is that a circuit approximating the unitary closely, with half the CNOTs, gives an output closer to the truth once real noise is accounted for — trading a small, controlled approximation error for a large, uncontrolled noise reduction.

What people did before, and where it broke

Exact optimization. Gate collapsing, commutativity-based cancellation, layout- and noise-aware mapping (Qiskit’s optimization passes bundle the state of the art). Measured here: negligible CNOT reductions for most benchmarks, over 30% for Heisenberg’s favorable structure, and small increases for HLF and Multiply. Exact rewriting can only harvest redundancy the circuit happens to contain.

Exact synthesis. Numerical synthesis tools (QSearch, LEAP — from the same Berkeley Lab group’s BQSKit ecosystem) rebuild a circuit from its unitary, layer by layer: place a CNOT plus rotations, optimize the angles to minimize

the Hilbert-Schmidt distance √(1 − ‖Tr(U†U′)‖²/N²) between the original unitary U and the candidate U′ — 0 means mathematically identical
, add layers until the distance falls below a threshold ε. Powerful — but the unitary is 2ⁿ×2ⁿ, so synthesis is infeasible beyond four or five qubits, and with a tight ε the synthesized circuit is not much shorter anyway.

The two open problems. Loosening ε yields short circuits — but (1) for a large circuit, you cannot even compute the process distance to verify quality, and (2) process distance does not map monotonically onto output distance: of two approximations at equal ε, one may produce nearly correct measurement statistics and the other badly skewed ones, and telling them apart analytically would require knowing the answer you’re computing. Prior approximation ideas stalled on exactly these rocks.

QUEST's pipeline

  1. Partition new

    Slice the circuit into blocks of a few qubits each — small enough for numerical synthesis to handle (the full unitary never needs to be computed).

  2. Approximate synthesis per block new

    A modified LEAP compiler builds each block’s circuit tree layer by layer (CNOT + rotations per layer, angles numerically optimized) and returns the M best candidates at EVERY layer depth — yielding a menu of approximations per block across the full range of CNOT counts and process distances.

  3. Composition bound (the proof) new

    A theorem shows the full circuit’s process distance is bounded by its blocks’ distances — extending a block’s unitary with identity preserves its bound, and composition accumulates predictably — so block-level ε budgets guarantee full-circuit quality without ever computing the full unitary.

  4. Dissimilar selection (dual annealing) new

    Search the combinatorial space of block-instance choices for several full-circuit approximations that are low-CNOT and mutually dissimilar — each pair farther from each other than from the original, i.e., on opposite sides of the approximation ball. The objective weighs dissimilarity and CNOT count equally.

  5. Ensemble execution new

    Run all selected approximations on the device; average their output probability distributions. Individually biased outputs, scattered around the true output by construction, cancel toward it — the ensemble behaves like the original circuit at a fraction of its CNOT cost.

Published at ASPLOS 2022 as QUEST; the preprint carries the earlier name QEst. Built atop the LEAP synthesis compiler from the BQSKit ecosystem.

The idea

Fewer gates beats exact gates — if drift is controlled. The design’s first principle is an error budget with two currencies: approximation error (chosen, bounded, known) versus noise error (imposed, compounding, roughly proportional to CNOT count). QUEST spends a little of the first to save a lot of the second.

Partition, then prove the pieces compose. Synthesis scales exponentially, so QUEST synthesizes blocks. The dangerous unknown is composition: block errors might compound badly, forcing paranoidly tight per-block thresholds — and tight thresholds mean more layers, more CNOTs, defeating the purpose. The paper’s theorem dissolves the fear: extending a block unitary to the full register (Kronecker product with identity) preserves its process-distance bound, and composing blocks accumulates bounds predictably. Block budgets therefore imply a full-circuit guarantee that is never directly computed — the result that makes partitioned approximation sound rather than hopeful.

Don’t pick the best approximation — pick a committee that disagrees. Here is the paper’s most distinctive move. The fewest-CNOT approximation may happen to have low output error or high — unknowable without ground truth. But many approximations scattered around the original in Hilbert space have biases in different directions, and their average converges toward the true output. The selection criterion makes “different directions” precise: two approximations are similar if their mutual process distance is at most the larger of their distances to the original (same region of the ε-ball), dissimilar if their mutual distance exceeds it (opposite sides — biases that cancel). A dual-annealing search over block-instance combinations minimizes an objective weighing the fraction of similar pairs and normalized CNOT count equally: a committee of cheap, mutually contradicting circuits.

The cost model is honest. Running M circuits costs M× the shots — but each circuit is dramatically shorter, and on NISQ hardware shots are cheap while gates are ruinous. The trade is explicit and tunable.

Rescuing a 16-qubit TFIM simulation

TFIM = transverse-field Ising model, a materials-simulation circuit whose output is magnetization over time. Block = a few-qubit slice amenable to synthesis. ε = process-distance threshold. M = ensemble size. Mechanics follow the paper's Figures 2–6; the walkthrough numbers are representative of its 4–32-qubit benchmark range.

Step 1 of 6

The exact circuit is a lost cause

The 16-qubit TFIM circuit carries hundreds of CNOTs. At 1–3% error each, its output on real hardware is dominated by noise — the paper’s 4-qubit demonstration on IBMQ Manila already fails to track ground-truth magnetization even with every Qiskit optimization enabled. Exact compilation trimmed almost nothing.

CNOT error: 1–3% per gate, compounding
Qiskit reduction on most benchmarks: negligible

Why it works

  • Noise error scales with gate count while approximation error is a chosen budget → below the crossover, approximating is strictly better than exactness → the exact circuit is not the most faithful circuit on noisy hardware.
  • Blocks are synthesizable and the composition bound is proven → full-circuit quality is guaranteed from block budgets without computing the intractable full unitary → partitioned approximation becomes sound and scalable (to 32 qubits here).
  • Output bias of any single approximation is unknowable without ground truth → but geometry is knowable: mutual process distances identify approximations on opposite sides of the ε-ball → an ensemble chosen for disagreement self-cancels its biases in the average.
  • Synthesis trees naturally emit candidates at every depth → harvesting the whole menu (rather than one winner) supplies the diversity the committee needs at no extra search cost.
  • Shots are cheap, gates are expensive on NISQ devices → running M short circuits beats running one long one → the ensemble’s cost lands on the abundant resource.

What it costs

  • M× the executions. The committee multiplies shot counts; acceptable when shots are cheap, relevant for cloud-metered access.
  • Offline synthesis time. Per-block tree search with numerical optimization at every layer; partitioning keeps it tractable but it is hours, not seconds, for larger circuits.
  • An approximation, still. Applications needing exact amplitudes (not sampled output statistics) fall outside the trade; the bound controls process distance, and the ensemble argument is geometric and empirical, not a worst-case output guarantee.
  • Small real-device validation. Hardware runs reach 5 qubits (Manila) and noisy simulation 16 qubits; the 32-qubit results are ideal-simulator only.
  • Block structure sensitivity. Partitioning choices shape the reachable approximation space; the paper uses established partitioners but the interaction is not exhaustively explored.

The evaluation

Fifteen benchmark instances across eight algorithm families — arithmetic (Adder, Multiply), variational (QAOA, VQE), transforms (QFT, HLF), and Hamiltonian simulation (TFIM, Heisenberg, XY) — from 4 to 32 qubits. Comparisons: the original circuit, Qiskit’s full optimization stack, QUEST alone, and QUEST + Qiskit. Fidelity is measured by total variation distance and Jensen-Shannon divergence of output distributions, plus algorithm-specific quantities (magnetization curves).

Exact optimization vs systematic approximation

PropertyQiskit optimizations (exact)QUEST (approximate ensemble)
CNOT gate count reduction
Output fidelity on an ideal simulatorExact by construction
Under noise (Pauli models at 1%/0.5%/0.1%; real IBMQ Manila)
Guarantees
Benchmarks: Adder 4/9, Heisenberg 4/8, HLF 5/10, QFT 5/10, QAOA 5/10, Multiply 5/10, TFIM 4–32, VQE 4, XY 4/8. Ideal outputs via Qiskit Aer unitary simulation; noisy simulation to 16 qubits (IBMQ QASM, Pauli noise); real-hardware runs to 5 qubits on IBMQ Manila, 8,192 shots per circuit. Output metrics: total variation distance and Jensen-Shannon divergence of measurement distributions, plus algorithm-specific observables.Underlined values explain themselves when clicked.

Check your understanding

  1. 1. QUEST deliberately runs circuits that compute the WRONG unitary. Predict why this improves the final answer on real hardware.

  2. 2. Why does QUEST run SEVERAL dissimilar approximations and average, rather than just the single approximation with the fewest CNOTs?

  3. 3. Synthesis is infeasible beyond ~5 qubits, so QUEST synthesizes small blocks. What makes gluing approximate blocks back together trustworthy?

  4. 4. QUEST’s dissimilarity test declares two approximations S₁, S₂ "similar" when ⟨S₁,S₂⟩ ≤ max(⟨S₁,O⟩, ⟨O,S₂⟩). What is this geometrically checking?

Related papers on Quantum Computing

See all 51 →