论文标题
关于可区分量子编程语言的原则
On the Principles of Differentiable Quantum Programming Languages
论文作者
论文摘要
变异量子电路(VQC)或所谓的量子神经网络预计被预计是最重要的近期量子应用之一,这不仅是因为它们具有与经典神经网络的相似诺言,还因为它们在近期噪声中的杂物量量子(NISQ)机器上的可行性。在VQC应用程序的训练过程中需要梯度信息的需求刺激了量子电路的自动差异技术的发展。我们不仅在量子电路的背景下,而且针对命令性量子程序(例如,具有控件)的第一个形式化,这是受经典机器学习中可区分编程语言成功的启发。特别是,我们克服了由异国情调的量子特征(例如量子无关)造成的一些独特的困难,并提供了应用于有限环命令命令程序的分化的严格表述,其代码变换规则以及合理的逻辑来推理其正确性。此外,我们已经在OCAML中实施了代码转换,并通过分析和经验证明了计划的资源效率。我们还进行了一项案例研究,以使用控制训练VQC实例,该案例显示了我们计划的优势,而不是现有的自动差异量子,而无需控制。
Variational Quantum Circuits (VQCs), or the so-called quantum neural-networks, are predicted to be one of the most important near-term quantum applications, not only because of their similar promises as classical neural-networks, but also because of their feasibility on near-term noisy intermediate-size quantum (NISQ) machines. The need for gradient information in the training procedure of VQC applications has stimulated the development of auto-differentiation techniques for quantum circuits. We propose the first formalization of this technique, not only in the context of quantum circuits but also for imperative quantum programs (e.g., with controls), inspired by the success of differentiable programming languages in classical machine learning. In particular, we overcome a few unique difficulties caused by exotic quantum features (such as quantum no-cloning) and provide a rigorous formulation of differentiation applied to bounded-loop imperative quantum programs, its code-transformation rules, as well as a sound logic to reason about their correctness. Moreover, we have implemented our code transformation in OCaml and demonstrated the resource-efficiency of our scheme both analytically and empirically. We also conduct a case study of training a VQC instance with controls, which shows the advantage of our scheme over existing auto-differentiation for quantum circuits without controls.