Skip to main content

Quantum TEA's python tensor library beyond numpy/cupy

Project description

License

qredtea

The quantum red tea library of Quantum TEA provides tensor beyond the dense tensor with numpy or cupy, which could be either tensor for systems with symmetries or tensor using another backend, e.g., pytorch.

Documentation

Here is the documentation. The documentation can also be built locally via sphinx.

Backends

We list here the supported backends with the tested version:

  • pytorch==2.0.1
  • jax==0.4.13
  • tensorflow=2.13.1

The version allow to install all four tensor backends (numpy, torch, jax, tensorflow) within python3.8 environment (for CPUs).

License

The project qredtea is hosted at the repository https://baltig.infn.it/quantum_red_tea/py_api_quantum_red_tea.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

The qredtea library is never used as stand-alone package; it replaces the tensor backend for one of the quantum TEA applications in agreement with a qtealeaves version. Therefore, the minimal use-case to explore the library is together with qtealeaves. Moreover, it can be used as well with qmatchatea.

Local installation via pip

The package is available via a local pip installation as pip install ., i.e., after cloning the repository.

Dependencies

The python dependencies can be found in the requirements.txt and are required independently of the following use-cases.

Depending on your use-case, more requirements might be necessary at runtime. As we implement the API to other packages via qredtea, we do not require the user to install all of them.

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 and a matching version of qredtea.

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

qredtea-0.0.18.tar.gz (104.9 kB view details)

Uploaded Source

Built Distribution

qredtea-0.0.18-py3-none-any.whl (112.0 kB view details)

Uploaded Python 3

File details

Details for the file qredtea-0.0.18.tar.gz.

File metadata

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

File hashes

Hashes for qredtea-0.0.18.tar.gz
Algorithm Hash digest
SHA256 74df54ad54c2f1cb205d3b2bf55840fd708b60e86ed9f32d7fd70ca8fa3662f1
MD5 489bc52c7c6137298d591e40edf42c66
BLAKE2b-256 3b4edf3ef3970bde0527c47c4959cd7183c5174ce8348d1cca50c627af8a3309

See more details on using hashes here.

File details

Details for the file qredtea-0.0.18-py3-none-any.whl.

File metadata

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

File hashes

Hashes for qredtea-0.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 b7e02a3e8610c3d9a09caebbd61529ecdac8760ae25914461ba9c3d003ec62e6
MD5 8d5bcd527ab4bb9a35edab3f7c3d5fd1
BLAKE2b-256 206aa50ce89da2266792b50268d3bf0e7f5add49c98d208c7f49d27be1c1df44

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