Skip to main content

License Code style: black

Quantum Matcha Tea

Quantum Matcha Tea is a Tensor Network emulator for quantum circuits and linear optics circuits. You can define your circuits either in qiskit, or using Matcha's internal circuit interface Qcircuit.

If you use another quantum information library (such as cirq) we suggest to save your circuit in qasm format and then load it in qiskit.

The circuits ca be ran using the following backends:

  • numpy, using the CPU in python;
  • cupy, using the GPU in python.

Documentation

Here is the documentation. The documentation can also be built locally with sphinx with the following python packages:

  • sphinx
  • sphinx_rtd_theme

and running the command make html in the docs/ folder.

Installation

Independent of the use-case, you have to install the dependencies. Installing the optional dependencies will enable the use of more tensor modules (for instance, supporting GPUs).

Installation via pip

The package is available via PyPi and pip install qmatchatea. After cloning the repository, a local installation via pip is also possible via pip install ..

Optional dependencies

The following optional dependencies are not installed by default.

  • cupy: necessary to run on the GPU with the tensor_module="numpy". The installation guide can be found at the cupy website.
  • torch: necessary to run simulation with the tensor_module="torch". The installation guide can be found at the pytorch website.
  • tensorflow: necessary to run simulation with the tensor_module="tensorflow". The installation guide can be found at the tensorflow website.
  • jax: necessary to run simulation with the tensor_module="jax". The installation guide can be found at the jax website.

MPI simulations also require the package mpi4py.

Testing the package

To test the python package qmatchatea simply run from the command: python3 -m unittest

License

The project qmatchatea from the repository py_api_quantum_matcha_tea 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qmatchatea-1.5.7.tar.gz (70.1 kB view details)

Uploaded Source

Built Distribution

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

qmatchatea-1.5.7-py3-none-any.whl (69.0 kB view details)

Uploaded Python 3

File details

Details for the file qmatchatea-1.5.7.tar.gz.

File metadata

  • Download URL: qmatchatea-1.5.7.tar.gz
  • Upload date:
  • Size: 70.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0rc1

File hashes

Hashes for qmatchatea-1.5.7.tar.gz
Algorithm Hash digest
SHA256 24f9caa785becc54e103b3a0bc98dd5c8cae7160ffc1bb2e315344c57c9bd2bb
MD5 8dc1dda3c7198d4fce597d2f8d091849
BLAKE2b-256 723d00e7f8a0955941a5f9a2ec9b165e2a7233b0b7daba00678a3f57e9ec0470

See more details on using hashes here.

File details

Details for the file qmatchatea-1.5.7-py3-none-any.whl.

File metadata

  • Download URL: qmatchatea-1.5.7-py3-none-any.whl
  • Upload date:
  • Size: 69.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0rc1

File hashes

Hashes for qmatchatea-1.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 675cdeba60c6a7dc2993e5f11238a8090fb87152b41b4922d25408bb569acd56
MD5 4a12197a3963b24a803e24848305937d
BLAKE2b-256 4911dfc22b07b1760e3ac103d9ddaea39508b2f5e9745b8c4247d97efba8b060

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 Sentry Error logging StatusPage Status page