arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.01111cs.SE
收藏

MorphQ:Qiskit量子计算平台的蜕变测试

MorphQ: Metamorphic Testing of the Qiskit Quantum Computing Platform

Matteo Paltenghi, Michael Pradel

AI总结:

MorphQ提出首个针对量子计算平台的蜕变测试方法,通过程序生成器和量子蜕变关系缓解预言机问题,在Qiskit上两天生成超8000个程序对,发现13个错误,其中9个已确认。

摘要:

随着量子计算日益普及,底层量子计算平台的能力和复杂性都在不断增长。然而,由于现有量子程序数量相对较少,且存在预言机问题(即缺乏程序预期行为的规范),测试这些平台颇具挑战性。本文提出了MorphQ,这是首个针对量子计算平台的蜕变测试方法。我们的两个关键贡献是:(i)一个程序生成器,能够生成大量且多样化的有效(即不崩溃的)量子程序;(ii)一组利用量子特有的蜕变关系来缓解预言机问题的程序变换。通过测试流行的Qiskit平台来评估该方法,结果显示该方法在两天内创建了超过8000个程序对,其中许多暴露了崩溃问题。检查这些崩溃后,我们发现了13个错误,其中9个已被确认。MorphQ拓宽了量子计算平台测试技术的狭窄组合,有助于为这一日益重要的领域构建可靠的软件栈。

英文摘要:

As quantum computing is becoming increasingly popular, the underlying quantum computing platforms are growing both in ability and complexity. Unfortunately, testing these platforms is challenging due to the relatively small number of existing quantum programs and because of the oracle problem, i.e., a lack of specifications of the expected behavior of programs. This paper presents MorphQ, the first metamorphic testing approach for quantum computing platforms. Our two key contributions are (i) a program generator that creates a large and diverse set of valid (i.e., non-crashing) quantum programs, and (ii) a set of program transformations that exploit quantum-specific metamorphic relationships to alleviate the oracle problem. Evaluating the approach by testing the popular Qiskit platform shows that the approach creates over 8k program pairs within two days, many of which expose crashes. Inspecting the crashes, we find 13 bugs, nine of which have already been confirmed. MorphQ widens the slim portfolio of testing techniques of quantum computing platforms, helping to create a reliable software stack for this increasingly important field.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑