arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2311.12772cs.PLquant-ph
收藏

量子计算中控制流纠错的 T-复杂度代价

The T-Complexity Costs of Error Correction for Control Flow in Quantum Computation

Charles Yuan, Michael Carbin

AI总结:

本文针对量子控制流导致纠错下 T-复杂度多项式增长的问题,提出成本模型与 Spire 程序级优化,在 11 个基准上恢复渐近效率,并显著优于电路优化器。

摘要:

许多量子算法需要使用量子纠错来克服物理量子比特固有的不可靠性。然而,纠错带来了一种独特的性能瓶颈,称为 T-复杂度,它可能使算法作为量子程序的实现比在理想化硬件上运行得更慢。在本工作中,我们发现用于控制流的编程抽象(例如 quantum if-statement)会使程序的 T-复杂度产生多项式级增长。如果不加以缓解,这种减速可能削弱量子算法的计算优势。为了支持对控制流成本进行推理,我们提出了一种成本模型,开发者可以用它准确分析程序的 T-复杂度,并定位减速来源。我们还提出了一组程序级优化,开发者可以用它们重写程序以降低其 T-复杂度,使用该成本模型预测优化后程序的 T-复杂度,然后通过一种直接策略将其编译为高效电路。我们在 Spire(Tower 量子编译器的扩展)中实现了这些程序级优化。通过一组使用控制流的 11 个基准测试程序,我们证明该成本模型是准确的,并且 Spire 的优化能够恢复渐近高效的程序,也就是说,它们在纠错下的运行时 T-复杂度等于其在理想化硬件上的时间复杂度。我们的结果表明,在程序被编译为电路之前对其进行优化,可能比先将程序编译为低效电路、然后调用先前工作中的量子电路优化器获得更好的结果。对于我们的基准测试,在测试的 8 个电路优化器中,只有 2 个能够恢复具有渐近高效 T-复杂度的电路。与这 2 个优化器相比,Spire 使用的编译时间少 54 倍至 2400 倍。

英文摘要:

Numerous quantum algorithms require the use of quantum error correction to overcome the intrinsic unreliability of physical qubits. However, error correction imposes a unique performance bottleneck, known as T-complexity, that can make an implementation of an algorithm as a quantum program run more slowly than on idealized hardware. In this work, we identify that programming abstractions for control flow, such as the quantum if-statement, can introduce polynomial increases in the T-complexity of a program. If not mitigated, this slowdown can diminish the computational advantage of a quantum algorithm. To enable reasoning about the costs of control flow, we present a cost model that a developer can use to accurately analyze the T-complexity of a program and pinpoint the sources of slowdown. We also present a set of program-level optimizations, that a developer can use to rewrite a program to reduce its T-complexity, predict the T-complexity of the optimized program using the cost model, and then compile it to an efficient circuit via a straightforward strategy. We implement the program-level optimizations in Spire, an extension of the Tower quantum compiler. Using a set of 11 benchmark programs that use control flow, we show that the cost model is accurate, and that Spire's optimizations recover programs that are asymptotically efficient, meaning their runtime T-complexity under error correction is equal to their time complexity on idealized hardware. Our results show that optimizing a program before it is compiled to a circuit can yield better results than compiling the program to an inefficient circuit and then invoking a quantum circuit optimizer found in prior work. For our benchmarks, only 2 of 8 tested circuit optimizers recover circuits with asymptotically efficient T-complexity. Compared to these 2 optimizers, Spire uses 54x to 2400x less compile time.

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

↑