Cargando…
qTorch: The quantum tensor contraction handler
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...
Autores principales: | , , , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Public Library of Science
2018
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6287880/ https://www.ncbi.nlm.nih.gov/pubmed/30532242 http://dx.doi.org/10.1371/journal.pone.0208510 |
_version_ | 1783379700121337856 |
---|---|
author | Fried, E. Schuyler Sawaya, Nicolas P. D. Cao, Yudong Kivlichan, Ian D. Romero, Jhonathan Aspuru-Guzik, Alán |
author_facet | Fried, E. Schuyler Sawaya, Nicolas P. D. Cao, Yudong Kivlichan, Ian D. Romero, Jhonathan Aspuru-Guzik, Alán |
author_sort | Fried, E. Schuyler |
collection | PubMed |
description | 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. |
format | Online Article Text |
id | pubmed-6287880 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2018 |
publisher | Public Library of Science |
record_format | MEDLINE/PubMed |
spelling | pubmed-62878802018-12-28 qTorch: The quantum tensor contraction handler Fried, E. Schuyler Sawaya, Nicolas P. D. Cao, Yudong Kivlichan, Ian D. Romero, Jhonathan Aspuru-Guzik, Alán PLoS One Research Article 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. Public Library of Science 2018-12-10 /pmc/articles/PMC6287880/ /pubmed/30532242 http://dx.doi.org/10.1371/journal.pone.0208510 Text en © 2018 Fried et al http://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. |
spellingShingle | Research Article Fried, E. Schuyler Sawaya, Nicolas P. D. Cao, Yudong Kivlichan, Ian D. Romero, Jhonathan Aspuru-Guzik, Alán qTorch: The quantum tensor contraction handler |
title | qTorch: The quantum tensor contraction handler |
title_full | qTorch: The quantum tensor contraction handler |
title_fullStr | qTorch: The quantum tensor contraction handler |
title_full_unstemmed | qTorch: The quantum tensor contraction handler |
title_short | qTorch: The quantum tensor contraction handler |
title_sort | qtorch: the quantum tensor contraction handler |
topic | Research Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6287880/ https://www.ncbi.nlm.nih.gov/pubmed/30532242 http://dx.doi.org/10.1371/journal.pone.0208510 |
work_keys_str_mv | AT friedeschuyler qtorchthequantumtensorcontractionhandler AT sawayanicolaspd qtorchthequantumtensorcontractionhandler AT caoyudong qtorchthequantumtensorcontractionhandler AT kivlichaniand qtorchthequantumtensorcontractionhandler AT romerojhonathan qtorchthequantumtensorcontractionhandler AT aspuruguzikalan qtorchthequantumtensorcontractionhandler |