Testing Multi-Subroutine Quantum Programs: From Unit Testing to Integration Testing
Top Cited Papers
Open Access
- 27 June 2024
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Software Engineering and Methodology
- Vol. 33 (6) , 1-61
Abstract
Quantum computing has emerged as a promising field with the potential to revolutionize various domains by harnessing the principles of quantum mechanics. As quantum hardware and algorithms continue to advance, developing high-quality quantum software has become crucial. However, testing quantum programs poses unique challenges due to the distinctive characteristics of quantum systems and the complexity of multi-subroutine programs. This article addresses the specific testing requirements of multi-subroutine quantum programs. We begin by investigating critical properties by surveying existing quantum libraries and providing insights into the challenges of testing these programs. Building upon this understanding, we focus on testing criteria and techniques based on the whole testing process perspective, spanning from unit testing to integration testing. We delve into various aspects, including IO analysis, quantum relation checking, structural testing, behavior testing, integration of subroutine pairs, and test case generation. We also introduce novel testing principles and criteria to guide the testing process. We conduct comprehensive testing on typical quantum subroutines, including diverse mutants and randomized inputs, to evaluate our proposed approach. The analysis of failures provides valuable insights into the effectiveness of our testing methodology. Additionally, we present case studies on representative multi-subroutine quantum programs, demonstrating the practical application and effectiveness of our proposed testing principles and criteria.Keywords
All Related Versions
Funding Information
- National Natural Science Foundation of China (61832015)
- JSPS KAKENHI (JP23H03372)
This publication has 58 references indexed in Scilit:
- Exploiting Dynamic Quantum Circuits in a Quantum Algorithm with Superconducting QubitsPhysical Review Letters, 2021
- Quantum Programming Language: A Systematic Review of Research Topic and Top Cited LanguagesArchives of Computational Methods in Engineering, 2019
- Quantum Computation and Quantum Information2012
- Direct Fidelity Estimation from Few Pauli MeasurementsPhysical Review Letters, 2011
- Discrimination between pure states and mixed statesPhysical Review A, 2007
- Unambiguous discrimination of mixed quantum statesPhysics Letters A, 2006
- Quantum FingerprintingPhysical Review Letters, 2001
- Prescription for experimental determination of the dynamics of a quantum black boxJournal of Modern Optics, 1997
- The AETG system: an approach to testing based on combinatorial designIEEE Transactions on Software Engineering, 1997
- Determination of quasiprobability distributions in terms of probability distributions for the rotated quadrature phasePhysical Review A, 1989