English

A Black-box Testing Framework for Oracle Quantum Programs

Software Engineering 2026-03-18 v2 Quantum Physics

Abstract

Oracle quantum programs are a fundamental class of quantum programs that serve as a critical bridge between quantum computing and classical computing. Many important quantum algorithms are built upon oracle quantum programs, making it essential to ensure their correctness during development. Although software testing is a well-established approach for improving program reliability, no systematic method has been developed to test oracle quantum programs. This paper proposes a black-box testing framework designed for general oracle quantum programs. We formally define these programs, establish the foundational theory for their testing, and propose a detailed testing framework. We develop a prototype tool and conduct extensive experimental evaluations to evaluate the effectiveness of the framework. Our results demonstrate that the proposed framework significantly aids developers in testing oracle quantum programs, providing insights to enhance the reliability of quantum software.

Keywords

Cite

@article{arxiv.2505.07243,
  title  = {A Black-box Testing Framework for Oracle Quantum Programs},
  author = {Peixun Long and Jianjun Zhao},
  journal= {arXiv preprint arXiv:2505.07243},
  year   = {2026}
}

Comments

46 pages, 11 figures

R2 v1 2026-06-28T23:29:04.615Z