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.15.24-cp313-cp313-win_amd64.whl (5.1 MB view details)

Uploaded CPython 3.13Windows x86-64

quantanium-1.15.24-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (56.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

quantanium-1.15.24-cp313-cp313-macosx_14_0_arm64.whl (3.8 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

quantanium-1.15.24-cp312-cp312-win_amd64.whl (5.1 MB view details)

Uploaded CPython 3.12Windows x86-64

quantanium-1.15.24-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (56.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

quantanium-1.15.24-cp312-cp312-macosx_14_0_arm64.whl (3.8 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

quantanium-1.15.24-cp311-cp311-win_amd64.whl (5.1 MB view details)

Uploaded CPython 3.11Windows x86-64

quantanium-1.15.24-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (56.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

quantanium-1.15.24-cp311-cp311-macosx_14_0_arm64.whl (3.8 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

quantanium-1.15.24-cp310-cp310-win_amd64.whl (5.1 MB view details)

Uploaded CPython 3.10Windows x86-64

quantanium-1.15.24-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (56.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

quantanium-1.15.24-cp310-cp310-macosx_14_0_arm64.whl (3.8 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

quantanium-1.15.24-cp39-cp39-win_amd64.whl (5.1 MB view details)

Uploaded CPython 3.9Windows x86-64

quantanium-1.15.24-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (56.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

quantanium-1.15.24-cp39-cp39-macosx_14_0_arm64.whl (3.8 MB view details)

Uploaded CPython 3.9macOS 14.0+ ARM64

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.24-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4c701f57d3412f24268d57cbe65e6d47b74c9fac651b20725efe8d0208e5c84d
MD5 f3767aa3a98fc175addbebd4f2bf9997
BLAKE2b-256 7b181d97bdad90a6da9a61ab93318a0fd1f58fc7ed538b8f4f9f49d96c1a6e10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.24-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f69f9e0ab426988514821f4e967f03de640dc96e428c86b4083a994ec9754a23
MD5 d8f4cf23470cdb05b7fbe6625f2b3ea0
BLAKE2b-256 37dbea049ba01bcaa697c5e0d791585527e5a6878ae6120142480679504d8a13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.24-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 2a7593ab8bad4df90257c08447f8cf3ef6a2f3145ee57d53b336355ddff9138f
MD5 f9489bfab8d332d374daf30b0d2d546e
BLAKE2b-256 91aee7113829b713b45387d05904f5905e7717a90f4d6491f212d755a3eb2750

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.24-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8d635446abe8baad06b251843296f6621b56e274a2032b79ba7f679ddfabd989
MD5 8a913be26e8dbbcd99a4396b8c375695
BLAKE2b-256 cea9970882b6d2a7f689343b7feffbc266812fa9231febfadf6a41fd8a9a6efd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.24-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 69f0e98161ac8ac9cf7a5529f5504d83d3bc59d2faca834a73347366e6492801
MD5 43ca0d64937270460c472ae495064e3a
BLAKE2b-256 1a2d8a300b485e4e0ae4f1e660aeb36fa4a340d03b334c842f7cb87c792bbdcd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.24-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 4808c78724dba00df64b9c52c3deaf9383fe3fd3e52f4710dafb5252407932b0
MD5 b0e6a6d5f54921552a0b4539bd95a667
BLAKE2b-256 7cc15024e0e1cd0214163b198d1cd1df085d7740c876a044e0338ad75c3a1f09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.24-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8943cfb2631b8e4a34f64c6e30304d08b762e63bc642148d11549ed38eb73dd1
MD5 ee87391d0b87052153d73f2e747e787f
BLAKE2b-256 d445d6be37312f18dcb05dcae8ce4693cf35ac5577571d6f8a7565f464e25570

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.24-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a4bee54929d69ab886452d48bd699f693d88933e01f212de79be85448055ef3d
MD5 6da0c466ef02bb300323e2b67762e0c9
BLAKE2b-256 05bf3113e3d18f354997cca62d1cfa6e25e186a1a19a6caa4af421541f4620d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.24-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a79fcfa2496e39f182c30178b1bf65fa97a6209cb05d04049519d815638396d5
MD5 e50e188f1a2702f84cffcd725a5e8e4d
BLAKE2b-256 9c64bc1dec3caffeae75d7532f8f3b73e07052ad2e21cf0c6b6aa2b1ef3b2f81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.24-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d19cbc61038c03459209cff714ca64d7616ec3f49b7a774941cb6f832d7c4a29
MD5 54389dbdafb102d6d8a9fc7d941f9d76
BLAKE2b-256 0029c085cbecca70f96a1994b429ae9f0e998ac4fc40e307ab8af5180d3dd69d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.24-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b7277a3976280eb4764d2e4b9466a6863b968c4928748c247bf440d1b17e62a8
MD5 d1a38fc2b46533b45b2010a96bd164bf
BLAKE2b-256 36bcf20b58f947e4c2d7c2406510d183b0a461f39635b7a734eba8236f13e58c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.24-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 06836f98b4a086e73087532df7c8aaeea7042eda6f66eb6f5cb7c651942a60ea
MD5 97fe9f9247c7eaaf701dcd7dc2f524a8
BLAKE2b-256 a6e28d064d3542b47172bd2ffafa34398fb326e5790e39c45174dc4e36beebef

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for quantanium-1.15.24-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 aed5d61aa73606fa28d14a81aeedd28d6ba37eafae62ed19ba460571df2bd137
MD5 c5216bf1d6fcc9d5eec19f267a74b6d8
BLAKE2b-256 2f0e5ddecbcf927264edf736d915d4f3c72b4128a4ed722925a638343987181b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.24-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 fb4ea61b8499f04afd5b7af8b6a4352891e21c0d4690d9b98804be7ad1dbcae5
MD5 3e2f878aced3ec1785f9f08e5e940354
BLAKE2b-256 ea36875b81ef34d90c93b4e6d5f5446d5d15f7532623130bcd88e9f3db6d4825

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.24-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 050ca85643dbf49a0460f616966189af8f0491d42c829328b169ff901306e213
MD5 47730f200defc3acd3affbf5464214c7
BLAKE2b-256 25f5e9babf4cb8dc7902c962c69df60dd66a3ada982e4a41b6fa6ee7729d1c34

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