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

通过强化学习实现乘积公式哈密顿量模拟的编译

Compilation of product-formula Hamiltonian simulation via reinforcement learning

Institute for Theoretical Physics, University of Innsbruck(因斯布鲁克大学理论物理研究所);Instituut-Lorentz, Universiteit Leiden(莱顿大学洛伦兹研究所);LIACS, Universiteit Leiden(莱顿大学莱顿高级计算机科学研究所);Google Quantum AI(谷歌量子人工智能)

Lea M. Trenkwalder, Eleanor Scerri, Thomas E. O'Brien, Vedran Dunjko

AI总结:

针对Trotter化哈密顿量模拟中操作排序影响编译效果的问题,提出顺序无关量子电路编译新问题并证明其NP难,采用强化学习优化排序,门数量较次优方法提升12%、较朴素启发式提升50%,且具备跨问题泛化能力。

摘要:

哈密顿量模拟被认为是量子计算机有望展现量子优势的首批任务之一。Trotter化(即特罗特分解)是最常用的哈密顿量模拟方法之一,它利用近似式$e^{i\sum_jA_j}\sim \prod_je^{iA_j}$及其高阶校正实现模拟。但该方法留下了操作顺序的问题——也就是对$j$的乘积项的排序,已知这一排序会影响近似质量。在部分场景中,排序由最小化近似误差的需求固定;当不存在这一约束时,我们提出可通过选择排序来优化电路向原生量子架构的编译过程。这引出了一个新的编译问题——顺序无关量子电路编译,我们证明其在最坏情况下属于NP难问题。由于不存在易于计算的精确解,我们转而采用启发式编译优化方法。鉴于编译任务的序列特性,我们重点研究强化学习方法,并将其与模拟退火、蒙特卡洛树搜索进行对比。实验中,有两种方法的表现优于朴素启发式方法,而强化学习的表现明显优于所有其他方法:在门数量指标上,强化学习较次优方法提升约12%,较朴素启发式方法提升约50%。我们进一步测试了强化学习在不同编译问题实例间的泛化能力,发现单个智能体即可解决整类问题族。这证明了机器学习技术能够为顺序无关量子编译任务提供助力。

英文摘要:

Hamiltonian simulation is believed to be one of the first tasks where quantum computers can yield a quantum advantage. One of the most popular methods of Hamiltonian simulation is Trotterization, which makes use of the approximation $e^{i\sum_jA_j}\sim \prod_je^{iA_j}$ and higher-order corrections thereto. However, this leaves open the question of the order of operations (i.e. the order of the product over $j$, which is known to affect the quality of approximation). In some cases this order is fixed by the desire to minimise the error of approximation; when it is not the case, we propose that the order can be chosen to optimize compilation to a native quantum architecture. This presents a new compilation problem -- order-agnostic quantum circuit compilation -- which we prove is NP-hard in the worst case. In lieu of an easily-computable exact solution, we turn to methods of heuristic optimization of compilation. We focus on reinforcement learning due to the sequential nature of the compilation task, comparing it to simulated annealing and Monte Carlo tree search. While two of the methods outperform a naive heuristic, reinforcement learning clearly outperforms all others, with a gain of around 12% with respect to the second-best method and of around 50% compared to the naive heuristic in terms of the gate count. We further test the ability of RL to generalize across instances of the compilation problem, and find that a single learner is able to solve entire problem families. This demonstrates the ability of machine learning techniques to provide assistance in an order-agnostic quantum compilation task.

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

↑