Skip to main content

Python wrapper for the MIMIQ Quantanium statevector engine.

Project description

Quantanium-python

Python Wrapper for the MIMIQ Quantanium statevector engine.

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-private.git
$ cd quantanium-python-private
  1. Install quantanium-python locally:
pip install -e .

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 14.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 14.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 14.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10macOS 14.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

quantanium-1.13.0-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.13.0-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.13.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for quantanium-1.13.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 06fa865e72042bd34ca7b3f1a0058cc84508247b4836dc73e30528d24be660ec
MD5 10008643ef4ee1abeab14378013c7e5d
BLAKE2b-256 03110159b3852ef4ee84df521f9a2501a14cd4cee58d64ee4e6065fcb53b428b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.13.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fcbd1a02e440a75588845e4659ef6e259e58c21dc3c5de96b9a673bd94817ce3
MD5 9782fee145199decc0686e8be3ec44e4
BLAKE2b-256 93851305361dda240a82bfad9dabf1ae9bac0130ae81c5dff39dbbe8df231abf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.13.0-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 c0f9da8d8c6a6cef986bed2488609a9073a8bbfbcb0985c12f42c8930155334c
MD5 eb44dfe672435534c8643951db24a286
BLAKE2b-256 e937b7d30dd5d73ce4b933a323ef62ed78eaaee19d51f007647a378280d6ad7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.13.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5598748e0a248664136518828583a89e2c26c827d1b6788444a5a2f122641817
MD5 21e6e389a920c34a68f7b91a298aa5e0
BLAKE2b-256 e26f066235104985d30a8a3605bcbdd9e790e46ff54bc1992fe80614ab0ea5fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.13.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 655c6c619933f9fb0eb5bbfc564a4f9c3a796df4e00d267b0a2f92fa750994dc
MD5 08c6907afeabdbbe2d159537f94b16a8
BLAKE2b-256 ebb81af1dee5c09ae171d9d416f882763a3950ee4e37f8f83175978c1475d6b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.13.0-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 09b6809a40b68095bf62cb035dd32eec994e6c2c091f44aeac598280174f828b
MD5 9835bbbd8fd7ba8f74e7ed122f238271
BLAKE2b-256 d98f814c7e6923f25a150652037ae1d1be88ac2bd2338f7833d347123fbcc285

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.13.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6f23ef0149c4b0b9805239592ae1b6b5f98efce34de6ea7a0ad0e8cfed8b1e1a
MD5 d780ae2b161e067048b6714ec6c26a8f
BLAKE2b-256 2c32dc1fdd30fbfe9bf31a19d38e1bfab8bbf1f0391fde1ab870ec7a3fb398cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.13.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0e52f7980059a4712038083e895abb0af10752b83efe99a68be720648375ed7b
MD5 d5d8e59fa3c54c6f2442668c188b1ad6
BLAKE2b-256 32478bdcb061cb912923f2daa3bb2d954c71814bae7c883bd2b19a5087ed5c1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.13.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 57cc95469dee0721f8eb6c5ee92b9e9ad7d3eb38cbb2f1c4025bf945e801d85d
MD5 2d597032b477ba64e7dd2f6d266ec7e7
BLAKE2b-256 b2256fa21ff22d6eac0f3ddce9e716b14ba8df103de3c77413f4fc31a5ef9082

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.13.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d3d233fb0cc822b5235bbaae7d8371b34b4d05eb8458f00cdcb958cacebe53da
MD5 4a9e7fc4feb47fe0307157809c8436ff
BLAKE2b-256 86c5da0cde347a91e384d69cb3b428e634922252d9a12aa7b781ef7ee4577ac4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.13.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f13ca8e82d5f115f422bea0f3fd777212e751de5a634118788e0cbcfc49a161e
MD5 ebc468e11b6a57312706dd2fdd936a05
BLAKE2b-256 77d7842965a41df922a20cbce5ce243a64623ecb8e9349938bcc5e67f645f602

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.13.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 872e385cac277d57b50e4aba8b9b672766002a4a3997053d8332bbb9b64fb8d7
MD5 bf0778acd860c3c47c935adcb8312a80
BLAKE2b-256 05fa8869aea3c534bb3b6d2769f8b9e25f2c61bfbb69ff2fac42c80751ea7e9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quantanium-1.13.0-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.13.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f48a4d1427f0fca08233663c9ef0ae5e055b324d03c02bc35382324f2add8bbe
MD5 9c03505a52ad04d28dbc6d710a477b4c
BLAKE2b-256 71cc23f704f6109f0c6b836a2d5e674a6aaa52f71a5bcca56c077a0840ad6ac1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.13.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 1916e99a16b341fa46148c11f2a52a3d8bc5c5fae152cc5a974d43d3142fe428
MD5 0edce846f527e89ab688b70e8c2253eb
BLAKE2b-256 3486024f695ce7268ab3b48272b76818a0ab63ada52717167969f405d6d2ba3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.13.0-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e341e3e51982558b5c7b961b5e879d3a7a31d898b0c5141a255ed4d9b6e60f2e
MD5 e3494087c5c7546f35e1a9a0d23d58a3
BLAKE2b-256 13dfd159bb04a8b561429dfeee4b6b5a2e0b5bcf6dcdefb307c9233a851a1a7c

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