TY - GEN
T1 - A Strategy of Dynamic Random Testing with Hybrid Distance Metrics for Quantum Programs
AU - Huang, Linzhi
AU - Pei, Hanyu
AU - Li, Yuechen
AU - Yin, Beibei
AU - Cai, Kai Yuan
N1 - Publisher Copyright:
© 2024 IEEE.
PY - 2024
Y1 - 2024
N2 - Quantum Computing (QC) leverages quantum mechanics to manipulate quantum information, holding greater potential than classical computing. To fully exploit QC's potential, it is crucial to ensure the reliability and quality of quantum programs. Research on quantum program testing is still at its early stage, in which some distinctive features of quantum programs, e.g., superposition and entanglement, may be overlooked, and the fault detection capability and testing effectiveness are rather limited. Besides, the input space of quantum programs may exponentially grow when the number of qubits increases, posing great challenges to testing quantum programs. It is imperative to develop a proper testing strategy to effectively select the potential failure-causing test cases and detect faults faster. In this paper, test cases with both basis states and superposition ones are considered and generated to cover more input space. A hybrid distance measurement method based on quantum fidelity and Hamming distance is presented for measuring the similarity among quantum test cases. Furthermore, a Dynamic Random Testing strategy based on Hybrid distance metrics (DRT-H) for quantum programs is proposed, which combines the hybrid distance metrics and the feedback mechanism of the classical Dynamic Random Testing (DRT) strategy to adjust the testing profile and guide the test case selection. Experimental studies demonstrate that the proposed DRT-H strategy outperforms the baseline testing strategies in most cases.
AB - Quantum Computing (QC) leverages quantum mechanics to manipulate quantum information, holding greater potential than classical computing. To fully exploit QC's potential, it is crucial to ensure the reliability and quality of quantum programs. Research on quantum program testing is still at its early stage, in which some distinctive features of quantum programs, e.g., superposition and entanglement, may be overlooked, and the fault detection capability and testing effectiveness are rather limited. Besides, the input space of quantum programs may exponentially grow when the number of qubits increases, posing great challenges to testing quantum programs. It is imperative to develop a proper testing strategy to effectively select the potential failure-causing test cases and detect faults faster. In this paper, test cases with both basis states and superposition ones are considered and generated to cover more input space. A hybrid distance measurement method based on quantum fidelity and Hamming distance is presented for measuring the similarity among quantum test cases. Furthermore, a Dynamic Random Testing strategy based on Hybrid distance metrics (DRT-H) for quantum programs is proposed, which combines the hybrid distance metrics and the feedback mechanism of the classical Dynamic Random Testing (DRT) strategy to adjust the testing profile and guide the test case selection. Experimental studies demonstrate that the proposed DRT-H strategy outperforms the baseline testing strategies in most cases.
KW - Dynamic random testing
KW - S-ADA
KW - hybrid distance metrics
KW - quantum program testing
KW - software cybernetics
KW - superposition
UR - https://www.scopus.com/pages/publications/85206365733
U2 - 10.1109/QRS62785.2024.00011
DO - 10.1109/QRS62785.2024.00011
M3 - 会议稿件
AN - SCOPUS:85206365733
T3 - IEEE International Conference on Software Quality, Reliability and Security, QRS
SP - 1
EP - 12
BT - Proceedings - 2024 IEEE 24th International Conference on Software Quality, Reliability and Security, QRS 2024
PB - Institute of Electrical and Electronics Engineers Inc.
T2 - 24th IEEE International Conference on Software Quality, Reliability and Security, QRS 2024
Y2 - 1 July 2024 through 5 July 2024
ER -