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

qTorch:量子张量收缩

qTorch: The Quantum Tensor Contraction Handler

E. Schuyler Fried, Nicolas P. D. Sawaya, Yudong Cao, Ian D. Kivlichan, Jhonathan Romero, Alán Aspuru-Guzik

摘要:

量子计算的经典模拟对于研究量子算法的数值行为是必要的,因为还没有一个大型可行的量子计算机来进行数值测试。张量网络(TN)收缩是一种算法方法,可以有效地模拟一些量子线路,通常大大降低了模拟整个希尔伯特空间的方法的计算成本。在这项研究中,我们实现了一个张量网络收缩程序模拟量子线路使用多核计算节点。我们展示了使用量子近似优化算法(QAOA)在3到7正则图上的最大割问题的模拟结果,成功地模拟了多达100个量子比特。我们测试了两种不同的方法来生成张量索引收缩的排序:一种是基于线图的树分解,而另一种是使用直接的随机方案生成排序。通过对QAOA电路实例的研究,我们得到了预期的结果:随着量子线路线图树宽的减小,TN收缩比模拟整个Hilbert空间的效率明显提高。在这项工作中的结果表明,张量收缩方法是优越的,只有当模拟最大切割/QAOA的图形约5和以下。洞察到这一点的相等计算成本有助于确定哪种模拟方法将更有效地为一个给定的量子线路。只有当计算合理的树分解的时间非常昂贵时,随机收缩方法才优于基于线图的方法。最后,我们发布了我们的软件包,qTorch(量子TensOR收缩图),用于一般的量子线路模拟。

英文摘要:

Classical simulation of quantum computation is necessary for studying the numerical behavior of quantum algorithms, as there does not yet exist a large viable quantum computer on which to perform numerical tests. Tensor network (TN) contraction is an algorithmic method that can efficiently simulate some quantum circuits, often greatly reducing the computational cost over methods that simulate the full Hilbert space. In this study we implement a tensor network contraction program for simulating quantum circuits using multi-core compute nodes. We show simulation results for the Max-Cut problem on 3- through 7-regular graphs using the quantum approximate optimization algorithm (QAOA), successfully simulating up to 100 qubits. We test two different methods for generating the ordering of tensor index contractions: one is based on the tree decomposition of the line graph, while the other generates ordering using a straight-forward stochastic scheme. Through studying instances of QAOA circuits, we show the expected result that as the treewidth of the quantum circuit's line graph decreases, TN contraction becomes significantly more efficient than simulating the whole Hilbert space. The results in this work suggest that tensor contraction methods are superior only when simulating Max-Cut/QAOA with graphs of regularities approximately five and below. Insight into this point of equal computational cost helps one determine which simulation method will be more efficient for a given quantum circuit. The stochastic contraction method outperforms the line graph based method only when the time to calculate a reasonable tree decomposition is prohibitively expensive. Finally, we release our software package, qTorch (Quantum TensOR Contraction Handler), intended for general quantum circuit simulation.

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

↑