Skip to main content

Tensor Network Code

Project description

Tensor Network Notes

This repo contains my notes and code related to the course Tensor Network.

Environment Setup

This is a uv project. Setting up the environment is easy:

  1. If you have not got uv installed, follow the instructions to install it.
  2. Run uv sync to create an environment and get dependencies, including development dependencies that you need to run the code in a notebook.

Run Tools

We use poe to run tools. Available commands are:

  • lab: run Jupyter Lab
  • sync: sync the code in notebooks to the tensor_network package
  • format: format the code in notebooks
  • Checking: use ruff linter to check code
    • check_tensor_network: check the exported code in tensor_network package
    • check: check code in .
    • check_all: check code in . and tensor_network
  • precommit: run pre-commit hooks

Sample usage:

# if your shell detects venvs automatically, you can run poe directly
poe lab
# if your shell does not detect venvs automatically, you can run uv run poe directly
uv run poe lab

Contribution

Contributions are very welcome. Please file an issue or PR if you have any questions or suggestions.

A few points to note:

  • The code should primarily live in notebooks, not Python scripts. We use nbdev to export useful code from notebooks to tensor_network package for reusability.

Acknowledgements

  • Big thanks to Prof. Ran for the course
  • Thanks to Gemini 2.0 for transcribing a lot of equations

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tensor_network_code-0.1.1.tar.gz (33.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tensor_network_code-0.1.1-py3-none-any.whl (42.9 kB view details)

Uploaded Python 3

File details

Details for the file tensor_network_code-0.1.1.tar.gz.

File metadata

  • Download URL: tensor_network_code-0.1.1.tar.gz
  • Upload date:
  • Size: 33.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.2

File hashes

Hashes for tensor_network_code-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ec1597d6a4a741067e575d03f54cdbf2d05644e5a1c30b81632df3b42893b56e
MD5 152575794ef81cd938683ee375986555
BLAKE2b-256 e1ce5d57cf2d940464ba56c5eca77c4b11adf37875c82d535db83dd7bfb5f13a

See more details on using hashes here.

File details

Details for the file tensor_network_code-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tensor_network_code-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 40985b6f17afe6937959ff0f020922a8f6ab745b7ce40e7ba16f7ab92dcc200d
MD5 68e96997f7a083db15423462aac5245b
BLAKE2b-256 0c4c93607e61318f0fda4126533cbcada7ebb6bc6ee43db2c9d5ef499395e22e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page