NovaQ: Improving Quantum Program Testing through Diversity-Guided Test Case Generation
By: Tiancheng Jin, Shangzhou Xia, Jianjun Zhao
Potential Business Impact:
Finds bugs in quantum computer programs.
Quantum programs are designed to run on quantum computers, leveraging quantum circuits to solve problems that are intractable for classical machines. As quantum computing advances, ensuring the reliability of quantum programs has become increasingly important. This paper introduces NovaQ, a diversity-guided testing framework for quantum programs. NovaQ combines a distribution-based test case generator with a novelty-driven evaluation module. The generator produces diverse quantum state inputs by mutating circuit parameters, while the evaluator quantifies behavioral novelty based on internal circuit state metrics, including magnitude, phase, and entanglement. By selecting inputs that map to infrequently covered regions in the metric space, NovaQ effectively explores under-tested program behaviors. We evaluate NovaQ on quantum programs of varying sizes and complexities. Experimental results show that NovaQ consistently achieves higher test input diversity and detects more bugs than existing baseline approaches.
Similar Papers
On the Feasibility of Quantum Unit Testing
Software Engineering
Tests quantum computer programs better and faster.
The Impact of Software Testing with Quantum Optimization Meets Machine Learning
Software Engineering
Finds software bugs faster and cheaper.
A Black-box Testing Framework for Oracle Quantum Programs
Software Engineering
Tests quantum computer programs for mistakes.