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:
- If you have not got
uvinstalled, follow the instructions to install it. - Run
uv syncto 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 Labsync: sync the code in notebooks to thetensor_networkpackageformat: format the code in notebooks- Checking: use ruff linter to check code
check_tensor_network: check the exported code intensor_networkpackagecheck: check code in.check_all: check code in.andtensor_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
nbdevto export useful code from notebooks totensor_networkpackage for reusability.
Acknowledgements
- Big thanks to Prof. Ran for the course
- Thanks to Gemini 2.0 for transcribing a lot of equations
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec1597d6a4a741067e575d03f54cdbf2d05644e5a1c30b81632df3b42893b56e
|
|
| MD5 |
152575794ef81cd938683ee375986555
|
|
| BLAKE2b-256 |
e1ce5d57cf2d940464ba56c5eca77c4b11adf37875c82d535db83dd7bfb5f13a
|
File details
Details for the file tensor_network_code-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tensor_network_code-0.1.1-py3-none-any.whl
- Upload date:
- Size: 42.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40985b6f17afe6937959ff0f020922a8f6ab745b7ce40e7ba16f7ab92dcc200d
|
|
| MD5 |
68e96997f7a083db15423462aac5245b
|
|
| BLAKE2b-256 |
0c4c93607e61318f0fda4126533cbcada7ebb6bc6ee43db2c9d5ef499395e22e
|