Quantum matcha TEA python library for tensor network emulation of quantum circuits.
Project description
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:
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 thetensor_module="numpy"
. The installation guide can be found at the cupy website.torch
: necessary to run simulation with thetensor_module="torch"
. The installation guide can be found at the pytorch website.tensorflow
: necessary to run simulation with thetensor_module="tensorflow"
. The installation guide can be found at the tensorflow website.jax
: necessary to run simulation with thetensor_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:
The license applies to the files of this project as indicated in the header of each file, but not its dependencies.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file qmatchatea-1.4.3.tar.gz
.
File metadata
- Download URL: qmatchatea-1.4.3.tar.gz
- Upload date:
- Size: 64.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
3aea3d2508cb8a1e592d2de008d2994bb7a38b42fb6bfc8e0512ff5b2b252919
|
|
MD5 |
31572b8007bd4deb8fab37c50dd36a12
|
|
BLAKE2b-256 |
294cd3a32378d456b5dc9bc15d1fea5f38036a89d00c7e19f9045b6dc2d64223
|
File details
Details for the file qmatchatea-1.4.3-py3-none-any.whl
.
File metadata
- Download URL: qmatchatea-1.4.3-py3-none-any.whl
- Upload date:
- Size: 64.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
11712e476604844536879ee7d96362a84458d1ad9c74d4cbf5925fe06f8945bd
|
|
MD5 |
905c594c13e931acfc0b5d91538824de
|
|
BLAKE2b-256 |
c645d39e6a0ae763c3ece3e5d16774be37194112cdc3d6470862a46d4e6da119
|