How tsuyoshiokubo/introduction-to-tensor-network works
Project type and purpose
• This is an educational scientific‐computing repository (“Introduction to Tensor Networks”) designed to teach 2D Ising model simulations via:
• Monte Carlo (Exercise 0)
• Tensor Renormalization Group (Exercise 1)
• Infinite Time‐Evolving Block Decimation (Exercise 2)
• Structure: Jupyter notebooks orchestrate experiments, Python library modules implement algorithms, and data files capture reference (“exact_output”) and experiment results (“outputs”).
File structure
• Top‐level:
• .gitignore, README.md, PDFs of slides
• Exercise/
– Ex*.ipynb (notebooks for each exercise)
– Ising_lib.py, TRG_lib.py, classical_iTEBD_lib.py (core algorithm modules)
– exact_output/ (precomputed reference data)
– outputs/ (directories for each method’s generated data)
• Pattern: modular libraries provide core routines; notebooks import them, read inputs, run simulations, and write outputs.
Key insights from README
• Each notebook is self‐contained but depends on the corresponding library file.
• Notebooks are intended for Google Colab, so there is also an implied external environment (Jupyter/Colab + standard Python scientific stack).