Skip to main content

Python wrapper for the MIMIQ Quantanium statevector engine.

Project description

Quantanium-python

Python Wrapper for the MIMIQ Quantanium statevector engine: CPU and GPU Backends.

  • CPU backend (AVX): high-performance vectorized execution on AMD64 & ARM64 processors.
  • GPU backend (NVIDIA cuStateVec/cuQuantum): accelerated statevector simulation using NVIDIA’s cuStateVec (part of cuQuantum).

Note: By default, Quantanium builds with CUDA/GPU support enabled.

Prerequisites

Before installing, ensure you have:

  • Python (version 3.10, 3.11, or 3.12)
  • Git installed on your system
  • Virtual environment support (e.g., venv)

Supported Platforms

  • Windows (AMD64)
  • macOS (ARM64 Apple Silicon)
  • Ubuntu / Debian-based Linux(x86_64)

Installation

Quantanium is implemented in C++, with a wrapper written in the Python programming language to enhance usability and ensure support with MIMIQ API. Quantanium distributes prebuilt Python wheels for Windows (AMD64), macOS(ARM), and Ubuntu(x86).

Installation Quantanium-python from Binary

Installation Steps:

create a new python environment:

python -m venv .quantanium_venv

activate your environment:

source .quantanium_venv/bin/acitvate

Download the latest release here: https://github.com/qperfect-io/quantanium-python/releases/latest

Extract the content of the zip file using

To install the wheel make sure to select the correct file for your system.

  • the number after cp[NUM] in the name of the whl file must match your python version
  • If you are using macos take the file with macos included in the name, otherwise take the file with manylinux. (not built for windows yet)

For example to install the wheels on ubuntu for python 3.12 run:

pip install  quantaniumpy-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Troubleshooting

  • If installation fails, check that you have the correct Python version (python --version).
  • Ensure all dependencies are installed.
  • In some cases you should consider upgrading via the 'pip install --upgrade pip' command.

Installation from Source

You can also build and install quantanium-python from source. Note, in this way, a g++ or clang++ compiler is necessary: make sure that the compiler installed.

In order to install quantanium-python from source, please follow the next set of instructions:

  1. Clone this repository with
$ git clone git@github.com:qperfect-io/quantanium-python.git
$ cd quantanium-python
  1. Install quantanium-python locally 2.1 by default with GPU support:
pip install -e .

2.2 CPU-only (without GPU support):

pip install -e . --config-settings=cmake.define.QUANTANIUMPY_WITH_CUDA=OFF

Accessible Functions

All accessible functions are defined within the Quantanium class inside Quantanium.py. These include:

  • convert_qasm_to_qua_circuit(qasm_file): Converts a QASM file to a qua::Circuit.
  • convert_qua_to_mimiq_circuit(qua_circuit): Converts a qua::Circuit to a mimiq::Circuit.
  • convert_mimiq_to_qua_circuit(mimiq_circuit): Converts a mimiq::Circuit back to a qua::Circuit.
  • convert_qua_results_to_mimiq_results(qua_results): Converts qua::Results to mimiq::Results.
  • execute(circuit, label="pyapi_v1.0", algorithm="auto", nsamples=1000, bitstrings=None, timelimit=300, bonddim=None, entdim=None, seed=None, qasmincludes=None): Executes the given circuit.

Quick Start

In order to start, you can use an example script from folder examples, e.g.:

$ python examples/example_qasm.py

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

quantanium-1.14.2-cp313-cp313-win_amd64.whl (5.0 MB view details)

Uploaded CPython 3.13Windows x86-64

quantanium-1.14.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (55.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

quantanium-1.14.2-cp313-cp313-macosx_14_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

quantanium-1.14.2-cp312-cp312-win_amd64.whl (5.0 MB view details)

Uploaded CPython 3.12Windows x86-64

quantanium-1.14.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (55.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

quantanium-1.14.2-cp312-cp312-macosx_14_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

quantanium-1.14.2-cp311-cp311-win_amd64.whl (5.0 MB view details)

Uploaded CPython 3.11Windows x86-64

quantanium-1.14.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (55.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

quantanium-1.14.2-cp311-cp311-macosx_14_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

quantanium-1.14.2-cp310-cp310-win_amd64.whl (5.0 MB view details)

Uploaded CPython 3.10Windows x86-64

quantanium-1.14.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (55.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

quantanium-1.14.2-cp310-cp310-macosx_14_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

quantanium-1.14.2-cp39-cp39-win_amd64.whl (5.0 MB view details)

Uploaded CPython 3.9Windows x86-64

quantanium-1.14.2-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (55.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

quantanium-1.14.2-cp39-cp39-macosx_14_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.9macOS 14.0+ ARM64

File details

Details for the file quantanium-1.14.2-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for quantanium-1.14.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a7a9cf45a47db01ef66e970c39d1f2736d167bd48bfdc7bd270f0137e55d94f6
MD5 89e19017e5be98e4a2d9345173c632f0
BLAKE2b-256 9f9237642ee367eb9db4345e5d0002d3e89a4af07f1d3a4c2b9fe5ba1bc163ea

See more details on using hashes here.

File details

Details for the file quantanium-1.14.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for quantanium-1.14.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5e63623f66add39e0537b425f7c92c15ae62883f0b230bb098b5c67a4a8ae0c4
MD5 f7b247d14e043d46b7d01fdfd7e37bf1
BLAKE2b-256 5f772fe4ec2c60d73419833e0ddbfd10e7484d5c43f50688307c015261655c5a

See more details on using hashes here.

File details

Details for the file quantanium-1.14.2-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for quantanium-1.14.2-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 60544c4eca9fbd46938cae2fa384453c85cf88f679809a10bc69ab58c2bd9570
MD5 59952c4807596a21f1fdf77e0103be1f
BLAKE2b-256 8a86198535a9b9787a1e6bae302f7ca88e518cd0a233b5049ac6eefe60b58b82

See more details on using hashes here.

File details

Details for the file quantanium-1.14.2-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for quantanium-1.14.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b2880e2ac5d58956ce8d5901e9dbc9b51c8451abdf4e9f28097b08f8c5c8dcb1
MD5 4df05a09750128729dd0a6b01342ba23
BLAKE2b-256 f54db53cccc8ae65ed52dff785795759b33169494ad59b05e5a8c82bfc09f6d1

See more details on using hashes here.

File details

Details for the file quantanium-1.14.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for quantanium-1.14.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 92c79871943d4bc7fdfc4ce3fed181fa8f6c8e50b57c1692fd12638c8f033a45
MD5 35d8231417ef3b74ca8e2ac4edf50d2b
BLAKE2b-256 cf5e0c26754810eef7e309658a640717e199d55e264f69cb41a02a7f9aaca7f7

See more details on using hashes here.

File details

Details for the file quantanium-1.14.2-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for quantanium-1.14.2-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 f4498f5d262148ffa25b9bc164b27e2d16fae5193b49bdc3cbb555a947666152
MD5 8e0017a196e00d57bc60b25cf8faaf1c
BLAKE2b-256 ca44df23c00fa535c13c6124e906c27657df163bca11b60bdadb89ce6494b5b0

See more details on using hashes here.

File details

Details for the file quantanium-1.14.2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for quantanium-1.14.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 de632956feff95799a3c7c10813bc9e1132e8d4f49b4918b63672c5109c9b8cb
MD5 ce500633b431697cea8660a6d03d2eb0
BLAKE2b-256 cb71063829eb2b90defe78c585a5d52a83d50685ecf1989ea2669f92c7e2ff41

See more details on using hashes here.

File details

Details for the file quantanium-1.14.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for quantanium-1.14.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 487cd0f1097be6a6ca8d53c25f92fc60059e28203bfccb3e8e64680a2d45b017
MD5 4c05101c4bd0f11440355410f90b8765
BLAKE2b-256 5017311b44e767c642663dc9eb47fa651ba2643be3187b9af8140b82603e1ec2

See more details on using hashes here.

File details

Details for the file quantanium-1.14.2-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for quantanium-1.14.2-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ef7c42d69da136e5b938dfb24db69779b83b4793bbd7f8a6e4441c4c982e7ef9
MD5 d4217c02084174cc30c86e764f29aa12
BLAKE2b-256 d7bc67fec3a663ef43fd889de27c6350ac71e12881b8135033092611481ea74b

See more details on using hashes here.

File details

Details for the file quantanium-1.14.2-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for quantanium-1.14.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d6341b39a56336aafb14e861965c976995ee3697094f0001646cf04160acb0b5
MD5 cce9e252eee63c8a57ded20e0135bd6c
BLAKE2b-256 8faea5b6a8d8465b434c9d5a42e0dd7331bcc782ab4ab0a192026d84762c60b7

See more details on using hashes here.

File details

Details for the file quantanium-1.14.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for quantanium-1.14.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d50330c0947e5358812cc785bca25e6dbc2240b7df85f792e23f54f9761bedb2
MD5 c90e005136e6f564a8ecd1321faa1e4b
BLAKE2b-256 96ed1cb6201caa5ea1c4d09c69f886808fa3ab90dc098aa7513ade879d28af16

See more details on using hashes here.

File details

Details for the file quantanium-1.14.2-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for quantanium-1.14.2-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e2e4d75fc5573b44a54a29ae5fc77d105e36a7ad3ab6d1cd092163c8ca4a82ea
MD5 7c9f568680445fd9b9c3d5abc941996c
BLAKE2b-256 c41cca0083ba72bfaa71818dbe2d91ec447ecb0916e495c04da1ec801e2a5aee

See more details on using hashes here.

File details

Details for the file quantanium-1.14.2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: quantanium-1.14.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 5.0 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for quantanium-1.14.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 aa5db90d3198da8e40318adee9d23e6bedc4687f713b5d42ad0db687a60d7415
MD5 31fd83f6a325907c7eea76976f78d583
BLAKE2b-256 1e76172ded43813c031c626853d29b5bad200ea26813bffb7bfb9f644065d679

See more details on using hashes here.

File details

Details for the file quantanium-1.14.2-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for quantanium-1.14.2-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 a4530f2192053d6092f034c9c5df10820b4b406e3553d3cb9bc2237b3efcce8e
MD5 0e93d94afa4ba5b251e3975d37db6d04
BLAKE2b-256 a77c51b4833a64186df2696d25e2889695b1709fa8446f2f6c83dc2d38704b10

See more details on using hashes here.

File details

Details for the file quantanium-1.14.2-cp39-cp39-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for quantanium-1.14.2-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 1f260378f127a002ac6ac670990cf066ca3e1d54b6faa321f53621736a7e1545
MD5 d1eab19b8e641b9579e927b380bc5f76
BLAKE2b-256 f09944da60c958f2a1c502d19e1c931c21ab8d1e31bd378c6328b431b8c0e847

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