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

Uploaded CPython 3.13Windows x86-64

quantanium-1.15.25-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.25-cp313-cp313-macosx_14_0_arm64.whl (3.8 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

quantanium-1.15.25-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.25-cp312-cp312-macosx_14_0_arm64.whl (3.8 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

quantanium-1.15.25-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.25-cp311-cp311-macosx_14_0_arm64.whl (3.8 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

quantanium-1.15.25-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.25-cp310-cp310-macosx_14_0_arm64.whl (3.8 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

quantanium-1.15.25-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.25-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.25-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for quantanium-1.15.25-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ad3faa4bf6ab622997921a10279b63730f2e8434c9c46bfe24c41e1ab6519282
MD5 8f408e033397e6959ed8c7c5ccf92732
BLAKE2b-256 bdfe41303ae47a6bf6c043c0a0d4b55ad207305eb3395b99737c8fbe97e3c138

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.25-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 178e0028c957ba9f95dcce1f4e00ee8500106732a1407d0e5767ebd28f8b17d8
MD5 7a3b0fe406d517fc0871ae7c61206359
BLAKE2b-256 996862c56cdb79933fd48896096e009226f821939b840c2a8169fc57acc84ebc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.25-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 d753557afe128b4f2a354423c95191a1cf5b8514176f5a76137e6fe57d034c9f
MD5 0874c7260d2050db1f726b63af1e8e22
BLAKE2b-256 b2da609bc7719880711a27cf5de523be8c6daf37ede810883a3de4b30b0f6d11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.25-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 946624e5d5e9b9c5ca89d5b3ffdac578c06e3ec06a28d4e4dbd336deb34069cb
MD5 02e988df9303920e24de5616066c5015
BLAKE2b-256 23d3de1b9ccf993e05e502863391b6b888c7f600826b64ecf7988dccc9569149

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.25-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d98b113b082641fc638be96e659ce3a56f45134783281767f295370de22e7304
MD5 87561f10c7d842abdc1c5deb9b3f15b6
BLAKE2b-256 ddc29e127d3c1dcad3f521c9baeaf58b05ba22015cec5de5d8175ebe2bc1eb67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.25-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 114ed4fdd4facd3e2b62efd9c3c85e3aa841e5669f2ea8640b2f226fdd11d9e2
MD5 43a6cd2d55a9116fe6042707f85bbdd0
BLAKE2b-256 85e254013dc04ad030f3f07ef165c84ea39e44c4e486188df816a92884f76eaa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.25-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8e4c8d62ecc9da371ba6181fec376cd93f27c2d391484f2e9b215d120ae7d0f0
MD5 76a3db4fb3b0d3cf9027af267220bee3
BLAKE2b-256 998ea298c7fc6e87a37a447b4b5bd8a2d0534ffa4ad8ed6b6499333fd3e8ac2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.25-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 42f190b24d8ad4ca41f718ada1a1c8df58dff0f87f9c2fa700b95003bf1a0298
MD5 68cb72d45b0164c59ddb9c8912d3ac49
BLAKE2b-256 d8ffd19693bb5ccccef1ba87100296fe400ab40330e49245cc4297133f176219

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.25-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 b0605c541cb1f743e773b8e9e26cc3eada97dc51e97e1c25434d57a289dba2e2
MD5 34b6a2c6ba2dcf650c9c5c99d1862084
BLAKE2b-256 c7a130249976c2efd0ec9e9c752e5804c6326a6446b4d57fb3ecf34ade7304a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.25-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1cb9f84d4689baaf7717c10a7de2850c57a0ce6009c9add9a813d8430ff8d11f
MD5 4dd6dfc02048ea21ae61033cb8fb9da1
BLAKE2b-256 41a8a177bc28a4150f586df70e45d63fb47b1d1fd3d5fc81fe4048413d9239d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.25-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0c3da482dc8f670f9129b4b417c376b58ccd6985a9a4bb0f19653e7b363e6ea0
MD5 22377a0f3977896abef8742333aa1017
BLAKE2b-256 7ee5b9179f01b924560a7aa5a0e8962958c59f0b31d3a1e9cdcf839c0f91f56b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.25-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 b6b271b6680a2411f17e7f3c9d633558c942064811d4596e21c926cc9c04a3a5
MD5 d7dfdd7cc4cf6a69f7c0b79b40a4f25d
BLAKE2b-256 e7da708a4e2ed08a25b75ac982c9b52e53908b33a91be87c8e513ddd8274366f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quantanium-1.15.25-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.25-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e9195f2120827ced9898dd30273fff9dc344574597f4cb76400321b2bd913b48
MD5 77a85e9c63ec383be69fc34241914506
BLAKE2b-256 4ba1ff7eb5b1fa734242756571daa4283e60e902b45d47261a63c42859e9db58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.25-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 6d2f08d61610f51ce3d9970ba97c69c50a1711be4ddcf73e0c47436cf16ff427
MD5 f8e48ea6887fe6f7c39f85e05004fef9
BLAKE2b-256 5d87be00ca2a9fff87a28c6c939d2cad75f3475ed4953bce088f2a259acb657a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.15.25-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 9cb753d90c64c1dea9a92cd7005f417f7cd3e1829cfb22631d78280a7b9b4e6a
MD5 008f63963023f5c1740ae545146d055c
BLAKE2b-256 4248fddd8382cf2cc62491c755df71ee815dd106496c3b4bc316f0c28ee64e41

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