Skip to main navigation Skip to search Skip to main content

A Strategy of Dynamic Random Testing with Hybrid Distance Metrics for Quantum Programs

  • Beihang University
  • University of Science and Technology Beijing

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

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.

Original languageEnglish
Title of host publicationProceedings - 2024 IEEE 24th International Conference on Software Quality, Reliability and Security, QRS 2024
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages1-12
Number of pages12
ISBN (Electronic)9798350365634
DOIs
StatePublished - 2024
Event24th IEEE International Conference on Software Quality, Reliability and Security, QRS 2024 - Cambridge, United Kingdom
Duration: 1 Jul 20245 Jul 2024

Publication series

NameIEEE International Conference on Software Quality, Reliability and Security, QRS
ISSN (Print)2693-9177

Conference

Conference24th IEEE International Conference on Software Quality, Reliability and Security, QRS 2024
Country/TerritoryUnited Kingdom
CityCambridge
Period1/07/245/07/24

Keywords

  • Dynamic random testing
  • S-ADA
  • hybrid distance metrics
  • quantum program testing
  • software cybernetics
  • superposition

Fingerprint

Dive into the research topics of 'A Strategy of Dynamic Random Testing with Hybrid Distance Metrics for Quantum Programs'. Together they form a unique fingerprint.

Cite this