一种基于自动机的量子电路验证与Bug搜寻框架(技术报告)
An Automata-based Framework for Verification and Bug Hunting in Quantum Circuits (Technical Report)
AI总结:
本文提出一种基于树自动机的量子电路验证与Bug搜寻新范式,通过代数表示量子态并实现量子门语义,在大型电路验证和Bug捕获上展现出高度可扩展性,且建立了量子程序验证与自动机理论的联系。
摘要:
我们引入了一种分析和寻找量子电路bug的新范式。在我们的方法中,问题由三元组 $\{P\}\,C\,\{Q\}$ 给出,问题是,给定电路 $C$ 输入上的一组量子态 $P$,输出上的量子态集合是否等于(或包含于)集合 $Q$。虽然这不适合指定例如量子电路的功能正确性,但它足以检测量子电路中的许多bug。我们提出了一种基于树自动机的技术,以紧凑地表示量子态集合,并开发了转换器(transformers)来实现量子门在此表示上的语义。我们的技术使用量子态的代数表示进行计算,避免了使用浮点数工作的不准确性。我们在原型工具中实现了所提出的方法,并针对文献中的各种基准评估了其性能。评估表明我们的方法具有相当的可扩展性,例如,我们成功验证了一个包含40个量子比特和141,527个门的大型电路,或者在一个包含320个量子比特和1,758个门的电路中捕获了注入的bug,而我们比较的所有其他工具均告失败。此外,我们的工作建立了量子程序验证与自动机之间的联系,为在量子计算世界中利用自动机理论和基于自动机的验证的丰富性开辟了新的可能性。
英文摘要:
We introduce a new paradigm for analysing and finding bugs in quantum circuits. In our approach, the problem is given by a triple $\{P\}\,C\,\{Q\}$ and the question is whether, given a set $P$ of quantum states on the input of a circuit $C$, the set of quantum states on the output is equal to (or included in) a set $Q$. While this is not suitable to specify, e.g., functional correctness of a quantum circuit, it is sufficient to detect many bugs in quantum circuits. We propose a technique based on tree automata to compactly represent sets of quantum states and develop transformers to implement the semantics of quantum gates over this representation. Our technique computes with an algebraic representation of quantum states, avoiding the inaccuracy of working with floating-point numbers. We implemented the proposed approach in a prototype tool and evaluated its performance against various benchmarks from the literature. The evaluation shows that our approach is quite scalable, e.g., we managed to verify a large circuit with 40 qubits and 141,527 gates, or catch bugs injected into a circuit with 320 qubits and 1,758 gates, where all tools we compared with failed. In addition, our work establishes a connection between quantum program verification and automata, opening new possibilities to exploit the richness of automata theory and automata-based verification in the world of quantum computing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。