qTorch: The quantum tensor contraction handler

被引:28
作者
Fried, E. Schuyler [1 ]
Sawaya, Nicolas P. D. [1 ,2 ]
Cao, Yudong [1 ]
Kivlichan, Ian D. [1 ]
Romero, Jhonathan [1 ]
Aspuru-Guzik, Alan [1 ,3 ]
机构
[1] Harvard Univ, Dept Chem & Chem Biol, Cambridge, MA 02138 USA
[2] Intel Corp, Intel Labs, Santa Clara, CA USA
[3] Canadian Inst Adv Res, Toronto, ON, Canada
关键词
CLASSICAL SIMULATION; CIRCUITS; COMPUTATION; NOISE;
D O I
10.1371/journal.pone.0208510
中图分类号
O [数理科学和化学]; P [天文学、地球科学]; Q [生物科学]; N [自然科学总论];
学科分类号
07 ; 0710 ; 09 ;
摘要
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. For a nontrivial subset of these quantum circuits, 50 to 100 qubits can easily be simulated on a single compute node.
引用
收藏
页数:20
相关论文
共 59 条
[1]   Improved simulation of stabilizer circuits [J].
Aaronson, S ;
Gottesman, D .
PHYSICAL REVIEW A, 2004, 70 (05) :052328-1
[2]   Fault-tolerant quantum computation with long-range correlated noise [J].
Aharonov, D ;
Kitaev, A ;
Preskill, J .
PHYSICAL REVIEW LETTERS, 2006, 96 (05)
[3]   Approximation Algorithms for Treewidth [J].
Amir, Eyal .
ALGORITHMICA, 2010, 56 (04) :448-479
[4]  
[Anonymous], 2014, LINUX J
[5]  
[Anonymous], 1983, STATES EFFECTS OPERA
[6]  
[Anonymous], 2014, ARXIV14024467
[7]  
[Anonymous], 2016, ARXIV160107195
[8]  
[Anonymous], 2016, ARXIV161208091
[9]  
[Anonymous], The nlopt nonlinear-optimization package
[10]  
[Anonymous], 2017, BREAKING QUANTUM SWA