Skip to content

About

Numerical exercises for an introductory course to tensor networks

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

TensorNetworkLecture

Numerical exercises for an introductory course to tensor networks.

Install

Import Cytnx, see https://cytnx-dev.github.io/Cytnx/ and Cytnx-dev/Cytnx#1189

python -m pip install -U --pre --extra-index-url https://pypi.anaconda.org/cytnx-nightly-wheels/simple cytnx-cuda

or

pixi add --pypi cytnx-cuda --index https://pypi.anaconda.org/cytnx-nightly-wheels/simple

Advanced install

You can compile and install Cytnx from source to get the newest version. Follow the guide in https://cytnx-dev.github.io/Cytnx/stable/adv_install.html

Import cytnx in Python by running

import sys
sys.path.insert(0,'path/to/Cytnx_lib') # set to where you installed Cytnx
import cytnx

Conda install

Alternatively, you can install the conda package of Cytnx, see https://cytnx-dev.github.io/Cytnx/ However, this version is currently outdated. The programs in this repository might not work on this older build.

Installation with conda:

conda config --add channels conda-forge
conda create --channel conda-forge --name cytnx python=3.9 _openmp_mutex=*=*_llvm
conda activate cytnx
conda install -c kaihsinwu cytnx
conda install jupyter matplotlib

To import:

import cytnx

Ising model

Run the script Ising.ipynb in a python notebook, with the correcte conda environment activated.

About

Numerical exercises for an introductory course to tensor networks

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages