π€ AI Summary
Quantum programs produce probabilistic outputs, rendering traditional testing methods with fixed sampling budgets both costly on real hardware and statistically inadequate. This work proposes the first Bayesian sequential verification framework tailored for quantum programs, formulating verification as a Bayesian hypothesis test against a reference sourceβsuch as an ideal state vector or finite-sample outcomes. The approach dynamically updates the posterior distribution through batched observations to make pass/fail decisions, unifying statistical rigor with measurement-budget awareness. Implemented in Qiskit, the method significantly reduces measurement overhead on benchmark tasks including Bell state preparation and QAOA for MaxCut, outperforming fixed-budget baselines and demonstrating both efficiency and practicality.
π Abstract
Quantum programs often produce probability distributions rather than deterministic outputs, making verification inherently statistical and increasingly costly on real hardware. In practice, developers still frequently rely on testing with fixed shot budgets on simulators, which are simple but time-consuming and poorly suited to noisy backends. What is missing is a verification approach that is both statistically explicit and budget-aware. This paper formulates Bayesian sequential verification as a reference-based Bayesian hypothesis testing workflow in which priors are derived from explicit reference sources, such as finite-shot reference runs or ideal/statevector-based computation, and verification decisions are updated batch by batch as measurement evidence accumulates. This approach is evaluated in Qiskit on two complementary workloads: Bell-state and QAOA-MaxCut. Across both case studies, the results show that Bayesian sequential verification can substantially reduce measurement costs compared to fixed-budget baselines when the success probability of the program exceeds the target threshold. The findings position Bayesian sequential verification as a practical verification workflow for quantum programs. The approach provides a foundation for future quantum continuous-integration pipelines that require reliable, budget-aware pass/fail decisions and motivates validation on real quantum hardware.