Skip to content
physics meets neural networks
Branch: master
Clone or download
Latest commit b9d451f Nov 23, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs update docs Feb 23, 2018
gpu update docs Feb 23, 2018
notebooks debug: remove pytorch intro and 0.4 pytorch Jul 16, 2018
parallelism update docs Feb 23, 2018
solutions rm empty Nov 23, 2018
.gitignore fix a download bug, and add solutions Feb 21, 2018
LICENSE restructure Feb 7, 2018 update Mar 6, 2018
env_test.ipynb update env_test Feb 21, 2018

Deep Learning and Quantum Many-Body Physics - Hands on Session

Table of Contents

We have prepaired four examples

  • Computation Graphs and Back Propagation (online, solution)
  • Normalization flow for sampling (online, solution)
  • Restricted Boltzmann Machine for image restoration (online, solution)
  • Deep Neural Network as a Quantum Wave Function Ansatz (online)

They have been uploaded to both Google drive and notebooks folder in this repository. Have fun!


You may use either local or online accesses to our python notebooks.

If you are not using an Nvidia GPU or its driver are not properly configured, online access is recommended, otherwise you may loss some fun in this session.


Requires a Linux or OSX operating system (required by pytorch).

Set up your python environment

  • python 3.6
  • install python libraries numpy, matplotlib and ipython
pip install numpy matplotlib ipython
  • install PyTorch following installation guide.
    • select CUDA 8 if you have an Nvidia GPU with properly configured driver
    • select CUDA None if your don't

Clone this repository to your local host. Change directory to project home, check your installation by typing ipython notebook env_test.ipynb and run this test script.


Online means you can try CUDA programming without having an local NVIDIA GPU.

  1. Sign up and sign in Google drive
  2. Connect Google drive with Google Colaboratory
    • right click on google drive page
    • More
    • Connect more apps
    • search "Colaboratory" and "CONNECT"
  3. Open the following online notebook link
  4. Setup GPU following instructions in above notebook
  5. You can make a copy of notebook to your google drive (File Menu) to save your edits.


  • lecture notes: docs/LectureNoteonML.pdf
  • hands on slides: docs/ML-handson.pdf


You can’t perform that action at this time.