Quantum TEA's python tensor network library
Project description
qtealeaves
The qtealeaves library of Quantum TEA contains tensor network representation as
python classes, e.g., MPS, TTN, LPTN, and TTO. qtealeaves is the API for building
quantum models in Quantum TEA and has for example a single-tensor update ground state
search for TTNs. Moreover, qtealeaves is backbone for running quantum circuits via
Quantum matcha TEA and the frontend for the fortran backend running Quantum Green TEA,
i.e., solving the Schrödinger equation.
Documentation
Here
is the documentation. The documentation can also be built locally via sphinx.
Building the documentation requires sphinx, sphinx-gallery, and sphinx_rtd_theme. These dependencies can be installed via pip install .[docs] after cloning the repository.
License
The project qtealeaves is hosted at the repository
https://baltig.infn.it/quantum_tea_leaves/py_api_quantum_tea_leaves.git,
and is licensed under the following license:
The license applies to the files of this project as indicated in the header of each file, but not its dependencies.
Installation
Independent of the use-case, you have to install the dependencies. Then, there are the options using it as a stand-alone package, within quantum matcha TEA, or for quantum green TEA.
Local installation via pip
The package is available via PyPi and pip install qtealeaves.
After cloning the repository, an local installation via pip is
also possible via pip install ..
Dependencies
The python dependencies can be found in the pyproject.toml and are required independently of the following use-cases.
The qtealeaves package comes with the abstract definition of the tensor
required for our tensor networks as well as with a dense tensor based on
numpy and cupy. This tensor allows one to run simulations without symmetry
on CPU and GPU. Other tensor for symmetries or using pytorch instead of
numpy/cupy will become available in the future via Quantum Red TEA (qredtea).
Stand-alone package
If you are looking to explore small exact diagonalization examples, want to run a single-tensor update ground state search with TTNs, or have TN-states on files to be post-processed, you are ready to go.
qmatchatea simulations
Quantum circuit simulations via qmatchatea require both qredtea and qtealeaves
as a dependency. Follow the instructions contained in the qmatchatea repository.
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 qtealeaves-1.7.32.tar.gz.
File metadata
- Download URL: qtealeaves-1.7.32.tar.gz
- Upload date:
- Size: 489.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c8a22f81cc4f8a6ae79f81233b9812522492a86c15595880ea1f8c4f7aaddd7
|
|
| MD5 |
a1f5551e2e40fa63e587fd4ecaa0a00d
|
|
| BLAKE2b-256 |
65b994bc0fd66a41f8ece7e1db97d1d5d79bb5f5035de49b6284068b84d93cf3
|
File details
Details for the file qtealeaves-1.7.32-py3-none-any.whl.
File metadata
- Download URL: qtealeaves-1.7.32-py3-none-any.whl
- Upload date:
- Size: 569.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13705b2857377079517993c78cc5bfb6f6cf140e5191a8577a79aa5d14ce3ddf
|
|
| MD5 |
5af0781fb988998cecc4e03f2119e5cb
|
|
| BLAKE2b-256 |
8b56487132ec555cf16956162aaa3a504c3726981135ab8dbc7319576f8fa4f1
|