Skip to content
Quantum.world

Research

Noise-Aware Testing of NISQ Quantum Programs: Self-Baseline Oracle with a Controlled False-Positive Rate

Noise-aware NISQ testing calibrates a Jensen-Shannon threshold against a trusted baseline on the same backend, making false positives a preset level instead of backend-dependent guesswork.

The paper’s first page · arXiv:2611.20613
arXiv
2611.20613 · Preprint · not peer-reviewed
Published
2026-11-16
Authors
Mir Mohammad Yousuf, Shabir Ahmad Sofi

In plain words

On NISQ hardware, a correct quantum program produces different outputs on every run, and that run-to-run variation can look just as large as the variation produced by an actual bug. Existing oracles either use a fixed tolerance, filter noise out via a learned noise model, or push the burden onto programmer-supplied specifications — and none of them states the false-positive rate its threshold actually delivers.

AI summary

Overview

Research area: Quantum software engineering — specifically test oracles, mutation testing and failure attribution for Noisy Intermediate-Scale Quantum (NISQ) programs. Filed under Software and its engineering (Software testing and debugging) and Hardware (Quantum computation).

Technical level: Advanced. The paper leans on finite-shot multinomial statistics (power-divergence and Jensen–Shannon statistics, parametric bootstrap, noncentral chi-square power, homogeneity testing) and assumes familiarity with quantum circuits, transpilation, mutation testing and zero-noise extrapolation.

Scope (one sentence): The paper designs and empirically evaluates a differential, self-baselining test oracle whose false-positive rate is fixed in advance by the tester, and builds mutation analysis, a mutation taxonomy and bug-versus-noise attribution on top of it, validating everything in simulation, on device snapshots and on IBM Quantum hardware.

What This Paper Is About

On NISQ hardware, a correct quantum program produces different outputs on every run, and that run-to-run variation can look just as large as the variation produced by an actual bug. Existing oracles either use a fixed tolerance, filter noise out via a learned noise model, or push the burden onto programmer-supplied specifications — and none of them states the false-positive rate its threshold actually delivers.

The authors take a different route. When a trusted reference version of the program exists (as in regression testing or mutation testing), they compare the program under test against a baseline that the trusted program builds about itself by running repeatedly on the same backend. Because two correct runs are just two samples of the same output distribution, the distribution of the divergence between them is known from finite-shot statistics — so the acceptance threshold can be set as a quantile that corresponds to a chosen false-positive level.

Key Contributions

  1. A noise-aware oracle with a nominal false-positive level. The acceptance threshold is the (1−α) quantile of the finite-shot null distribution of the base-2 Jensen–Shannon divergence, estimated by parametric bootstrap (B=4000 pairs in the main false-positive evaluation and the hardware analyses; 2000 or 3000 elsewhere) with a Good–Turing-style correction for unobserved outcomes. Pooling K calibration runs (K=8 by default; a single-run variant, NAO-1, uses K=1) raises sensitivity; a Pearson homogeneity test at α_drift = 0.01 plus a two-run sentinel (m=2, α_s = 10⁻²) detects drift and triggers recalibration; a noncentral chi-square model predicts detection power and the shot budget needed for a target power.

  2. A noise-aware mutation testing methodology with exact semantic labels. A mutation engine labels every mutant as equivalent or not on the tested inputs by statevector simulation before any noisy execution, so detection is never credited for programs that are indistinguishable from the original. The paper quantifies equivalent-mutant rates for quantum operators, and proposes a three-class taxonomy — semantic, noise-amplifying, noise-neutral — validated with stated hypotheses, tests that account for shared calibrations, effect sizes and a dose-response model of noise amplification.

  3. A hardware-executable bug–noise attribution procedure. Rejected runs are attributed to a fault or to noise using zero-noise extrapolation of both programs' output distributions via global unitary folding, evaluated against exact, non-circular statevector labels rather than a noiseless simulator.

  4. A broad empirical evaluation. Nine core benchmarks, 32 QASMBench programs, ten real bugs from Bugs4Q, five depolarizing and two coherent-error noise regimes, three device snapshots, circuits of up to 16 qubits, and an IBM Heron device — compared against fixed-threshold, envelope-based (statistical process control), QOIN-style, noise-model-calibrated and re-execution baselines, with full confusion matrices and cluster-robust confidence intervals.

Main Findings

  • False positives are controlled on average, not absolutely: The oracle achieved a mean FPR of 0.0011 at α = 10⁻³ over 9,000 correct runs, and 0.0013 on the 32 QASMBench programs. By contrast, fixed thresholds produced 36–74%, a QOIN-style filter 8.9%, and a threshold calibrated globally on the device's noise model 10.8%.

  • The nominal level depends on shots per outcome: Under the evaluated conditions the level was approximately maintained with at least 16 shots per observed outcome, was not reliably controlled below 8, and the intermediate range was not sampled.

  • Strong fault detection without sacrificing soundness: The oracle attains the highest F1 of all oracles on non-equivalent injected faults (0.941), kills 93.8% of semantic mutants, and detects 96.4% of the runs of observable real bugs from Bugs4Q.

  • Operators generate many equivalent mutants: 24–70% of draws of common gate-insertion operators are equivalent mutants — a rate the authors quantify for quantum mutation for the first time in this setting.

  • The taxonomy holds unevenly: Semantic mutants separate strongly from the two semantics-preserving classes, but the two semantics-preserving classes separate from each other more weakly, and depending on the noise level.

  • Attribution is a conditional diagnostic: At low and medium noise it labels 98–99% of rejected bugs and 90% of rejected noise effects correctly; it fails for noise effects at high noise.

  • Hardware results: On an IBM Heron device, using about 14 minutes of QPU time, the oracle rejected none of 82 correct runs of 17 programs and detected 120 of 121 faults and semantic mutants.

  • Drift must be handled before testing: Over 26 hours, a two-run sentinel reduced false positives caused by drift from 27.4% to 1.8% of the protected runs.

Methodology in Plain English

The framework has three moving parts, and the workflow is a pipeline.

1. Calibrate. Run the trusted reference program K times on the target backend (default K=8), all with one transpilation and a fixed layout. Check that those K runs are statistically consistent with each other using a homogeneity test; if not, the backend has drifted and the threshold is widened. Then pool the runs into one reference distribution, and simulate many pairs of fake "correct" runs from it to find the divergence value that only α of correct runs would exceed. That value is the acceptance threshold.

2. Test. Run the program under test once and compute its Jensen–Shannon divergence from the pooled reference. Accept if it is at or below the threshold. Before each batch of tests, run a two-execution sentinel of the reference and compare it to the baseline using the oracle's own test; if it rejects, throw away the cached baseline and recalibrate.

3. Attribute. If a program is rejected, fold the circuits at noise scales 1 and 3, extrapolate both programs' output distributions to zero noise, and decide whether the deviation came from a changed ideal semantics (a bug) or from the program's interaction with noise.

The key design choice is that the reference is the trusted program's own noisy behaviour, not an ideal output the hardware cannot produce. That is what makes the false-positive rate computable in advance: the null hypothesis is just "two multinomial samples of the same distribution." The oracle never sees the statevector labels — they are used only to grade its verdicts. The authors also state plainly what the level does not guarantee: the plug-in estimate, bootstrap quantile, stationarity and shot counts are all approximations or assumptions, and at α = 10⁻³ with B = 4000 only about four bootstrap draws lie beyond the threshold, so the level holds on average over calibration windows, not in each window. A known blind spot is stated up front: a change that leaves the measured bitstring distribution unchanged — canonical example, a relative phase error immediately before measurement — cannot be caught by any threshold on that distribution.

Why This Matters

Impact on research. The paper reframes the NISQ oracle problem as a two-sample test against a device-anchored self-baseline rather than a comparison against an ideal reference. That shift makes the false-positive rate a chosen quantity rather than a tuned one, which the authors argue fixed, filtered and globally calibrated thresholds cannot deliver across programs and noise levels. It also supplies something quantum mutation testing has lacked: exact equivalence labels, so mutation scores are not inflated by noise-induced or equivalent-mutant kills. The related-work comparison table shows that existing approaches each cover at most one or two of four dimensions (noise-aware oracle, noise-sensitive mutations, noise-aware metrics, failure attribution), while this work claims all four under one protocol.

Real-world applications:

  • Regression testing in quantum CI pipelines: deciding whether a new version of a circuit has genuinely changed behaviour, or merely looks different because the backend was noisy that day.
  • Mutation-analysis tooling: replacing noise-oblivious kill criteria in tools in the QMutPy/Muskit lineage with verdicts that carry a stated error rate.
  • Debugging and fault localization for quantum algorithm developers: separating "my circuit logic is wrong" from "the device was bad" without needing a noiseless simulator.
  • Backend and calibration management: the drift test and sentinel give a concrete policy for when a cached baseline has gone stale and recalibration is required — the 26-hour experiment shows what happens if you skip it.

Industry relevance. The method needs only executions of a trusted program on the same device — no ideal output, no parametric noise model, no learned noise representation — and it was demonstrated on real IBM hardware within about 14 minutes of QPU time. That cost profile is compatible with routine testing rather than occasional validation. The paper also notes the underlying principle may transfer to other software observed through noisy channels, such as flaky tests in continuous integration and machine-learning inference under numerical nondeterminism, though it explicitly scopes every quantitative claim to quantum programs on NISQ hardware or models of it.

Future Directions

  • Closing the observability gap. Detection is defined with respect to the measured output distribution, so relative phase errors just before measurement escape any threshold. The authors point to richer measurement specifications (reduced program specifications, projective measurements in multiple bases) as the orthogonal fix; combining those with this threshold construction is an open engineering problem.
  • Sampling the unsampled shot regime. Control was approximately maintained at ≥16 shots per observed outcome and failed below 8, but the intermediate range was not sampled. Where exactly the level breaks between 8 and 16 shots is unknown.
  • Making attribution work at high noise. The zero-noise-extrapolation attribution labels 98–99% of rejected bugs and 90% of rejected noise effects correctly at low and medium noise, but fails for noise effects at high noise. Better extrapolation or a noise-regime-aware decision rule is needed.
  • Tightening the statistical guarantee. The level holds on average over calibration windows rather than per window, partly because a B=4000 bootstrap gives only about four draws beyond α = 10⁻³. Per-window guarantees, larger bootstrap budgets, or analytic thresholds in place of the bootstrap are natural next steps, as is scaling beyond the 16-qubit circuits evaluated here.

Target Audience

Quantum software engineering researchers and tool builders working on testing, mutation analysis and oracle design for NISQ programs; developers of quantum CI and debugging infrastructure who need a defensible pass/fail criterion on real hardware; statisticians interested in applying finite-shot multinomial testing to noisy computational systems; and graduate students in quantum computing or software engineering who want a worked example of how classical statistical process control ideas transfer — and where they break — in the quantum setting. Readers should be comfortable with hypothesis testing and basic quantum circuit semantics; the paper is explicit about its assumptions and about where the approach stops working.

Authors’ abstract

Testing quantum programs on Noisy Intermediate-Scale Quantum (NISQ) devices faces a test-oracle problem: hardware noise and finite-shot sampling make the runs of a correct program vary as much as those of a faulty one, so oracles with a fixed acceptance threshold produce false positives that depend on the program and the backend. We present a noise-aware testing framework built on self-baseline calibration: each run of the program under test is compared with repeated…

The full abstract on arXiv
Read the original paper

Related papers