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 executions of a trusted reference program on the same backend, and the acceptance threshold is the $(1-α)$ quantile of the finite-shot null distribution of the Jensen-Shannon divergence, so the oracle's false-positive rate is a level set in advance. A noncentral chi-square model predicts detection power, a homogeneity test and a two-run sentinel detect drift, a mutation engine labels every mutant exactly within a three-class noise-aware taxonomy, and zero-noise extrapolation attributes rejections to faults or noise. In simulation on nine core benchmarks, 32 QASMBench programs, ten real bugs, seven noise regimes and three device snapshots, the oracle's false-positive rate is 0.0011 at $α= 10^{-3}$ over 9,000 correct runs, against 36-74% for fixed thresholds, 8.9% for a QOIN-style filter and 10.8% for a globally calibrated threshold, while attaining the highest F1 on non-equivalent faults (0.941). On an IBM Heron device, using about 14 minutes of QPU time, it rejected none of 82 correct runs and detected 120 of 121 faults and semantic mutants, and a two-run sentinel reduced drift-induced false positives from 27.4% to 1.8%.
AI Summary
The paper addresses differential testing of NISQ programs: given a trusted reference, distinguish changes in measured output from hardware noise and finite-shot fluctuations. Its noise-aware oracle pools repeated reference executions on the same backend and compares each test run using Jensen–Shannon divergence. A parametric-bootstrap null quantile sets a nominal rejection level $\alpha$; classical chi-square approximations model detection power. Homogeneity checks and a two-execution sentinel handle drift. The framework also labels mutants by ideal-output equivalence using statevector simulation and uses zero-noise extrapolation to attribute rejections to faults or noise.
Evaluation covers nine core benchmarks, 32 QASMBench programs, ten real bugs, synthetic depolarizing and coherent noise, three device snapshots, and IBM Heron hardware. At $\alpha=10^{-3}$, the oracle rejects 10 of 9,000 correct simulated runs: FPR $0.0011$, with a window-clustered 95% interval $[0.0004,0.0018]$. The QASMBench FPR is $0.0013$. Reported fault-detection F1 is $0.941$ on core benchmarks and $0.873$ on QASMBench. Hardware tests reject none of 82 correct runs and detect 120 of 121 faults and semantic mutants.
False-positive control is approximate, not a finite-sample guarantee: it depends on stationarity, compilation consistency, support estimation, and bootstrap accuracy. Calibration held empirically around 16 shots per observed outcome but failed in some sparser settings. Computational-basis comparisons miss distribution-preserving faults; exact equivalence labels require classical simulation. Attribution becomes unreliable at high noise, and the hardware sample cannot establish an FPR near $10^{-3}$.
Some signs of AI-generated textIncrementalMissing comparisonStrong assumptions
Central claim may not hold: The abstract overstates construction-based false-positive control because the implemented null threshold is an approximate plug-in bootstrap quantile whose individual-window rejection probability can differ materially from the nominal level.
False-positive control requires operating conditions omitted from the abstract, and stationary sparse-support examples in the paper exceed the nominal false-positive rate by factors as large as 62.
The abstract claims exact three-class mutant labeling, although the reported operator-based assignments place mutants with additional physical operations in the noise-neutral class.
Written by gpt-6.1-sol from the paper's full text. Automated: it can be wrong.
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 executions of a trusted reference program on the same backend, and the acceptance threshold is the (1−α) quantile of the finite-shot null distribution of the Jensen-Shannon divergence, so the oracle's false-positive rate is a level set in advance. A noncentral chi-square model predicts detection power, a homogeneity test and a two-run sentinel detect drift, a mutation engine labels every mutant exactly within a three-class noise-aware taxonomy, and zero-noise extrapolation attributes rejections to faults or noise. In simulation on nine core benchmarks, 32 QASMBench programs, ten real bugs, seven noise regimes and three device snapshots, the oracle's false-positive rate is 0.0011 at α=10−3 over 9,000 correct runs, against 36-74% for fixed thresholds, 8.9% for a QOIN-style filter and 10.8% for a globally calibrated threshold, while attaining the highest F1 on non-equivalent faults (0.941). On an IBM Heron device, using about 14 minutes of QPU time, it rejected none of 82 correct runs and detected 120 of 121 faults and semantic mutants, and a two-run sentinel reduced drift-induced false positives from 27.4% to 1.8%.
The paper addresses differential testing of NISQ programs: given a trusted reference, distinguish changes in measured output from hardware noise and finite-shot fluctuations. Its noise-aware oracle pools repeated reference executions on the same backend and compares each test run using Jensen–Shannon divergence. A parametric-bootstrap null quantile sets a nominal rejection level α; classical chi-square approximations model detection power. Homogeneity checks and a two-execution sentinel handle drift. The framework also labels mutants by ideal-output equivalence using statevector simulation and uses zero-noise extrapolation to attribute rejections to faults or noise.
Evaluation covers nine core benchmarks, 32 QASMBench programs, ten real bugs, synthetic depolarizing and coherent noise, three device snapshots, and IBM Heron hardware. At α=10−3, the oracle rejects 10 of 9,000 correct simulated runs: FPR 0.0011, with a window-clustered 95% interval [0.0004,0.0018]. The QASMBench FPR is 0.0013. Reported fault-detection F1 is 0.941 on core benchmarks and 0.873 on QASMBench. Hardware tests reject none of 82 correct runs and detect 120 of 121 faults and semantic mutants.
False-positive control is approximate, not a finite-sample guarantee: it depends on stationarity, compilation consistency, support estimation, and bootstrap accuracy. Calibration held empirically around 16 shots per observed outcome but failed in some sparser settings. Computational-basis comparisons miss distribution-preserving faults; exact equivalence labels require classical simulation. Attribution becomes unreliable at high noise, and the hardware sample cannot establish an FPR near 10−3.
Mutation analysis has long been used in classical software testing and has recently been adopted for assessing the robustness of quantum software testing techniques. However, existing studies assume ideal, noiseless execution, overlooking the impact of quantum hardware noise. In this paper, we present an empirical study of noise-aware mutation analysis for quantum programs. We analyze how noise affects mutant detection using 41 quantum programs, executed on noiseless and noisy simulators emulating three IBM devices with different noise profiles. We compare several distance metrics and thresholding strategies to evaluate mutant detection under realistic noise. Our results show that noise significantly alters the behavioral distance between programs and mutants, making equivalent mutants harder to distinguish from real faults. Density-matrix metrics achieve the best discrimination, with misclassification rates up to 16.77%, but are not accessible on real hardware. Among practical alternatives, output-distribution metrics reach up to 73.03% accuracy and 74.89% F1-score. Noise-specific thresholds further improve detection compared to noiseless thresholds. We also find that noise effects correlate more with algorithm and circuit characteristics than with mutation types. Overall, our results highlight the need to adapt mutation analysis, and more generally quantum program comparison, to the noise profiles of target quantum devices.
Quantum Computing (QC) promises computational speedup over classic computing. However, noise exists in near-term quantum computers. Quantum software testing (for gaining confidence in quantum software's correctness) is inevitably impacted by noise, i.e., it is impossible to know if a test case failed due to noise or real faults. Existing testing techniques test quantum programs without considering noise, i.e., by executing tests on ideal quantum computer simulators. Consequently, they are not directly applicable to test quantum software on real quantum computers or noisy simulators. Thus, we propose a noise-aware approach (namedQOIN) to alleviate the noise effect on test results of quantum programs.QOINemploys machine learning techniques (e.g., transfer learning) to learn the noise effect of a quantum computer and filter it from a program's outputs. Such filtered outputs are then used as the input to perform test case assessments (determining the passing or failing of a test case execution against a test oracle). We evaluatedQOINon IBM's 23 noise models, Google's two available noise models, and Rigetti's Quantum Virtual Machine, with six real-world and 800 artificial programs. We also generated faulty versions of these programs to check if a failing test case execution can be determined under noise. Results show thatQOINcan reduce the noise effect by more than80%on most noise models. We used an existing test oracle to evaluateQOIN's effectiveness in quantum software testing. The results showed thatQOINattained scores of99%,75%, and86%for precision, recall, and F1-score, respectively, for the test oracle across six real-world programs. For artificial programs,QOINachieved scores of93%,79%, and86%for precision, recall, and F1-score respectively. This highlightsQOIN's effectiveness in learning noise patterns for noise-aware quantum software testing.
Quantum software testing (QST) is a central quality-assurance activity for checking whether quantum programs conform to their specifications. In the noisy intermediate-scale quantum (NISQ) era, gate, decoherence, and measurement errors distort observed outputs, making it difficult to distinguish program defects from noise. The existing noise-aware QST literature typically mitigates or models noise before applying a test oracle. However, these strategies can incur substantial cost and depend on calibration data, model training, or backend-specific information, limiting their applicability. We present Qomino, a dominance-guided QST approach for judging tests from noisy samples without a separate noise-estimation or mitigation phase. The approach combines decomposition-aware inverse construction, comparison of the expected outcome with the strongest observed competitor, and bounded retries for inconclusive decisions. We evaluate Qomino on 30 controlled buggy variants from six Qiskit programs and six simulated noisy backends, comparing it with six baselines spanning statistical, quantum-specific, and learning-based methods. Qomino achieves 85.65% accuracy over all six programs and 99.95% in the restricted two-program evaluation, significantly outperforming the corresponding baselines. Across the evaluated programs and backends under the stated settings, Qomino is faster than the compared quantum-specific and learning-based methods. Ablation and retry analyses support the contributions of its main components.
Reliably executing quantum algorithms on noisy intermediate-scale quantum (NISQ) devices is challenging, as they are severely constrained and prone to errors. Efficient quantum circuit compilation techniques are therefore crucial for overcoming their limitations and dealing with their high error rates. These techniques consider the quantum hardware restrictions, such as the limited qubit connectivity, and perform some transformations to the original circuit that can be executed on a given quantum processor. Certain compilation methods use error information based on calibration data to further improve the success probability or the fidelity of the circuit to be run. However, it is uncertain to what extent incorporating calibration information in the compilation process can enhance the circuit performance. For instance, considering the most recent error data provided by vendors after calibrating the processor might not be functional enough as quantum systems are subject to drift, making the latest calibration data obsolete within minutes. In this paper, we explore how different usage of calibration data impacts the circuit fidelity, by using several compilation techniques and quantum processors (IBM Perth and Brisbane). To this aim, we implemented a framework that incorporates some of the state-of-the-art noise-aware and non-noise-aware compilation techniques and allows the user to perform fair comparisons under similar processor conditions. Our experiments yield valuable insights into the effects of noise-aware methodologies and the employment of calibration data. The main finding is that pre-processing historical calibration data can improve fidelity when real-time calibration data is not available due to factors such as cloud service latency and waiting queues between compilation and execution on the quantum backend.
Testing quantum programs on NISQ (Noisy Intermediate-Scale Quantum) backends is challenging because the noise disturbs outcome distributions and can affect pass/fail decisions. We present Q-BRIDGE, a graph learning-based approach that converts noisy observations into denoised distributions suitable for oracle-based verification. Q-BRIDGE uses a graph transformer architecture to encode a transpiled quantum circuit, capturing the characteristics of its gates and their connectivity; the physical backend information is encoded together with the logical structure of the circuit. An additional conditioning layer, based on FiLM (Feature-Wise Linear Modulation), takes the encoding as input and integrates noisy observations to produce denoised outcomes. We evaluate Q-BRIDGE on 23 IBM noise backends and 6 circuit families representative of practical workloads. In the first setting, we train a separate Q-BRIDGE model for each backend; in the second setting, we train a single general model shared across all backends. Across both settings, Q-BRIDGE outperforms the state-of-the-art baseline in noise mitigation by a large margin. In testing scenarios with noisy executions, Q-BRIDGE achieves 93.97%-94.90% precision and 82.50%-83.51% recall in detecting bug-induced test failures, significantly outperforming the state-of-the-art baseline. These results indicate that considering the graph structure of the transpiled circuits and the physical characteristics of specific quantum backends is a practical route to more reliable noise-aware quantum program testing.
Fidelity estimation is a critical yet resource-intensive step in testing quantum programs on noisy intermediate-scale quantum (NISQ) devices, where the required number of measurements is difficult to predefine due to hardware noise, device heterogeneity, and transpilation-induced circuit transformations. We present QuFid, an adaptive and noise-aware framework that determines measurement budgets online by leveraging circuit structure and runtime statistical feedback. QuFid models a quantum program as a directed acyclic graph (DAG) and employs a control-flow-aware random walk to characterize noise propagation along gate dependencies. Backend-specific effects are captured via transpilation-induced structural deformation metrics, which are integrated into the random-walk formulation to induce a noise-propagation operator. Circuit complexity is then quantified through the spectral characteristics of this operator, providing a principled and lightweight basis for adaptive measurement planning. Experiments on 18 quantum benchmarks executed on IBM Quantum backends show that QuFid significantly reduces measurement cost compared to fixed-shot and learning-based baselines, while consistently maintaining acceptable fidelity bias.