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

高效量子反计算的模块化综合

Modular Synthesis of Efficient Quantum Uncomputation

Hristo Venev, Timon Gehr, Dimitar Dimitrov, Martin Vechev

AI总结:

针对现有量子反计算方法无法适配高表达量子编程语言的问题,提出基于支持反计算的中间表示及模块化综合算法的方案,实现端到端工具,可处理更复杂程序且效率具竞争力。

摘要:

量子编程的一个核心挑战是反计算(uncomputation):即量子比特的可逆释放。尽管近年来在自动化反计算方面取得了诸多进展,但现有最先进的方法仍不足以应对当今表达能力丰富的量子编程语言。一个核心原因是这些方法基于原始量子电路运行,而量子程序表达的计算超出了电路范畴,例如它们可以描述通过反计算和伴随(adjoints)递归定义的电路族。\n 本文提出了首个模块化自动方法,可为表达能力丰富的量子程序综合出正确且高效的反计算方案。我们的方法基于两项核心技术贡献:(i)一种中间表示(IR),既能表达丰富的量子程序,又支持反计算操作;(ii)基于该中间表示的模块化算法,用于综合反计算和伴随操作。\n 我们已构建了该方法的完整端到端实现,包括中间表示和综合算法的实现,以及从Silq编程语言的一个高表达能力子集到我们中间表示的翻译、以及从中间表示生成电路的功能。我们的实验评估表明,该方法可以处理现有反计算方法能力范围之外的程序,同时在它们可处理的基准测试上表现具有竞争力。更广泛地说,我们证明了可以在不牺牲效率的前提下,受益于高级量子语言提供的更强表达能力和安全性。

英文摘要:

A key challenge of quantum programming is uncomputation: the reversible deallocation of qubits. And while there has been much recent progress on automating uncomputation, state-of-the-art methods are insufficient for handling today's expressive quantum programming languages. A core reason is that they operate on primitive quantum circuits, while quantum programs express computations beyond circuits, for instance, they can capture families of circuits defined recursively in terms of uncomputation and adjoints. In this paper, we introduce the first modular automatic approach to synthesize correct and efficient uncomputation for expressive quantum programs. Our method is based on two core technical contributions: (i) an intermediate representation (IR) that can capture expressive quantum programs and comes with support for uncomputation, and (ii) modular algorithms over that IR for synthesizing uncomputation and adjoints. We have built a complete end-to-end implementation of our method, including an implementation of the IR and the synthesis algorithms, as well as a translation from an expressive fragment of the Silq programming language to our IR and circuit generation from the IR. Our experimental evaluation demonstrates that we can handle programs beyond the capabilities of existing uncomputation approaches, while being competitive on the benchmarks they can handle. More broadly, we show that it is possible to benefit from the greater expressivity and safety offered by high-level quantum languages without sacrificing efficiency.

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

↑