Skip to main content

Quantum matcha TEA python library for tensor network emulation of quantum circuits.

Project description

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 in either:

If you use another quantum information library (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;
  • fortran, using either the CPU or GPU and MPI multiprocessing;

Documentation

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

  • sphinx
  • sphinx_rtd_theme
  • sphinx-gallery

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

Installation

Independent of the use-case, you have to install the dependencies. Then, there are the options using it as a stand-alone package, or as a python interface for the fortran backend of quantum matcha TEA.

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 ..

Dependencies

Notice that, even though the library could be run with a GPU with cupy, the latter package is not installed by default in the machine, since it could give problems for machines that have no access to a gpu. If you have access to a GPU and you want to use it, please proceed to the installation as described in cupy website.

Furthermore, also strawberry fields is not installed by default.

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.

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

qmatchatea-1.1.4.tar.gz (71.7 kB view details)

Uploaded Source

Built Distribution

qmatchatea-1.1.4-py3-none-any.whl (72.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qmatchatea-1.1.4.tar.gz
  • Upload date:
  • Size: 71.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for qmatchatea-1.1.4.tar.gz
Algorithm Hash digest
SHA256 5598fac2ae55497b157a003ad6518df0a898f2448213d6eca8387e2b3b2eb63e
MD5 4a295f426367f19ce3d86fae03bc0434
BLAKE2b-256 5db1205f4085d7de83b29a3329abedf59bbefab7e10e11e354b236061ac09e29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qmatchatea-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 72.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for qmatchatea-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 544886607e9799719a965701214a5b2ebf0584a746ca553543c03a032bfee60f
MD5 e5e29e6d03936dc231dab84bbfa62cf5
BLAKE2b-256 88b860c9a2ecaa604ef09a68f1d32cf747649424aeb977b69e80c63963b24509

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