跳到主要导航 跳到搜索 跳到主要内容

Faster and Better Quantum Software Testing through Specification Reduction and Projective Measurements

  • Noah H. Oldfield*
  • , Christoph Laaber
  • , Tao Yue
  • , Shaukat Ali
  • *此作品的通讯作者
  • Simula Research Laboratory
  • University of Oslo
  • Oslo Metropolitan University

科研成果: 期刊稿件文章同行评审

摘要

Quantum computing (QC) promises polynomial and exponential speedups in many domains, such as unstructured search and prime number factoring. However, quantum programs yield probabilistic outputs from exponentially growing distributions and are vulnerable to quantum-specific faults. Existing quantum software testing (QST) approaches treat quantum superpositions as classical distributions. This leads to two major limitations when applied to quantum programs: (1) an exponentially growing sample space distribution and (2) failing to detect quantum-specific faults such as phase flips. To overcome these limitations, we introduce a QST approach, which applies a reduction algorithm to a quantum program specification. The reduced specification alleviates the limitations (1) by enabling faster sampling through quantum parallelism and (2) by performing projective measurements in the mixed Hadamard basis. Our evaluation of 143 quantum programs across four categories demonstrates significant improvements in test runtimes and fault detection with our reduction approach. Average test runtimes improved from 169.9 s to 11.8 s, with notable enhancements in programs with large circuit depths (383.1 s to 33.4 s) and large program specifications (464.8 s to 7.7 s). Furthermore, our approach increases mutation scores from to , effectively detecting phase flip faults that non-reduced specifications miss. These results underline our approach's importance to improve QST efficiency and effectiveness.

源语言英语
文章编号198
期刊ACM Transactions on Software Engineering and Methodology
34
7
DOI
出版状态已出版 - 18 8月 2025
已对外发布

指纹

探究 'Faster and Better Quantum Software Testing through Specification Reduction and Projective Measurements' 的科研主题。它们共同构成独一无二的指纹。

引用此