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

Uploaded CPython 3.13Windows x86-64

quantanium-1.14.1-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.1-cp313-cp313-macosx_14_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

quantanium-1.14.1-cp312-cp312-win_amd64.whl (4.9 MB view details)

Uploaded CPython 3.12Windows x86-64

quantanium-1.14.1-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.1-cp312-cp312-macosx_14_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

quantanium-1.14.1-cp311-cp311-win_amd64.whl (4.9 MB view details)

Uploaded CPython 3.11Windows x86-64

quantanium-1.14.1-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.1-cp311-cp311-macosx_14_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

quantanium-1.14.1-cp310-cp310-win_amd64.whl (4.9 MB view details)

Uploaded CPython 3.10Windows x86-64

quantanium-1.14.1-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.1-cp310-cp310-macosx_14_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

quantanium-1.14.1-cp39-cp39-win_amd64.whl (4.9 MB view details)

Uploaded CPython 3.9Windows x86-64

quantanium-1.14.1-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.1-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.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for quantanium-1.14.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 08d059ac6ab29bed7984648926ce914f01238b8203038fdc2e6198efb1f5b480
MD5 0f6b4fdb7540b1e9bec941c54ff5f649
BLAKE2b-256 cdc252cd8a3091dd2f1f0d7b4875872ff533b21857192deb38de40a398fe0025

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.14.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4ad14140ddde48db7eceb4beb5528fae56fb2184258cd29586d2be4be0741a17
MD5 aaecfeb433c0a8d7cef8d663b3ff529b
BLAKE2b-256 d0a2f9db700c1cd371af56ecff8c1443b00a2318623270560c6238d5eae4b3cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.14.1-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 48150be42e00679dd3f0e437b9b7e2b19e14c31dfa7f8add8e45996cee877cd4
MD5 073d3742489cf582b90898227e408917
BLAKE2b-256 030fa19102817dd100dec8d2186521b8240b03ae6035f5127110d0c4575f6ba9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.14.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 40b3c3f04d8bed6127e93ee3ce8c9115109ae74f4163807d986520b4823dd5c4
MD5 a986d4c20051a3fb58aeb6d857553ea3
BLAKE2b-256 e5696f3faee42dc3ff3952659e064509b69bb3e35840c7991532cd47f74911cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.14.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4bb3c47bce2a9fdfc36ab5e37c257d5b4f9a77d0a9c858b2cbdaaa51ce500b5b
MD5 1072833be936b674855d4e2bc212403e
BLAKE2b-256 30d5d08e365fab529a67951c2c77d9ccd3886dd928565abb2f2001cded169623

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.14.1-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 b50af77d38781f6ccdb5ed046edc4114f82ca55f44c6b3bd6394a55d74833127
MD5 91f22c18dfbed6deeec02cb669d5a74e
BLAKE2b-256 40bb13551f949a779672e12393844fe678988568fc04ee9addc6da9d7e1aeda5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.14.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a1802cf3bb3b5032984138afb7e94ae69f3d96f24d96a8dd0455be4bcb93cc50
MD5 eea48f8688da81595bb50b033c14cf3d
BLAKE2b-256 cb1213243596c23fde4c883259b38ecf6b709eecfb0772aab66edde9aaa1aafb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.14.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 893aba36c421480431c46f923ff6c99c4f2d1d367bc6e369b7b3fdd442e6860c
MD5 94da78edff139087dea8ea85cc1f7401
BLAKE2b-256 1f915f6c828483bd021454797e1c39399c73bedbd533291d0f4eec485c9f0508

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.14.1-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 39b2446d3a81a2f720cabf07d9761c3a5fd664aa29ea409c47d9963632eb8e47
MD5 441c8a1b4d44f1c3664cbbcb0292059b
BLAKE2b-256 c71627c35d3f55fd7458b0a56a9e639876a0170939750525da07280c3d5f6f50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.14.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8a45ac9555c1f5e5f10b7f1ed4bdafa162b7f1e081fc4acc12886170c2c7b0a7
MD5 5f5c03a6af75baf76c1088c47a9a07d3
BLAKE2b-256 6b8948baf16db7afc0ea0e69ec2ae38080d20fe31de6d3738b6069a8bc343de6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.14.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a286698c8a9c8c6768b4031a03ae181975ab36236805ab61351a47b99a0ff751
MD5 f3d05d49ffa0df0688502d30bb1f40bc
BLAKE2b-256 36935aff3334a38191df57b1f6f3891cdbe1bc37d8a739440823ba217c25d437

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.14.1-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e0dd423f095ba78f8a6f3b9876fb3c9912489f40a2a2c3ea4ec1e9d688bc77fc
MD5 7319b3dd84f01928e01e9a5b9f2fb8d1
BLAKE2b-256 b41feb61dabeaea6ddd9725eda9abad80b46b5b09abf4018e83ac879ac55b4ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quantanium-1.14.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 4.9 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.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0c12e3241f18e1c42a9160b13c759c4112901cb4f4bec8eb213ea4655caf938e
MD5 8e2efc2c30f76ea747b6d80cbd95fd84
BLAKE2b-256 01109515360dc5329395f0110838d3c304a3afe5b3413c4a6b57aaf59aa67354

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.14.1-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 5ecef97be02e71e0fc8173c3b6ad6a248d85bd1ff0b71ac7a488071b2e6a01d2
MD5 03ec15eba5edddd1ee0cbfdc4c086b16
BLAKE2b-256 d951a18fefc8e5380f433599df398f6b81d0571da4cfbfc3c7f6b2a573260ab2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.14.1-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 6b46f431f5e46d6aa270ce0576dc9a15397b65a98bdcc10c12b2c27da6028803
MD5 33919e5551e9e812cf91c2838acf16e8
BLAKE2b-256 d656460ec3426841b1fdeb853f84881663019fb18227bbf350b95447e80c21ec

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