一句话:开发量子变异测试工具 QMutPy,为 Qiskit 量子程序提供量子门与测量变异算子并初步验证有效性。
量子程序测试缺乏成熟的知识与技术,难以有效评估量子程序测试质量。论文在语法等价量子门的定义基础上,基于开源变异测试工具 MutPy 开发了 QMutPy,面向 IBM Qiskit 中的量子算法与应用。工具设计并实现了针对量子比特测量和量子门的变异算子,可自动生成变异体。作者在 11 个真实 Qiskit 量子程序上开展初步研究,表明 QMutPy 是有效的量子变异测试工具,并能揭示当前量子测试的现状。QMutPy 已公开。
There is an inherent lack of knowledge and technology to test a quantum program properly. In this paper, building on the definition of syntactically equivalent quantum gates, we describe our efforts in developing a tool, coined QMutPy, leveraging the well-known open-source mutation tool MutPy. We further discuss the design and implementation of QMutPy, and the usage of a novel set of mutation operators that generate mutants for qubit measurements and gates. To evaluate QMutPy’s performance, we conducted a preliminary study on 11 real quantum programs written in the IBM’s Qiskit library. QMutPy has proven to be an effective quantum mutation tool, providing insight into the current state of quantum tests. QMutPy is publicly available at https://github.com/danielfobooss/mutpy. Tool demo: https://youtu.be/fC4tOY5trqc.