Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

IEEE International Conference on Software Testing, Verification and Validation (ICST)

Toward Live Noise Fingerprinting for Discrepancy Analysis in Quantum Software Engineering

Avner Bensoussan, Elena Chachkarova, Karine Even-Mendoza, Sophie Fortz, Vasileios Klimis, Mohammad Reza Mousavi

Published May 18, 2026• 3 citations
Publisher

Abstract

Contemporary quantum computers are inherently noisy, posing significant challenges for the development and testing of quantum software. Simplified or outdated noise assumptions can lead to incorrect assessments of program correctness, obscure debugging, and hinder cross-platform portability, creating a critical quantum software development gap. Providing accurate, practical noise characterisation is challenging as traditional reconstruction methods scale exponentially and rapidly become outdated. In this vision paper, we address this gap via a novel classical shadow tomography-based pipeline, SIMSHADOW, enabling efficient, continuously updatable noise fingerprinting from empirical observations, suitable for integration into quantum software development workflows, including testing and validation. We prototyped the pipeline to investigate fingerprints' ability to capture structured, interpretable noise and cross-platform discrepancies affecting quantum programs' behaviour to support realistic testing and debugging in future tools. Our evaluation with Qiskit and Cirq under widely used hardware-informed profiles, IBM Boston and Quantinuum H2, shows fingerprints exhibit channel-specific structure and yield interpretable heatmaps. We observed systematic cross-platform discrepancies under matched noise configurations, quantified by large Frobenius distances at a fraction of full tomography cost. On 69 MQTBENCH programs, larger fingerprint differences correlate with output distributions divergences, highlighting threats for testing and cross-platform debugging tasks.

DOI
10.1109/icst69053.2026.00096

Related papers

Toward Live Noise Fingerprinting in Quantum Software Engineering

Avner Bensoussan, Elena Chachkarova, Karine Even-Mendoza +3 more

Contemporary quantum computers are inherently noisy, posing significant challenges for the development and testing of quantum software. Simplified or outdated noise assumptions can lead to incorrect assessments of program correctness, obscure debugging, and hinder cross-platform portability, creating a critical quantum software development gap. Providing accurate, practical noise characterisation is challenging as traditional reconstruction methods scale exponentially and rapidly become outdated. In this vision paper, we address this gap via a novel classical shadow tomography-based pipeline, SIMSHADOW, enabling efficient, continuously updatable noise fingerprinting from empirical observations, suitable for integration into quantum software development workflows, including testing and validation. We prototyped the pipeline to investigate fingerprints' ability to capture structured, interpretable noise and cross-platform discrepancies affecting quantum programs' behaviour to support realistic testing and debugging in future tools. Our evaluation with Qiskit and Cirq under widely used hardware-informed profiles, IBM Boston and Quantinuum H2, shows fingerprints exhibit channel-specific structure and yield interpretable heatmaps. We observed systematic cross-platform discrepancies under matched noise configurations, quantified by large Frobenius distances at a fraction of full tomography cost. On 69 MQTBENCH programs, larger fingerprint differences correlate with output distributions divergences, highlighting threats for testing and cross-platform debugging tasks.

quant-pharXiv:2512.18667•Dec 23, 2025•4 citations

Live Noise Fingerprints for Quantum Program Analysis

Avner Bensoussan, Karine Even-Mendoza, Debalina Banerjee +4 more

Quantum programs are probabilistic in nature, and noisy execution due to current imperfect hardware further complicates their analysis. In this paper, we study abstract semantics for analysing quantum programs under these conditions. We introduce noise fingerprints, compact descriptions of the observable effects of noise relative to a finite interface of input states and output measurements. We use them to define our abstract domain with respect to the concrete noise-related behaviour. We relate the concrete and abstract domains through a probabilistic Galois connection, extending the Galois-connection framework to distribution-valued interpretations. We study the resulting abstraction in terms of observational soundness, conciseness, efficiency, and ability to adapt to changing noise. We show that polynomial-size interfaces yield exponentially smaller fingerprints than full noise models while preserving the chosen observations, and that fingerprint distance characterises the largest observational discrepancy over the chosen interface. Further, we develop ChanShadow, which reuses noise fingerprints of commonly used short program fragments to analyse noisy execution of whole programs and provides a uniform finite-sample error bound. We construct working examples showing how fingerprints support program analysis. We evaluate fingerprint precision, representation cost, measurement requirements, and behaviour under noise drift. On a synthetic benchmark, fingerprints retain $(99 \pm 1)\%$ of the noise strength information of a full noise model. On simulated noise drift, reusing earlier measurements reduces the number of fresh measurement rounds needed to reach an error tolerance of $0.10$ by a factor of $2.3$ at $95\%$ confidence and by a factor of $27$ under the median-error criterion.

cs.SECross-listedarXiv:2611.19143•Nov 17, 2026•0 citations

Artifact of Live Noise Fingerprints as an Empirical Semantics for Noisy Quantum Channels

Anonymous for Peer Review

Abstract Quantum computations execute on noisy hardware whose effective noise is opaque and varies across platforms and over time. Complete noise-channel descriptions are often too detailed for reasoning, comparison, or analysis. This work studies the semantic problem of constructing tractable abstractions of noisy quantum channels: given a finite set of observations, how can channel behaviour be summarised while preserving properties of interest? We characterise the effective noise of a quantum channel as an abstract domain of noise fingerprints. A noise fingerprint is an observational abstraction of a quantum channel over a finite experiment interface. We relate channels and fingerprints through a probabilistic Galois connection, in which concretisation returns a probability distribution over channels and is compared with them through its expected value. This construction reduces to the classical Galois connection when every concretisation is a point mass. Measured fingerprints carry a separate (ε, δ) estimation guarantee, separating tolerance ε from failure probability δ over measurement sessions. We state four abstraction obligations: soundness, conciseness, efficiency, and adaptiveness. The package provides an executable instantiation of the abstraction function using the classical-shadow estimator, together with a partial concretisation function that reconstructs channels from fingerprints via semidefinite programming. Using the information orders of Coecke and Martin on classical and quantum states, it also provides a probabilistic concretisation of Pauli channels as random mixtures of unitary operations. A worked example shows how fingerprints determine whether two realisations of the same program are observationally equivalent across environments and compiler passes, and localise the gate at which they diverge. The evaluation reports that the Galois law holds on all tested pairs of Pauli channels; measured fingerprints meet their (ε, δ) coverage guarantee; the soundness bound is tight; compression relative to the concrete channel domain is exponential while nearly all information about noise strength is retained on a synthetic benchmark; sample complexity grows sublinearly in the interface size, consistent with the logarithmic bound; and incremental updates track channel drift at the optimal rate. Additional experiments examine physically meaningful noise signatures and distinguish cross-platform behaviours. Together, this work brings abstract interpretation to the empirical semantics of noisy quantum channels, offering a lightweight, formally grounded abstraction for characterising, comparing, and monitoring noisy quantum executions. Context and Method Characterising noisy quantum channels remains challenging: full process tomography scales exponentially with system size, while common noise metrics offer limited semantic guarantees. A noise fingerprint is the matrix of deviations between observed and ideal Pauli expectation values over a fixed experiment interface. Channels and fingerprints are ordered by information, using the Coecke–Martin orders on classical and quantum states. The abstraction maps each completely positive trace-preserving (CPTP) map to its fingerprint. The concretisation returns a probability distribution over channels, and the two satisfy the Galois-connection law with the concretisation compared through its expected value. Separately, a fingerprint measured with T rounds lies within ε of the exact fingerprint with probability at least 1 − δ. The framework is evaluated against four obligations: Soundness: the probabilistic Galois connection, an exact observational-soundness theorem, and a Lipschitz bound (L ≤ 1) relating abstract distance to diamond-norm distance. Conciseness: compression relative to the full channel representation. Estimation efficiency: the (ε, δ) guarantee from finite measurements, with logarithmic growth in the interface size. Adaptiveness: incremental updates under channel drift. The implementation uses the Huang–Kueng–Preskill classical-shadow estimator with median-of-means aggregation. The package includes exact SDP-based diamond norms for small systems, two independently validated large-system ground truths (completely bounded norm multiplicativity for single-site channel pairs and the exact Pauli-channel ℓ1 formula), and a product-factorised classical-shadow sampler validated against the full sampler. Formal properties are checked by 59 automated tests. Every number reported in the paper is regenerated by a script; CLAIMS.md maps each number to its generating script and output. What's New in Version v3 Probabilistic Galois connection (new definition): src/infoorder.py implements the Coecke–Martin information orders and the probabilistic concretisation of Pauli channels. experiments/galois_check.py (make galois) checks the Galois law. (ε, δ) estimation guarantee: src/pgc.py and experiments/pgc_coverage.py test it over 48 configurations, with a held-out calibration check and a negative control. Version v3 called this the probabilistic Galois connection. Consistent confidence criterion: every "rounds needed to reach a tolerance ε" result is the smallest budget at which the error is at most ε in at least 95 of 100 independent sessions (δ = 0.05). The median (typical case) is recorded alongside it. Generated paper numbers and figures: experiments/export_numbers.py, the coverage experiment, and the Galois check write LaTeX macros (results/paper_numbers.tex, results/pgc_numbers.tex, and results/galois_numbers.tex). README.md identifies the figure file behind each figure in the paper. Worked example: examples/worked_example.ipynb, with a Jupyter-free runner. Expanded tests: 59 tests (51 in v3). Artifact Evaluation Summary The package provides the implementation, experiments, and evaluation pipeline for the paper: a pure Python/NumPy implementation of noisy quantum channels, classical-shadow fingerprint estimation, the information orders and the probabilistic Galois connection, the (ε, δ) estimation guarantee, SDP-based concretisation, 59 tests, a worked example, and scripts that reproduce every figure and quantitative claim. Evaluators can begin with the worked example, verify correctness with one command, and regenerate the results. Precomputed data and figures allow immediate inspection; after dependencies are installed, the full pipeline runs from scratch without GPUs, quantum hardware, or network access. New programs, noise profiles, qubit counts, and properties can be added with minimal changes. Package Contents examples/ — executed worked_example.ipynb (with outputs stored) and run_worked_example.py, which runs the example without Jupyter. src/ — states and channels; noise fingerprints; literal classical-shadow estimators (full and product-factorised); the Coecke–Martin information orders and probabilistic concretisation (infoorder.py); the (ε, δ) estimation guarantee (pgc.py); optional readout-error models; exact diamond norms via Watrous SDPs; validated large-system diamond-norm ground truths; SDP-based concretisation; configurable noise models; and a registry of 12 supplementary configurations (profiles.py). experiments/ — scripts for each result, including audit_seed_sweep.py, compliance.py, galois_check.py, pgc_coverage.py, scale_rq.py, realistic_limits.py, shadow_validation.py, expert_verification.py, fingerprints_main.py, figure scripts, export_numbers.py, and supplementary sweeps rq1_sweep.py through rq4_sweep.py. results/ — JSON data for every result and the LaTeX number macros. figures/ — all figures, including the nine used in the paper. tests/ — 59 tests, including tests for exact diamond-norm ground truths, the product-factorised sampler, the median-of-means estimator, the information orders and probabilistic Galois connection, and the (ε, δ) guarantee. Root-level support files: verify.py, CLAIMS.md (claim-by-claim map), NOTES.md (scope, platform notes, and seed-sensitivity check), README.md, Makefile, Dockerfile, requirements.txt, and LICENSE. Installation Python 3.10 or later is required. Install dependencies: pip install -r requirements.txt Dependencies: NumPy, SciPy, CVXPY (SCS), scikit-learn, and Matplotlib. No quantum SDK is required; all simulations use a pure NumPy density-matrix implementation. Jupyter is optional. A Dockerfile is provided: docker build . Getting Started: Worked Example Run the worked example: python3 examples/run_worked_example.py Alternatively, open examples/worked_example.ipynb. The runner takes seconds and uses NumPy only. It accepts a program in OpenQASM, shows what a backend does to it, derives the observation interface from the program's test, computes the fingerprints, and decides whether two backends are interchangeable for that test. Expected results: Two backends implementing the same noise by different means are judged interchangeable on all five programs (deviations ≈ 10⁻¹⁶). A leftover coherent phase rotation is flagged on four of the five programs and correctly cleared on the fifth, whose test reads only populations. On a population-only interface, the phase rotation is invisible; refining the interface to the observables read by the test restores it. The prefix sweep finds the first divergence at the first CX gate (distance 0.0729, rising to 0.1007 after the second CX). Numerical checks: fingerprint distance equals observational discrepancy to machine precision; concretisation within tolerance is an interval; the median-of-means example has expectation 7/9. Verification Run: make kick-the-tires This takes under two minutes and runs the 59 tests, a diamond-norm SDP self-check, and a quick coverage check of the (ε, δ) guarantee. Expected output: 59 passed ALL CHECKS PASSED Measurement Protocol Every "rounds needed to reach ε" result is the smallest budget on a geome

•Jul 5, 2026•0 citations

Distinguishing Quantum Software Bugs from Hardware Noise: A Statistical Approach

Ahmik Virani, Devraj, Anirudh Suresh +2 more

Quantum computing in the Noisy IntermediateScale Quantum (NISQ) era presents significant challenges in differentiating quantum software bugs from hardware noise. Traditional debugging techniques from classical software engineering cannot directly resolve this issue due to the inherently stochastic nature of quantum computation mixed with noises from NISQ computers. To address this gap, we propose a statistical approach leveraging probabilistic metrics to differentiate between quantum software bugs and hardware noise. We evaluate our methodology empirically using well-known quantum algorithms, including Grover's algorithm, Deutsch-Jozsa algorithm, and Simon's algorithm. Experimental results demonstrate the efficacy and practical applicability of our approach, providing quantum software developers with a reliable analytical tool to identify and classify unexpected behavior in quantum programs.

IEEE International Conference on Quantum Computing and Engineering (QCE)•Aug 30, 2025•5 citations

Noise-Aware Quantum Software Testing: From Mitigating Noise to Fully Integrating Noise in Testing

Asmar Muqeet

Quantum computing has the potential to revolutionize computation by leveraging phenomena such as superposition and entanglement. However, this potential is limited in practice by quantum noise, which introduces errors and uncertainty in current devices. This directly impacts the reliability of quantum software, making effective quantum software testing both essential and challenging. While existing quantum testing approaches adapt classical techniques, they largely rely on noise-free simulators and are therefore not reliably applicable to real computers, and often remain incompatible with modern quantum algorithms and error mitigation methods. This thesis addresses these limitations by investigating how quantum software testing can be made practical and reliable on real quantum computers. We identify key challenges in handling noise and in closing the gap between existing testing methodologies and recent advances in quantum computing. To enable testing under realistic conditions, we propose machine learning–based techniques, including QOIN and Q-LEAR, to reduce the impact of noise on test outcomes, allowing existing testing methods to be applied on real computers. We further introduce supporting tools such as QUIET and STGP to improve scalability and enhance noise modeling. In addition, we explore the integration of quantum components into classical testing scenarios, demonstrating applicability in hybrid systems. Extensive empirical evaluations across multiple platforms and real-world programs show significant mprovements in test reliability under noise. Furthermore, with QOPS and SB-QOPS, we propose a novel testing paradigm tailored for noisy quantum computers. Our approaches, QOPS and SB-QOPS, redefine test cases using Pauli strings, adopt expectation value–based oracles compatible with error mitigation techniques, and incorporate search-based strategies for efficient test generation. These methods support a broader class of programs, reduce dependence on complete specifications, and explicitly account for noise during testing. Large-scale studies, including experiments on real quantum hardware, demonstrate their effectiveness and scalability. Overall, this thesis advances quantum software testing by bridging the gap between theoretical methods and practical deployment on real quantum computers, enabling more reliable fault detection in the presence of quantum noise and laying a foundation for testing in the noisy quantum era.

•Jan 1, 2026•0 citations

Robust Mutation Analysis of Quantum Programs Under Noise

Sophie Fortz, Eñaut Mendiluze Usandizaga, Shaukat Ali +2 more

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.

arXiv:2605.13279•May 13, 2026•4 citations
Contemporary quantum computers are inherently noisy, posing significant challenges for the development and testing of quantum software. Simplified or outdated noise assumptions can lead to incorrect assessments of program correctness, obscure debugging, and hinder cross-platform portability, creating a critical quantum software development gap. Providing accurate, practical noise characterisation is challenging as traditional reconstruction methods scale exponentially and rapidly become outdated. In this vision paper, we address this gap via a novel classical shadow tomography-based pipeline, SIMSHADOW, enabling efficient, continuously updatable noise fingerprinting from empirical observations, suitable for integration into quantum software development workflows, including testing and validation. We prototyped the pipeline to investigate fingerprints' ability to capture structured, interpretable noise and cross-platform discrepancies affecting quantum programs' behaviour to support realistic testing and debugging in future tools. Our evaluation with Qiskit and Cirq under widely used hardware-informed profiles, IBM Boston and Quantinuum H2, shows fingerprints exhibit channel-specific structure and yield interpretable heatmaps. We observed systematic cross-platform discrepancies under matched noise configurations, quantified by large Frobenius distances at a fraction of full tomography cost. On 69 MQTBENCH programs, larger fingerprint differences correlate with output distributions divergences, highlighting threats for testing and cross-platform debugging tasks.
Contemporary quantum computers are inherently noisy, posing significant challenges for the development and testing of quantum software. Simplified or outdated noise assumptions can lead to incorrect assessments of program correctness, obscure debugging, and hinder cross-platform portability, creating a critical quantum software development gap. Providing accurate, practical noise characterisation is challenging as traditional reconstruction methods scale exponentially and rapidly become outdated. In this vision paper, we address this gap via a novel classical shadow tomography-based pipeline, SIMSHADOW, enabling efficient, continuously updatable noise fingerprinting from empirical observations, suitable for integration into quantum software development workflows, including testing and validation. We prototyped the pipeline to investigate fingerprints' ability to capture structured, interpretable noise and cross-platform discrepancies affecting quantum programs' behaviour to support realistic testing and debugging in future tools. Our evaluation with Qiskit and Cirq under widely used hardware-informed profiles, IBM Boston and Quantinuum H2, shows fingerprints exhibit channel-specific structure and yield interpretable heatmaps. We observed systematic cross-platform discrepancies under matched noise configurations, quantified by large Frobenius distances at a fraction of full tomography cost. On 69 MQTBENCH programs, larger fingerprint differences correlate with output distributions divergences, highlighting threats for testing and cross-platform debugging tasks.
Quantum programs are probabilistic in nature, and noisy execution due to current imperfect hardware further complicates their analysis. In this paper, we study abstract semantics for analysing quantum programs under these conditions. We introduce noise fingerprints, compact descriptions of the observable effects of noise relative to a finite interface of input states and output measurements. We use them to define our abstract domain with respect to the concrete noise-related behaviour. We relate the concrete and abstract domains through a probabilistic Galois connection, extending the Galois-connection framework to distribution-valued interpretations. We study the resulting abstraction in terms of observational soundness, conciseness, efficiency, and ability to adapt to changing noise. We show that polynomial-size interfaces yield exponentially smaller fingerprints than full noise models while preserving the chosen observations, and that fingerprint distance characterises the largest observational discrepancy over the chosen interface. Further, we develop ChanShadow, which reuses noise fingerprints of commonly used short program fragments to analyse noisy execution of whole programs and provides a uniform finite-sample error bound. We construct working examples showing how fingerprints support program analysis. We evaluate fingerprint precision, representation cost, measurement requirements, and behaviour under noise drift. On a synthetic benchmark, fingerprints retain (99±1)%(99 \pm 1)\%(99±1)% of the noise strength information of a full noise model. On simulated noise drift, reusing earlier measurements reduces the number of fresh measurement rounds needed to reach an error tolerance of 0.100.100.10 by a factor of 2.32.32.3 at 95%95\%95% confidence and by a factor of 272727 under the median-error criterion.
Abstract Quantum computations execute on noisy hardware whose effective noise is opaque and varies across platforms and over time. Complete noise-channel descriptions are often too detailed for reasoning, comparison, or analysis. This work studies the semantic problem of constructing tractable abstractions of noisy quantum channels: given a finite set of observations, how can channel behaviour be summarised while preserving properties of interest? We characterise the effective noise of a quantum channel as an abstract domain of noise fingerprints. A noise fingerprint is an observational abstraction of a quantum channel over a finite experiment interface. We relate channels and fingerprints through a probabilistic Galois connection, in which concretisation returns a probability distribution over channels and is compared with them through its expected value. This construction reduces to the classical Galois connection when every concretisation is a point mass. Measured fingerprints carry a separate (ε, δ) estimation guarantee, separating tolerance ε from failure probability δ over measurement sessions. We state four abstraction obligations: soundness, conciseness, efficiency, and adaptiveness. The package provides an executable instantiation of the abstraction function using the classical-shadow estimator, together with a partial concretisation function that reconstructs channels from fingerprints via semidefinite programming. Using the information orders of Coecke and Martin on classical and quantum states, it also provides a probabilistic concretisation of Pauli channels as random mixtures of unitary operations. A worked example shows how fingerprints determine whether two realisations of the same program are observationally equivalent across environments and compiler passes, and localise the gate at which they diverge. The evaluation reports that the Galois law holds on all tested pairs of Pauli channels; measured fingerprints meet their (ε, δ) coverage guarantee; the soundness bound is tight; compression relative to the concrete channel domain is exponential while nearly all information about noise strength is retained on a synthetic benchmark; sample complexity grows sublinearly in the interface size, consistent with the logarithmic bound; and incremental updates track channel drift at the optimal rate. Additional experiments examine physically meaningful noise signatures and distinguish cross-platform behaviours. Together, this work brings abstract interpretation to the empirical semantics of noisy quantum channels, offering a lightweight, formally grounded abstraction for characterising, comparing, and monitoring noisy quantum executions. Context and Method Characterising noisy quantum channels remains challenging: full process tomography scales exponentially with system size, while common noise metrics offer limited semantic guarantees. A noise fingerprint is the matrix of deviations between observed and ideal Pauli expectation values over a fixed experiment interface. Channels and fingerprints are ordered by information, using the Coecke–Martin orders on classical and quantum states. The abstraction maps each completely positive trace-preserving (CPTP) map to its fingerprint. The concretisation returns a probability distribution over channels, and the two satisfy the Galois-connection law with the concretisation compared through its expected value. Separately, a fingerprint measured with T rounds lies within ε of the exact fingerprint with probability at least 1 − δ. The framework is evaluated against four obligations: Soundness: the probabilistic Galois connection, an exact observational-soundness theorem, and a Lipschitz bound (L ≤ 1) relating abstract distance to diamond-norm distance. Conciseness: compression relative to the full channel representation. Estimation efficiency: the (ε, δ) guarantee from finite measurements, with logarithmic growth in the interface size. Adaptiveness: incremental updates under channel drift. The implementation uses the Huang–Kueng–Preskill classical-shadow estimator with median-of-means aggregation. The package includes exact SDP-based diamond norms for small systems, two independently validated large-system ground truths (completely bounded norm multiplicativity for single-site channel pairs and the exact Pauli-channel ℓ1 formula), and a product-factorised classical-shadow sampler validated against the full sampler. Formal properties are checked by 59 automated tests. Every number reported in the paper is regenerated by a script; CLAIMS.md maps each number to its generating script and output. What's New in Version v3 Probabilistic Galois connection (new definition): src/infoorder.py implements the Coecke–Martin information orders and the probabilistic concretisation of Pauli channels. experiments/galois_check.py (make galois) checks the Galois law. (ε, δ) estimation guarantee: src/pgc.py and experiments/pgc_coverage.py test it over 48 configurations, with a held-out calibration check and a negative control. Version v3 called this the probabilistic Galois connection. Consistent confidence criterion: every "rounds needed to reach a tolerance ε" result is the smallest budget at which the error is at most ε in at least 95 of 100 independent sessions (δ = 0.05). The median (typical case) is recorded alongside it. Generated paper numbers and figures: experiments/export_numbers.py, the coverage experiment, and the Galois check write LaTeX macros (results/paper_numbers.tex, results/pgc_numbers.tex, and results/galois_numbers.tex). README.md identifies the figure file behind each figure in the paper. Worked example: examples/worked_example.ipynb, with a Jupyter-free runner. Expanded tests: 59 tests (51 in v3). Artifact Evaluation Summary The package provides the implementation, experiments, and evaluation pipeline for the paper: a pure Python/NumPy implementation of noisy quantum channels, classical-shadow fingerprint estimation, the information orders and the probabilistic Galois connection, the (ε, δ) estimation guarantee, SDP-based concretisation, 59 tests, a worked example, and scripts that reproduce every figure and quantitative claim. Evaluators can begin with the worked example, verify correctness with one command, and regenerate the results. Precomputed data and figures allow immediate inspection; after dependencies are installed, the full pipeline runs from scratch without GPUs, quantum hardware, or network access. New programs, noise profiles, qubit counts, and properties can be added with minimal changes. Package Contents examples/ — executed worked_example.ipynb (with outputs stored) and run_worked_example.py, which runs the example without Jupyter. src/ — states and channels; noise fingerprints; literal classical-shadow estimators (full and product-factorised); the Coecke–Martin information orders and probabilistic concretisation (infoorder.py); the (ε, δ) estimation guarantee (pgc.py); optional readout-error models; exact diamond norms via Watrous SDPs; validated large-system diamond-norm ground truths; SDP-based concretisation; configurable noise models; and a registry of 12 supplementary configurations (profiles.py). experiments/ — scripts for each result, including audit_seed_sweep.py, compliance.py, galois_check.py, pgc_coverage.py, scale_rq.py, realistic_limits.py, shadow_validation.py, expert_verification.py, fingerprints_main.py, figure scripts, export_numbers.py, and supplementary sweeps rq1_sweep.py through rq4_sweep.py. results/ — JSON data for every result and the LaTeX number macros. figures/ — all figures, including the nine used in the paper. tests/ — 59 tests, including tests for exact diamond-norm ground truths, the product-factorised sampler, the median-of-means estimator, the information orders and probabilistic Galois connection, and the (ε, δ) guarantee. Root-level support files: verify.py, CLAIMS.md (claim-by-claim map), NOTES.md (scope, platform notes, and seed-sensitivity check), README.md, Makefile, Dockerfile, requirements.txt, and LICENSE. Installation Python 3.10 or later is required. Install dependencies: pip install -r requirements.txt Dependencies: NumPy, SciPy, CVXPY (SCS), scikit-learn, and Matplotlib. No quantum SDK is required; all simulations use a pure NumPy density-matrix implementation. Jupyter is optional. A Dockerfile is provided: docker build . Getting Started: Worked Example Run the worked example: python3 examples/run_worked_example.py Alternatively, open examples/worked_example.ipynb. The runner takes seconds and uses NumPy only. It accepts a program in OpenQASM, shows what a backend does to it, derives the observation interface from the program's test, computes the fingerprints, and decides whether two backends are interchangeable for that test. Expected results: Two backends implementing the same noise by different means are judged interchangeable on all five programs (deviations ≈ 10⁻¹⁶). A leftover coherent phase rotation is flagged on four of the five programs and correctly cleared on the fifth, whose test reads only populations. On a population-only interface, the phase rotation is invisible; refining the interface to the observables read by the test restores it. The prefix sweep finds the first divergence at the first CX gate (distance 0.0729, rising to 0.1007 after the second CX). Numerical checks: fingerprint distance equals observational discrepancy to machine precision; concretisation within tolerance is an interval; the median-of-means example has expectation 7/9. Verification Run: make kick-the-tires This takes under two minutes and runs the 59 tests, a diamond-norm SDP self-check, and a quick coverage check of the (ε, δ) guarantee. Expected output: 59 passed ALL CHECKS PASSED Measurement Protocol Every "rounds needed to reach ε" result is the smallest budget on a geome
Quantum computing in the Noisy IntermediateScale Quantum (NISQ) era presents significant challenges in differentiating quantum software bugs from hardware noise. Traditional debugging techniques from classical software engineering cannot directly resolve this issue due to the inherently stochastic nature of quantum computation mixed with noises from NISQ computers. To address this gap, we propose a statistical approach leveraging probabilistic metrics to differentiate between quantum software bugs and hardware noise. We evaluate our methodology empirically using well-known quantum algorithms, including Grover's algorithm, Deutsch-Jozsa algorithm, and Simon's algorithm. Experimental results demonstrate the efficacy and practical applicability of our approach, providing quantum software developers with a reliable analytical tool to identify and classify unexpected behavior in quantum programs.
Quantum computing has the potential to revolutionize computation by leveraging phenomena such as superposition and entanglement. However, this potential is limited in practice by quantum noise, which introduces errors and uncertainty in current devices. This directly impacts the reliability of quantum software, making effective quantum software testing both essential and challenging. While existing quantum testing approaches adapt classical techniques, they largely rely on noise-free simulators and are therefore not reliably applicable to real computers, and often remain incompatible with modern quantum algorithms and error mitigation methods. This thesis addresses these limitations by investigating how quantum software testing can be made practical and reliable on real quantum computers. We identify key challenges in handling noise and in closing the gap between existing testing methodologies and recent advances in quantum computing. To enable testing under realistic conditions, we propose machine learning–based techniques, including QOIN and Q-LEAR, to reduce the impact of noise on test outcomes, allowing existing testing methods to be applied on real computers. We further introduce supporting tools such as QUIET and STGP to improve scalability and enhance noise modeling. In addition, we explore the integration of quantum components into classical testing scenarios, demonstrating applicability in hybrid systems. Extensive empirical evaluations across multiple platforms and real-world programs show significant mprovements in test reliability under noise. Furthermore, with QOPS and SB-QOPS, we propose a novel testing paradigm tailored for noisy quantum computers. Our approaches, QOPS and SB-QOPS, redefine test cases using Pauli strings, adopt expectation value–based oracles compatible with error mitigation techniques, and incorporate search-based strategies for efficient test generation. These methods support a broader class of programs, reduce dependence on complete specifications, and explicitly account for noise during testing. Large-scale studies, including experiments on real quantum hardware, demonstrate their effectiveness and scalability. Overall, this thesis advances quantum software testing by bridging the gap between theoretical methods and practical deployment on real quantum computers, enabling more reliable fault detection in the presence of quantum noise and laying a foundation for testing in the noisy quantum era.
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.