arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2103.09069cs.SEcs.PLquant-ph
收藏

识别量子程序中的错误模式

Identifying Bug Patterns in Quantum Programs

Pengzhan Zhao, Jianjun Zhao, Lei Ma

摘要:

错误模式是错误的代码习惯用法或糟糕的编码实践,已被证明一次又一次地失败,通常是由于误解了程序设计语言的功能,使用错误的设计模式,或共享共同行为的简单错误。本文对量子程序设计语言Qiskit中的一些错误模式进行了识别和分类,并简要讨论了如何消除或预防这些错误模式。我们将这项研究作为第一步,为调试和测试量子程序提供基础。

英文摘要:

Bug patterns are erroneous code idioms or bad coding practices that have been proved to fail time and time again, which are usually caused by the misunderstanding of a programming language's features, the use of erroneous design patterns, or simple mistakes sharing common behaviors. This paper identifies and categorizes some bug patterns in the quantum programming language Qiskit and briefly discusses how to eliminate or prevent those bug patterns. We take this research as the first step to provide an underlying basis for debugging and testing quantum programs.

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

↑