arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1810.00375quant-phcs.ET
收藏

基于断言的量子程序优化

Assertion-Based Optimization of Quantum Programs

Thomas Häner, Torsten Hoefler, Matthias Troyer

摘要:

量子计算机承诺执行某些计算的速度比任何经典设备都要快。随着计算的空间/时间量的增长,对它们的物理实现的精确控制和对与环境的不必要的交互的适当屏蔽变得更加困难。因此,为了尽可能减少资源需求,代码优化至关重要。除了手动优化,以前的工作已经适应了经典的方法,如常数折叠和共同的子表达式消除量子域。然而,这种经典的启发方法未能利用跨子程序边界的某些优化机会,限制了软件重用的有效性。为了解决这一不足,我们引入了一种优化方法,它采用注释,描述子系统是如何纠缠,以利用这些优化的机会。我们形式化了我们的方法,证明了它的正确性,并提出了基准:没有任何事先手动优化,我们的方法能够减少,例如,$34\times$的64位浮点子例程的量子位要求。

英文摘要:

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$.

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

↑