Skip to main content

license badge test status badge doc status badge pipy deployment status badge release badge github stars badge python versions badge

[alt:mpqp logo]

The MPQP library

MPQP stands for Multi-Platform Quantum Programming. It is a python library we at Colibri felt the need for but couldn't find a solution. We are working on quantum algorithms, but until now, there was no good solution to study quantum algorithms across devices, compares the devices, etc...

MPQP is thus the solution we bring to the community to tackle this problem.

[alt:mpqp examples]

On this page, you will find:

  1. how to install the library;
  2. how to start using it;
  3. and the current active contributors.

Install

For now, we support python versions 3.10 to 3.13, and every major OS (Windows, Linux and MacOS). We are dependant on the SDKs we support to enable various python versions and OS support, for instance, MPQP was validated on Ubuntu LTS 20.04, while Ubuntu 18.04 is not supported because myQLM does not support it.

The preferred installation method is with the pipy repo. In order to use this installation method, simply run

pip install mpqp

You can also clone this repo and install from source, for instance if you need to modify something. In that case, we advise you to have a look at our contribution guide.

Usage

To get started with MPQP, you can create a quantum circuit with a few gates, and run it against the backend of your choice:

from mpqp.core import QCircuit
from mpqp.gates import *
from mpqp.execution import run, IBMDevice
circ = QCircuit([H(0), H(1), Rx(0,0), CNOT(1,2), Y(2)])
print(circ)
#      ┌───┐┌───────┐
# q_0: ┤ H ├┤ Rx(0) ├─────
#      ├───┤└───────┘
# q_1: ┤ H ├────■─────────
#      └───┘  ┌─┴─┐  ┌───┐
# q_2: ───────┤ X ├──┤ Y ├
#             └───┘  └───┘
print(run(circ, IBMDevice.AER_SIMULATOR_STATEVECTOR))
# Result: IBMDevice, AER_SIMULATOR_STATEVECTOR
#   State vector: [0, 0.5j, -0.5j, 0, 0, 0.5j, -0.5j, 0]
#   Probabilities: [0, 0.25, 0.25, 0, 0, 0.25, 0.25, 0]
#   Number of qubits: 3

More details are available in our documentation.

Contributors


Henri de Boutray

Hamza Jaffali

Muhammad Attallah

JulienCalisto

Mathieu Gras

Thomas Benzino

Ahmed Bejaoui

Metadata

Release files for mpqp 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mpqp 0.6.1
File Size Uploaded Provenance Actions
mpqp-0.6.1.tar.gz 1.5 MB Without provenance Details for mpqp-0.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mpqp 0.6.1
File Interpreter ABI Platform Actions
mpqp-0.6.1-py3-none-any.whl Python 3 none any Details for mpqp-0.6.1-py3-none-any.whl

Total release size: 1.8 MB

Release files / mpqp-0.6.1.tar.gz

Download URL mpqp-0.6.1.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
2abd1e1ac4fd7231a51f97c7b0560c1fde6736f3907ed6b55088bb1eba2908d6
BLAKE2b-256 checksum
How to use checksums
4fbec52ad454ef87c0161525df0d7ed8291e731380bb6203a2b596c06d6490f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / mpqp-0.6.1-py3-none-any.whl

Download URL mpqp-0.6.1-py3-none-any.whl
Size 263.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e3a7a9ccad1a3b10e1a109fcfaf207f710c120198c14338c7711353d511b024
BLAKE2b-256 checksum
How to use checksums
18fcf3ad9a73d24891733d9ca867e86454c4c77c5cb08feb3fb2cfbe80513ff4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for mpqp 0.6.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page