Related Experiment Video
Updated: Feb 1, 2026

Gradient Echo Quantum Memory in Warm Atomic Vapor
Published on: November 11, 2013
qTorch: The quantum tensor contraction handler
E Schuyler Fried1, Nicolas P D Sawaya1,2, Yudong Cao1
1Department of Chemistry and Chemical Biology, Harvard University, Cambridge, MA, United States of America.
Abstract:
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.
Related Concept Videos
Quantum Numbers
Inertia Tensor
The diagonal components of the inertia tensor matrix represent the moments of inertia concerning the principal axes of the object. These primary axes are defined as the axes where the object experiences the least...
The Quantum-Mechanical Model of an Atom
Muscle Contraction
Muscle Contraction
Smooth Muscle Contraction
The onset of contraction is triggered by an increase in calcium ions within the sarcoplasm, similar to the process in striated muscle. However, smooth muscles have a relatively smaller reservoir of the sarcoplasmic...

