Qimaera:Idris中的类型安全(变分)量子编程
Qimaera: Type-safe (Variational) Quantum Programming in Idris
摘要:
变分量子算法是经典-量子混合算法,其中经典和量子计算协同工作以解决计算问题。这些算法为设计合适的程序设计语言带来了有趣的挑战。在本文中,我们介绍Qimaera,这是一组库的Idris 2程序设计语言,使程序员实现(变分)量子算法的优雅的Idris语言的全部力量与量子编程原语,我们介绍同步工作。Idris的两个关键要素使这成为可能:(1)依赖类型,允许我们实现幺正(即可逆和可控)量子操作;(2)线性,允许我们对量子操作的执行进行细粒度控制,确保遵守量子力学定律。我们证明了Qimaera是适合变分量子编程提供实现的两个最突出的变分量子算法- QAOA和VQE。据我们所知,这是这些算法在类型安全框架中的第一个实现。
英文摘要:
Variational Quantum Algorithms are hybrid classical-quantum algorithms where classical and quantum computation work in tandem to solve computational problems. These algorithms create interesting challenges for the design of suitable programming languages. In this paper we introduce Qimaera, which is a set of libraries for the Idris 2 programming language that enable the programmer to implement (variational) quantum algorithms where the full power of the elegant Idris language works in synchrony with quantum programming primitives that we introduce. The two key ingredients of Idris that make this possible are (1) dependent types which allow us to implement unitary (i.e. reversible and controllable) quantum operations; and (2) linearity which allows us to enforce fine-grained control over the execution of quantum operations that ensures compliance with the laws of quantum mechanics. We demonstrate that Qimaera is suitable for variational quantum programming by providing implementations of the two most prominent variational quantum algorithms -- QAOA and VQE. To the best of our knowledge, this is the first implementation of these algorithms that has been achieved in a type-safe framework.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。