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.5.1
  • jax==0.4.38
  • tensorflow==2.18.0

The version allow to install all four tensor backends (numpy, torch, jax, tensorflow) within python3.11 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 pyproject.toml 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.

qtealeaves simulations

If you want to use the qtealeaves toolchain, a compatible version of qtealeaves has to be installed. The correct version is fetched automatically if this package is installed via pip. Otherwise, see pyproject.toml.

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


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.3.15.tar.gz (138.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qredtea-0.3.15-py3-none-any.whl (147.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qredtea-0.3.15.tar.gz
  • Upload date:
  • Size: 138.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for qredtea-0.3.15.tar.gz
Algorithm Hash digest
SHA256 9b7ef77cc48d130b21face3d9c68ff2c7be0f7d0b5841178fa3c95d5d99c7140
MD5 dfdd0699e653dd469de5a4ab38bddcba
BLAKE2b-256 6fe84993b9378c745c93eed646f0f2ae8e57fa35f3c1188eccda690957998979

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qredtea-0.3.15-py3-none-any.whl
  • Upload date:
  • Size: 147.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for qredtea-0.3.15-py3-none-any.whl
Algorithm Hash digest
SHA256 71a9c56ec8d8d00689694a8d10e7a7eda44cf949f3692f4545e14382ef16d2f2
MD5 8ecca0ea7104bc0458b976ff0a36b4a4
BLAKE2b-256 1c58445d29c817fd10b43d5771c92e34538cdd9ebe0cf71e4fc1711401367f13

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