qTorch

qTorch performs classical simulation of quantum circuits using tensor network (TN) contraction algorithms to simulate and analyze quantum computations and to compare TN contraction efficiency against full Hilbert-space simulation.


Key Features:

  • Tensor Network Contraction: Employs TN contraction techniques to simulate quantum circuits, including applications such as the Max-Cut problem on regular graphs using the Quantum Approximate Optimization Algorithm (QAOA).
  • Scalability and Performance: Can simulate up to 100 qubits on a single multi-core compute node.
  • Ordering Methods for Tensor Contraction: Implements two methods for determining tensor index contraction order: a method based on the tree decomposition of the line graph and a straightforward stochastic scheme useful when computing a reasonable tree decomposition is expensive.
  • Efficiency Analysis: Provides comparative analysis showing TN contraction becomes significantly more efficient relative to full Hilbert-space simulation as the treewidth of the circuit's line graph decreases, particularly for graphs with regularities of five or below.
  • Application Insights: Identifies the crossover point where TN contraction and full Hilbert-space simulation have equal computational costs to inform method selection for a given quantum circuit.

Scientific Applications:

  • Quantum circuit simulation: Simulates quantum circuits to analyze numerical behavior of quantum algorithms.
  • Max-Cut and QAOA: Applies TN contraction to study the Max-Cut problem using the Quantum Approximate Optimization Algorithm.
  • Method selection analysis: Evaluates when TN contraction or full Hilbert-space simulation is more appropriate based on circuit structure and treewidth.

Methodology:

Implements tensor network contraction programs on multi-core compute nodes, compares contraction-ordering methods including tree decomposition of the line graph and a stochastic ordering scheme, and compares TN contraction performance to full Hilbert-space simulation.

Topics

Details

License:
Apache-2.0
Maturity:
Mature
Cost:
Free of charge
Tool Type:
command-line tool
Operating Systems:
Linux, Windows, Mac
Added:
8/11/2019
Last Updated:
6/16/2020

Operations

Publications

Fried ES, Sawaya NPD, Cao Y, Kivlichan ID, Romero J, Aspuru-Guzik A. qTorch: The quantum tensor contraction handler. PLOS ONE. 2018;13(12):e0208510. doi:10.1371/journal.pone.0208510. PMID:30532242. PMCID:PMC6287880.

PMID: 30532242
PMCID: PMC6287880
Funding: - Office of Science: DE-AC02-05CH11231 - Office of Naval Research: N00014-16-1-2008 - National Science Foundation: CHE-1655187

Documentation

Downloads

Links