[en] As quantum computing continues to emerge, ensuring the quality of quantum programs has become increasingly critical. Quantum program testing has emerged as a prominent research area within the scope of quantum software engineering. While numerous approaches have been proposed to address quantum program quality assurance, our analysis reveals that most existing methods rely on measurement-based validation in practice. However, due to the inherently probabilistic nature of quantum programs, measurement-based validation methods face significant limitations. To investigate these limitations, we conducted an empirical study of recent research on quantum program testing, analyzing measurement-based validation methods in the literature. Our analysis categorizes existing measurement-based validation methods into two groups: distribution-level validation and output-valuelevel validation. We then compare measurement-based validation with statevector-based validation methods to evaluate their pros and cons. Our findings demonstrate that measurement-based validation is suitable for straightforward assessments, such as verifying the existence of specific output values, while statevectorbased validation proves more effective for complicated tasks such as assessing the program behaviors.
Disciplines :
Computer science
Author, co-author :
Ye, Jiaming; Southwest Jiaotong University, China
WU, Xiongfei ; University of Luxembourg > Interdisciplinary Centre for Security, Reliability and Trust (SNT) > SerVal
Xia, Shangzhou; Kyushu University, Japan
Zhang, Fuyuan; Zhejiang University, China
Zhao, Jianjun; Kyushu University, Japan
External co-authors :
yes
Language :
English
Title :
Is Measurement Enough? Rethinking Output Validation in Quantum Program Testing
Publication date :
2025
Event name :
40th IEEE/ACM International Conference on Automated Software Engineering
Event place :
Seoul, South Korea
Event date :
16-20 November 2025
Audience :
International
Main work title :
Proceedings of the 40th IEEE/ACM International Conference on Automated Software Engineering (ASE 2025)
Publisher :
IEEE Computer Society, Los Alamitos, CA, United States
X. Wang, P. Arcaini, T. Yue, and S. Ali, "Qusbt: Search-based testing of quantum programs," in Proceedings of the ACM/IEEE 44th International Conference on Software Engineering: Companion Proceedings, 2022, pp. 173-177.
X. Wang, P. Arcaini, T. Yue, and S. Ali, "Generating failing test suites for quantum programs with search," in International symposium on search based software engineering. Springer, 2021, pp. 9-25.
X. Wang, P. Arcaini, T. Yue, and S. Ali, "Application of combinatorial testing to quantum programs," in 2021 IEEE 21st International Conference on Software Quality, Reliability and Security (QRS). IEEE, 2021, pp. 179-188.
X. Wang, P. Arcaini, T. Yue, and S. Ali, "Qucat: A combinatorial testing tool for quantum software," in 2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE). IEEE, 2023, pp. 2066-2069.
R. Abreu, J. P. Fernandes, L. Llana, and G. Tavares, "Metamorphic testing of oracle quantum programs," in Proceedings of the 3rd International Workshop on Quantum Software Engineering, 2022, pp. 16-23.
M. Paltenghi and M. Pradel, "Morphq: Metamorphic testing of the qiskit quantum computing platform," in 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE). IEEE, 2023, pp. 2413-2424.
Y. Li and M. Ying, "Debugging quantum processes using monitoring measurements," Physical Review A, vol. 89, no. 4, p. 042338, 2014.
J. Liu, G. T. Byrd, and H. Zhou, "Quantum circuits for dynamic runtime assertions in quantum computation," in Proceedings of the Twenty-Fifth International Conference on Architectural Support for Programming Languages and Operating Systems, 2020, pp. 1017-1030.
Y. Huang and M. Martonosi, "Statistical assertions for validating patterns and finding bugs in quantum programs," in Proceedings of the 46th International Symposium on Computer Architecture, 2019, pp. 541-553.
K. An, "Sulla determinazione empirica di una legge didistribuzione," Giorn Dell'inst Ital Degli Att, vol. 4, pp. 89-91, 1933.
N. V. Smirnov, "On the estimation of the discrepancy between empirical curves of distribution for two independent samples," Bull. Math. Univ. Moscou, vol. 2, no. 2, pp. 3-14, 1939.
I. Good, "Some terminology and notation in information theory," Proceedings of the IEE-Part C: Monographs, vol. 103, no. 3, pp. 200-204, 1956.
J. Shore and R. Johnson, "Axiomatic derivation of the principle of maximum entropy and the principle of minimum cross-entropy," IEEE Transactions on information theory, vol. 26, no. 1, pp. 26-37, 2003.
E. R. Johnston, N. Harrigan, and M. Gimeno-Segovia, Programming Quantum Computers: Essential algorithms and code samples. O'Reilly Media, 2019.
J. Wang, Q. Zhang, G. H. Xu, and M. Kim, "Qdiff: Differential testing of quantum software stacks," in 2021 36th IEEE/ACM international conference on automated software engineering (ASE). IEEE, 2021, pp. 692-704.
I. Iwumbwe, B. Z. Liu, and J. Wickerson, "Qutefuzz: Fuzzing quantum compilers using randomly generated circuits with control flow and subcircuits," 2025.
J. Wang, M. Gao, Y. Jiang, J. Lou, Y. Gao, D. Zhang, and J. Sun, "Quanfuzz: Fuzz testing of quantum program," arXiv preprint arXiv:1810.10310, 2018.
S. Honarvar, M. R. Mousavi, and R. Nagarajan, "Property-based testing of quantum programs in q#," in Proceedings of the IEEE/ACM 42nd International Conference on Software Engineering Workshops, 2020, pp. 430-435.
S. Xia, J. Zhao, F. Zhang, and X. Guo, "Quantum concolic testing," Proc. ACM Softw. Eng., vol. 2, no. ISSTA, Jun. 2025. [Online]. Available: https://doi.org/10.1145/3728926
P. Long and J. Zhao, "Equivalence, identity, and unitarity checking in black-box testing of quantum programs," Journal of Systems and Software, vol. 211, p. 112000, 2024.
P. Long and J. Zhao, "Testing multi-subroutine quantum programs: From unit testing to integration testing," ACM Transactions on Software Engineering and Methodology, vol. 33, no. 6, pp. 1-61, 2024.