Code Monkey home page Code Monkey logo

mps-rnn's Introduction

From Tensor Network Quantum States to Tensorial Recurrent Neural Networks

Paper link: arXiv:2206.12363 | Phys. Rev. Research 5, L032001 (2023)

Installation

The code requires Python >= 3.9. For reference, we use Python 3.10.12. We recommend creating a fresh virtual environment before installing. Use pip install -r requirements.txt to install the dependencies.

We recommend additionally installing CUDA, cuDNN, and a CUDA-accelerated jaxlib. The recent versions of jaxlib only support CUDA 12 and cuDNN 8.9:

pip install jaxlib==0.4.28+cuda12.cudnn89 -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html

Alternatively, you may install jax and jaxlib 0.4.25, which support CUDA 11 and cuDNN 8.6:

pip install jax jaxlib==0.4.25+cuda11.cudnn86 -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html

The DMRG code in dmrg/ requires Julia >= 1.6. For reference, we use Julia 1.10.3. You need to activate the environment dmrg/Project.toml when running it. It includes MKL, which provides acceleration on Intel CPUs.

Usage

vmc.py trains a network. It will automatically read checkpoints when doing the hierarchical initialization (HI). args_parser.py contains all the configurations.

reproduce_hi.sh contains commands for the whole procedure of HI. plot_hi.py is invoked at the end to plot the energy during training.

run_tests.sh contains unit tests for the ansatzes.

mps-rnn's People

Contributors

wdphy16 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.