Generating contraction orders and perform numerical contractions for arbitrary tensor networks
Since this package has not been upload to pypi, thus you need to install it manually. Firstly you need clone this repository by
git clone https://github.com/Fanerst/artensor.git
Before installing this package, you may need to refer the dependence requirements listed in requirements.txt
.
Then go to the main directory and
pip install .
If you want to make it editable while using it as a package, you may install it as editable model
pip install -e .
Please refer the examples/sycamore.ipynb
for a detailed example. This example shows how to use this package to do full-amplitude and sparse-state simulation of the Sycamore circuit with 30 qubits and 14 cycles.
Please kindly cite the following paper if you use this package as part of you research.
- Feng Pan, and Pan Zhang, "Simulation of Quantum Circuits Using the Big-Batch Tensor Network Method." Phys. Rev. Lett. 128, 030501 (2022).
- Gleb Kalachev, Pavel Panteleev, Man-Hong Yung, "Multi-Tensor Contraction for XEB Verification of Quantum Circuits." arxiv:2108.05665.
- Feng Pan, Keyang Chen, and Pan Zhang, "Solving the Sampling Problem of the Sycamore Quantum Circuits." Phys. Rev. Lett. 129, 090502.
- Feng Pan, Hanfeng Gu, Lvlin Kuang, Bing Liu, Pan Zhang, "Efficient Quantum Circuit Simulation by Tensor Network Methods on Modern GPUs." arxiv:2310.03978.