Quantum computers promise to perform certain computations exponentially faster than any classical device. Precise control over their physical implementation and proper shielding from unwanted interactions with the environment become more difficult as the space/time volume of the computation grows. Code optimization is thus crucial in order to reduce resource requirements to the greatest extent possible. Besides manual optimization, previous work has adapted classical methods such as constant-folding and common subexpression elimination to the quantum domain. However, such classically-inspired methods fail to exploit certain optimization opportunities across subroutine boundaries, limiting the effectiveness of software reuse. To address this insufficiency, we introduce an optimization methodology which employs annotations that describe how subsystems are entangled in order to exploit these optimization opportunities. We formalize our approach, prove its correctness, and present benchmarks: Without any prior manual optimization, our methodology is able to reduce, e.g., the qubit requirements of a 64-bit floating-point subroutine by $34\times$.
Complete Relational Logic for Infinite-Dimensional Quantum Programs with Unbounded Assertions
Max-Planck Institute for Security and Privacy (MPI-SP)(马克斯·普朗克安全与隐私研究所);IMDEA Software Institute(IMDEA软件研究所);Key Laboratory of System Software (Chinese Academy of Sciences)(中国科学院系统软件重点实验室);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学);Eidgenössische Technische Hochschule (ETH) Zürich(苏黎世联邦理工学院);Ludwig-Maximilians-Universität München(慕尼黑大学);Munich Center for Quantum Science and Technology (MCQST)(慕尼黑量子科学与工程中心)
本文发展了量子程序的验证方法学,其贡献有两个方面:1。Sharir,Pnueli and Hart [SIAM J. Comput. 13(1984)292 - 314]提出了一种证明概率程序性质的一般方法,该方法用马尔可夫链对概率程序进行建模,并将关于输出分布的断言扩展为关于所有中间分布的不变断言。他们的方法本质上是经典弗洛伊德归纳断言方法的概率推广。在本文中,我们考虑的量子程序模型的量子马尔可夫链的超算子定义。它表明,Sharir-Pnueli-Hart方法可以优雅地推广到量子程序,利用薛定谔-海森堡对偶量子态和可观测量。特别地,建立了量子程序的Sharir-Pnueli-Hart验证方法的完备性定理。2.正如完备性定理所指出的,Sharir-Pnueli-Hart方法原则上对于验证量子程序的所有性质都是有效的,这些性质可以用厄米算符(可观测量)来表示。但由于验证过程中涉及的计算复杂,在许多实际应用中并不可行。对于有限维状态空间的情形,我们利用超算子的矩阵表示和矩阵的Jordan分解,找到了一种比Sharir-Pnueli-Hart方法简单得多的量子程序验证方法.特别是,这种方法使我们能够很容易地计算平均运行时间,甚至可以分析量子程序在有限维状态空间中的一些有趣的长期行为。
Efficient Formal Verification of Quantum Error Correcting Programs
Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学);School of Informatics, University of Edinburgh(爱丁堡大学信息学院);University of Technology Sydney(悉尼科技大学)