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.0.tar.gz (32.7 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.0-py3-none-any.whl (42.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tensor_network_code-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b707e6e4fd584ff135682021470c309a1e0df7697a88d2e6f8dc606883fbac26
MD5 d2cc8d2e9e0e57e1c019c84fa0fa7cf4
BLAKE2b-256 29f49a4889b389a89c70a9e3d50ce5ee50a75a6a763e6d826cde300e8d63de57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tensor_network_code-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0b91378e75695ab29deff31f42aabbb248bf9f3ef747a5381fc459ead2d06be
MD5 bd47b60ee635cd6a46593aa6d676fcfa
BLAKE2b-256 d6e972b49f6ffac663042cacb89bcc36fbce762f7afd359577d9e5462543dd1c

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