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.
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)% 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.
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
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.
This work provides a comprehensive framework for noise-aware quantum program analysis, ranging from logical foundations to model checking and automated synthesis. While most research on quantum programming considers an idealized, noise-free semantics for quantum programs, we reason about quantum programs that are executed on real, noisy hardware. We use the error models published by quantum-hardware vendors to give a hardware-dependent semantics to quantum programs. We then present a noise-aware quantum Hoare logic with a relatively complete proof system. We finally use state-space exploration techniques for the hardware-aware verification and synthesis of loop-free quantum programs. In this way, we synthesize optimal, hardware-dependent solutions for parity bit-flip, GHZ state preparation, and other problems that commonly occur as subroutines in larger quantum algorithms. We evaluate our method on all 55 hardware specifications provided by the IBM Qiskit toolkit. Finally, we also show that classical probabilistic branching is needed for optimality in quantum programming.
This repository accompanies the preprint “Mapping the Limits of Architecture-Sensitive Noise Fingerprints in Quantum States.” The work investigates when and why simple classical measurement statistics obtained from noisy quantum systems retain information about the underlying quantum state architecture, and when such information collapses entirely. Building on earlier results demonstrating the existence of architecture-dependent classical fingerprints for stabilizer states under local noise, this study systematically maps the boundaries and failure modes of that phenomenon. Using exact probability distributions for small-to-moderate system sizes, we introduce controlled departures from stabilizer structure and track the degradation of classical features under dephasing and depolarizing noise. The analysis reveals sharply conditional survival of architecture sensitivity, a consistent feature-dependent collapse ordering, and a strong dependence on measurement basis and perturbation geometry. In particular, regimes of genuine diagnostic blindness are identified, where classical statistics become architecture-indistinguishable even though the underlying quantum states remain highly structured. The archive includes the full manuscript (PDF and LaTeX source), all figures appearing in the paper, the scripts required to reproduce the numerical experiments and figures, and the corresponding data outputs. All results are based on exact numerical evaluation (no sampling, optimisation, tomography, or machine learning). The work is intended as a lightweight, diagnostic limits study, providing practical guidance on when simple classical measurements are informative and when their use is fundamentally unreliable. Together with the companion papers in this series, the repository contributes to a coherent empirical and theoretical programme on the classical observability of quantum structure under noise.Version 1.1 notes.This revision clarifies the collapse criterion used to define architecture indistinguishability, explicitly specifies numerical precision and robustness checks, and adds a qualitative reliability chart summarising when different classical features remain informative. The presentation of noise-model dependence, system-size stability, and perturbation geometry has been sharpened, and the relationship to companion papers in the series has been made explicit. No new phenomena are introduced; the update improves transparency, interpretability, and practical usability of the results.
Quantum error mitigation (QEM) can recover information about ideal quantum computations from noisy circuit executions, but may require a large sampling overhead. Fundamental lower bounds show that recovering noiseless observables without problem-specific information can require superpolynomially many samples, with exponential overhead for broad classes of noisy circuits. However, problem-specific information can reduce the number of samples needed to obtain the required answer. We investigate this possibility in supervised quantum machine learning, where labeled examples provide information about the function to be learned. Binary classification provides such a setting, since correct prediction depends on the sign and margin of the classifier output rather than on accurate reconstruction of every noiseless expectation value. We develop a theoretical and empirical framework for comparing boosting of noisy parameterized quantum circuits with probabilistic error cancellation (PEC), requiring both methods to reach the same learning target. For the specified circuit architectures under Pauli noise, we establish a common hypothesis-class complexity bound: matching empirical margin loss gives the same upper bound on expected classification risk. We derive resource criteria and evaluate AdaBoostR and Real AdaBoost in finite-shot teacher-student simulations across circuit depth and physical noise strength. Under the same classification-accuracy target, boosting requires fewer circuit executions as depth and noise increase. Boosting also achieves higher test accuracy than the corresponding reference. For the supervised-learning problems studied, these results demonstrate a task-dependent resource advantage: exploiting information retained in noisy outputs can avoid the cost of ideal-output reconstruction without sacrificing observed classification performance.