Differentiable Programming Tensor Networks

Hai-Jun Liao, Jin-Guo Liu, Lei Wang, Tao Xiang
3/22/2019
cond-mat.str-elquant-ph

Official code: wangleiphy/tensorgrad (147 stars, Python, Apache-2.0, PyTorch, last commit 2021-05-20).

Abstract

Differentiable programming is a fresh programming paradigm which composes parameterized algorithmic components and trains them using automatic differentiation (AD). The concept emerges from deep learning but is not only limited to training neural networks.

Show full abstract

We present theory and practice of programming tensor network algorithms in a fully differentiable way. By formulating the tensor network algorithm as a computation graph, one can compute higher order derivatives of the program accurately and efficiently using AD. We present essential techniques to differentiate through the tensor networks contractions, including stable AD for tensor decomposition and efficient backpropagation through fixed point iterations. As a demonstration, we compute the specific heat of the Ising model directly by taking the second order derivative of the free energy obtained in the tensor renormalization group calculation. Next, we perform gradient based variational optimization of infinite projected entangled pair states for quantum antiferromagnetic Heisenberg model and obtain start-of-the-art variational energy and magnetization with moderate efforts. Differentiable programming removes laborious human efforts in deriving and implementing analytical gradients for tensor network programs, which opens the door to more innovations in tensor network algorithms and applications.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

Differentiable Programming Tensor Networks

14713PythonMar 4, 20195 years agoApache-2.0
automatic-differentiationpytorchtensor-networks

Similar Papers

Cite this paper

@article{liao2019differentiable,
  title  = {Differentiable Programming Tensor Networks},
  author = {Hai-Jun Liao and Jin-Guo Liu and Lei Wang and Tao Xiang},
  year   = {2019},
  eprint = {1903.09650},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1903.09650}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1903.09650.svg)](https://codeofpaper.com/paper/1903.09650)

Discussion