This repository contains the source code used to generate the data for figure 9, 10 and 11 of the paper Tensor networks for $p$-spin models by Benjamin Lanthier, Jeremy Côté and Stefanos Kourtis.
Python 3.9.6 was used for the numerical simulations in the paper. The Python packages needed to run this code :
- numpy
- igraph
- quimb
- cotengra
- matplotlib (to visualize tensor networks)
Those packages (with the version used in the simulations) are in the requirements.txt
. You can just build the Python virtual environment by using the following commands:
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip --no-index
pip install -r requirements.txt --no-index