Skip to main content

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

Metadata

Release files for quantanium 1.15.25

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

Built distributions (wheels)

Table of built distributions (wheels) for quantanium 1.15.25
File
quantanium-1.15.25-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
quantanium-1.15.25-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details
quantanium-1.15.25-cp313-cp313-macosx_14_0_arm64.whl CPython 3.13 CPython 3.13 macOS 14.0+ ARM64 Details
quantanium-1.15.25-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
quantanium-1.15.25-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
quantanium-1.15.25-cp312-cp312-macosx_14_0_arm64.whl CPython 3.12 CPython 3.12 macOS 14.0+ ARM64 Details
quantanium-1.15.25-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
quantanium-1.15.25-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
quantanium-1.15.25-cp311-cp311-macosx_14_0_arm64.whl CPython 3.11 CPython 3.11 macOS 14.0+ ARM64 Details
quantanium-1.15.25-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
quantanium-1.15.25-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
quantanium-1.15.25-cp310-cp310-macosx_14_0_arm64.whl CPython 3.10 CPython 3.10 macOS 14.0+ ARM64 Details
quantanium-1.15.25-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
quantanium-1.15.25-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
quantanium-1.15.25-cp39-cp39-macosx_14_0_arm64.whl CPython 3.9 CPython 3.9 macOS 14.0+ ARM64 Details

Total release size: 323.9 MB

Release files / quantanium-1.15.25-cp313-cp313-win_amd64.whl

Download URL quantanium-1.15.25-cp313-cp313-win_amd64.whl
Size 5.1 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
ad3faa4bf6ab622997921a10279b63730f2e8434c9c46bfe24c41e1ab6519282
BLAKE2b-256 checksum
How to use checksums
bdfe41303ae47a6bf6c043c0a0d4b55ad207305eb3395b99737c8fbe97e3c138
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / quantanium-1.15.25-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL quantanium-1.15.25-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 56.0 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
178e0028c957ba9f95dcce1f4e00ee8500106732a1407d0e5767ebd28f8b17d8
BLAKE2b-256 checksum
How to use checksums
996862c56cdb79933fd48896096e009226f821939b840c2a8169fc57acc84ebc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / quantanium-1.15.25-cp313-cp313-macosx_14_0_arm64.whl

Download URL quantanium-1.15.25-cp313-cp313-macosx_14_0_arm64.whl
Size 3.8 MB
Tags CPython 3.13 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
d753557afe128b4f2a354423c95191a1cf5b8514176f5a76137e6fe57d034c9f
BLAKE2b-256 checksum
How to use checksums
b2da609bc7719880711a27cf5de523be8c6daf37ede810883a3de4b30b0f6d11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / quantanium-1.15.25-cp312-cp312-win_amd64.whl

Download URL quantanium-1.15.25-cp312-cp312-win_amd64.whl
Size 5.1 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
946624e5d5e9b9c5ca89d5b3ffdac578c06e3ec06a28d4e4dbd336deb34069cb
BLAKE2b-256 checksum
How to use checksums
23d3de1b9ccf993e05e502863391b6b888c7f600826b64ecf7988dccc9569149
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / quantanium-1.15.25-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL quantanium-1.15.25-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 56.0 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
d98b113b082641fc638be96e659ce3a56f45134783281767f295370de22e7304
BLAKE2b-256 checksum
How to use checksums
ddc29e127d3c1dcad3f521c9baeaf58b05ba22015cec5de5d8175ebe2bc1eb67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / quantanium-1.15.25-cp312-cp312-macosx_14_0_arm64.whl

Download URL quantanium-1.15.25-cp312-cp312-macosx_14_0_arm64.whl
Size 3.8 MB
Tags CPython 3.12 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
114ed4fdd4facd3e2b62efd9c3c85e3aa841e5669f2ea8640b2f226fdd11d9e2
BLAKE2b-256 checksum
How to use checksums
85e254013dc04ad030f3f07ef165c84ea39e44c4e486188df816a92884f76eaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / quantanium-1.15.25-cp311-cp311-win_amd64.whl

Download URL quantanium-1.15.25-cp311-cp311-win_amd64.whl
Size 5.1 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
8e4c8d62ecc9da371ba6181fec376cd93f27c2d391484f2e9b215d120ae7d0f0
BLAKE2b-256 checksum
How to use checksums
998ea298c7fc6e87a37a447b4b5bd8a2d0534ffa4ad8ed6b6499333fd3e8ac2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / quantanium-1.15.25-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL quantanium-1.15.25-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 56.0 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
42f190b24d8ad4ca41f718ada1a1c8df58dff0f87f9c2fa700b95003bf1a0298
BLAKE2b-256 checksum
How to use checksums
d8ffd19693bb5ccccef1ba87100296fe400ab40330e49245cc4297133f176219
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / quantanium-1.15.25-cp311-cp311-macosx_14_0_arm64.whl

Download URL quantanium-1.15.25-cp311-cp311-macosx_14_0_arm64.whl
Size 3.8 MB
Tags CPython 3.11 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
b0605c541cb1f743e773b8e9e26cc3eada97dc51e97e1c25434d57a289dba2e2
BLAKE2b-256 checksum
How to use checksums
c7a130249976c2efd0ec9e9c752e5804c6326a6446b4d57fb3ecf34ade7304a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / quantanium-1.15.25-cp310-cp310-win_amd64.whl

Download URL quantanium-1.15.25-cp310-cp310-win_amd64.whl
Size 5.1 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
1cb9f84d4689baaf7717c10a7de2850c57a0ce6009c9add9a813d8430ff8d11f
BLAKE2b-256 checksum
How to use checksums
41a8a177bc28a4150f586df70e45d63fb47b1d1fd3d5fc81fe4048413d9239d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / quantanium-1.15.25-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL quantanium-1.15.25-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 56.0 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
0c3da482dc8f670f9129b4b417c376b58ccd6985a9a4bb0f19653e7b363e6ea0
BLAKE2b-256 checksum
How to use checksums
7ee5b9179f01b924560a7aa5a0e8962958c59f0b31d3a1e9cdcf839c0f91f56b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / quantanium-1.15.25-cp310-cp310-macosx_14_0_arm64.whl

Download URL quantanium-1.15.25-cp310-cp310-macosx_14_0_arm64.whl
Size 3.8 MB
Tags CPython 3.10 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
b6b271b6680a2411f17e7f3c9d633558c942064811d4596e21c926cc9c04a3a5
BLAKE2b-256 checksum
How to use checksums
e7da708a4e2ed08a25b75ac982c9b52e53908b33a91be87c8e513ddd8274366f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / quantanium-1.15.25-cp39-cp39-win_amd64.whl

Download URL quantanium-1.15.25-cp39-cp39-win_amd64.whl
Size 5.1 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
e9195f2120827ced9898dd30273fff9dc344574597f4cb76400321b2bd913b48
BLAKE2b-256 checksum
How to use checksums
4ba1ff7eb5b1fa734242756571daa4283e60e902b45d47261a63c42859e9db58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / quantanium-1.15.25-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL quantanium-1.15.25-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 56.0 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
6d2f08d61610f51ce3d9970ba97c69c50a1711be4ddcf73e0c47436cf16ff427
BLAKE2b-256 checksum
How to use checksums
5d87be00ca2a9fff87a28c6c939d2cad75f3475ed4953bce088f2a259acb657a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / quantanium-1.15.25-cp39-cp39-macosx_14_0_arm64.whl

Download URL quantanium-1.15.25-cp39-cp39-macosx_14_0_arm64.whl
Size 3.8 MB
Tags CPython 3.9 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
9cb753d90c64c1dea9a92cd7005f417f7cd3e1829cfb22631d78280a7b9b4e6a
BLAKE2b-256 checksum
How to use checksums
4248fddd8382cf2cc62491c755df71ee815dd106496c3b4bc316f0c28ee64e41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12
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