Skip to main content

Quantum TEA's python tensor network library

Project description

License

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.

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:

Apache License 2.0

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 requirements.txt 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 have qtealeaves as a dependency. Follow the instructions to install qmatchatea to get the right version of qtealeaves.

qgreentea simulations

If you want to use the qgreentea toolchain with TTNs and aTTNS, you need to install qtealeaves under a matching version. qgreentea provides instructions which version is compatible; see installation instructions there. qgreentea is not yet public, but it will be made public step-by-step.

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

qtealeaves-1.2.31.tar.gz (346.8 kB view details)

Uploaded Source

Built Distribution

qtealeaves-1.2.31-py3-none-any.whl (397.7 kB view details)

Uploaded Python 3

File details

Details for the file qtealeaves-1.2.31.tar.gz.

File metadata

  • Download URL: qtealeaves-1.2.31.tar.gz
  • Upload date:
  • Size: 346.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for qtealeaves-1.2.31.tar.gz
Algorithm Hash digest
SHA256 5b109d173190e7e0f4fd3437af80565f4ea4886931742b81901df196554666dd
MD5 0aec5428fa9bd564b7f49024786c42f6
BLAKE2b-256 d0eff22b9cc31e928fc82552677c6f968fd03a141f84a2443dab3f6aa471d172

See more details on using hashes here.

File details

Details for the file qtealeaves-1.2.31-py3-none-any.whl.

File metadata

  • Download URL: qtealeaves-1.2.31-py3-none-any.whl
  • Upload date:
  • Size: 397.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for qtealeaves-1.2.31-py3-none-any.whl
Algorithm Hash digest
SHA256 6ff82a688856e616bc88cb306eba1a4fe8bfad9af9a547e54074045c1270b4e2
MD5 1bff4aefbbda9b8bde26f80db0ffe1b3
BLAKE2b-256 a3e787556d5305e51ac5272a924009d638f0dc926a0f4844b077189551516c42

See more details on using hashes here.

Supported by

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