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

Uploaded CPython 3.13Windows x86-64

quantanium-1.11.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

quantanium-1.11.0-cp313-cp313-macosx_14_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

quantanium-1.11.0-cp313-cp313-macosx_13_0_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

quantanium-1.11.0-cp313-cp313-macosx_13_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

quantanium-1.11.0-cp312-cp312-win_amd64.whl (5.2 MB view details)

Uploaded CPython 3.12Windows x86-64

quantanium-1.11.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

quantanium-1.11.0-cp312-cp312-macosx_14_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

quantanium-1.11.0-cp312-cp312-macosx_13_0_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

quantanium-1.11.0-cp312-cp312-macosx_13_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

quantanium-1.11.0-cp311-cp311-win_amd64.whl (5.2 MB view details)

Uploaded CPython 3.11Windows x86-64

quantanium-1.11.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

quantanium-1.11.0-cp311-cp311-macosx_14_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

quantanium-1.11.0-cp311-cp311-macosx_13_0_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

quantanium-1.11.0-cp311-cp311-macosx_13_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

quantanium-1.11.0-cp310-cp310-win_amd64.whl (5.2 MB view details)

Uploaded CPython 3.10Windows x86-64

quantanium-1.11.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

quantanium-1.11.0-cp310-cp310-macosx_14_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

quantanium-1.11.0-cp310-cp310-macosx_13_0_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

quantanium-1.11.0-cp310-cp310-macosx_13_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

quantanium-1.11.0-cp39-cp39-win_amd64.whl (5.2 MB view details)

Uploaded CPython 3.9Windows x86-64

quantanium-1.11.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

quantanium-1.11.0-cp39-cp39-macosx_14_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.9macOS 14.0+ ARM64

quantanium-1.11.0-cp39-cp39-macosx_13_0_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.9macOS 13.0+ x86-64

quantanium-1.11.0-cp39-cp39-macosx_13_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.9macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for quantanium-1.11.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 02db0e9a32ab40101b9fdc957c5485913ad694a6f579ab3e190230ad2f82f5a8
MD5 aec2645fefa5e08b4f00d32e338cf727
BLAKE2b-256 d38962b6637847d108b6577860fccc77fbe3bd181c08cc1834501a2998b689ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.11.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8f1f9a71eec0c89342c653750b0a859b9fefab075b0df15478033d0e5941c5a6
MD5 4137db3956f4b8fc63513b704651e58c
BLAKE2b-256 d42e3a56545c23369b73ad388eaad4bfee76d358c648e21624f3d4a53c7a1441

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.11.0-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a4a710e07484006dcb08e0bdd02b947dfb1aa39a31a6325daa9bb3843deb339b
MD5 8297ffd195e92000862de3032bde0362
BLAKE2b-256 b21fc422aec8a258d69b2e0faa2e2fd0ee04c8ca96f8b25842f879d5c938619a

See more details on using hashes here.

File details

Details for the file quantanium-1.11.0-cp313-cp313-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for quantanium-1.11.0-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d903b72a5a72271a2a93284035777c69f3f4b0f596659be8c55ec09cc77024ea
MD5 bd7a58839d8f5120c9848eb24633c122
BLAKE2b-256 fc094e1a90107f1044d065483f1b19dfa2189bd1014f1fa089221d81daf34858

See more details on using hashes here.

File details

Details for the file quantanium-1.11.0-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for quantanium-1.11.0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d53b8e0c7c0c90e2a0abdba22f4d38560ab7132f0551ad818a88b65fecd6cee4
MD5 c63b81c99a48059b60809d26f0ac828c
BLAKE2b-256 2585ee1ace9d4e18c762e08a366bbbd2cb5c64acbb4ac532c1b78940936b7f1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.11.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 49b5c5158a3b4739230e345b09ca3d3035413bac0207f9744e2e2310b5326a3e
MD5 d5a6e20f9d38a71db57c9ae5c61ae17a
BLAKE2b-256 7beb8696e4e44310ff0245caef00b0211ea0c489553cb0af3d799a5ed03091c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.11.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 27e53b57db90e553d2d27e6436b1f38f200ef1256d970fc109aa3bb669d116db
MD5 519119640e9e0798d7a9ae7e537236f4
BLAKE2b-256 eb2906c5520beb6e9ffef94bbd71b4adadc271dd87156e5982f0258cb51b4f74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.11.0-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 c933572952bc94740a8ada150ec1010cc80ccaab94ae4a5775e3c000ce3d7932
MD5 b5ca1db8d40bb7b35aac3f5dc92c7e80
BLAKE2b-256 8986f7e1a552c182270b5ad0b27980ac088f3cd64491de5105785efce3312b41

See more details on using hashes here.

File details

Details for the file quantanium-1.11.0-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for quantanium-1.11.0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 e96b6224c399e3130d15c6812447ceb88ff113bbae78fb9392df8fd9f1b31ea5
MD5 f3bbe39c21ee9db874127a43191995b8
BLAKE2b-256 9d63dacfbda372807a8dfe7327fd693f7ed854de84c0776e5115f26ce532e55f

See more details on using hashes here.

File details

Details for the file quantanium-1.11.0-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for quantanium-1.11.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a16cef7d19cda47b8e6ef353cca3b1c145e58555b97662b5f6f2e13597854530
MD5 4f301a8da0f26b01a49fbe5d1568ec12
BLAKE2b-256 c51a169ee04985480059ff6bab2e5bf53d5340be68670ae1a0dbe580f55f944c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.11.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9539e780183cb5f84bbce12f56630e9dffb00bc4b5eb9183f67620dffa6c58ba
MD5 e02a7acd28c681afb1de528aa2bcc0c8
BLAKE2b-256 61ca9bacdc981e6a332dd997ec6fb19c4d6b004947ed31f4f6d35916149bb6c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.11.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 02b966c689a52c2a0c62d4e3ee1305b14b340d26eed49f511b83b6a776679914
MD5 9925b95c3c689dd1b578fe037e6d019f
BLAKE2b-256 433869c290c742f2ddf91493ee56bdb6cb3431bb3c111e3e18edc7f4bae9d334

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.11.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 cb68a5843cede990968419d3f95541d025802cc9c269e6bc3f5a9cb512911751
MD5 d68560c2e3eacca3e035820abf262bff
BLAKE2b-256 fe146434d20cac57d1e52429263dac23f74ffce91e7926a5b65e784765761617

See more details on using hashes here.

File details

Details for the file quantanium-1.11.0-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for quantanium-1.11.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 7e8c666a98ca1175e6f3b1f3981ae5e4f6134f26bbf0a8ee382cfda9e5ed0245
MD5 def8db74c0b2a0c94293feb1e7b371b1
BLAKE2b-256 7abcdac1971fa8ec5c6550cace4fa6fbf2dd3e8d6448fc50b8172f1d60696a27

See more details on using hashes here.

File details

Details for the file quantanium-1.11.0-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for quantanium-1.11.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f912430532509744a766116a5b705634165303082a6d2c323a5bf9fa71b40d01
MD5 fbdd33072e46937474dcc1f9d7d80469
BLAKE2b-256 2458a6a98dc2682f264c314fe5b28927e3ed481a5ca3104e75b3d157da2d1d81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.11.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 08533f11ef7939f2e7ae0d0d5fe5b2b5dc9a3e6503328e1e5ca34d2b9d9a01e3
MD5 96ce79d4a7c0e111b397616bdb3bd835
BLAKE2b-256 de687cb1393e3c88ba7be635eb320b34f127244fd834cf5ea29a98dd0346177f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.11.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 425a5a4d8e9c98885e8770725835ddecb0abe43e520669d8d4d05c641d445dc4
MD5 6c4d5bc11d6d54680c5ff0194987f287
BLAKE2b-256 fa5083be959709843834eb44d2838c85e317b60bd58af5b571201c8a27081b4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.11.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a664f12d7f0d6558ef2273cf1851a361541ea6a50b775563441dc62df06d72af
MD5 52f5bf3999d7b15af881378cc0f2b13e
BLAKE2b-256 c417c7d0ee754033051b6168effb1c70da38556796a493a17a7a3b23931a318d

See more details on using hashes here.

File details

Details for the file quantanium-1.11.0-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for quantanium-1.11.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 1dfebf9b4c1bd62e5a70d2a17977e1b9fc31a0bcecff85bb40f4e8bd444306a6
MD5 24e8d181347547af47d8569516ae016b
BLAKE2b-256 22927a28e03141501825926a1a003c861fff77d026b712cf6e202039f5bc46f4

See more details on using hashes here.

File details

Details for the file quantanium-1.11.0-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for quantanium-1.11.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 47215e943ff1786fc54d95e738d19b26cf54893b095e82d6355b1fc69b90d387
MD5 aecab813c34805c584adea718020bbd1
BLAKE2b-256 987b7708bb98b5ea9139d33a5db8cc7e96a1c389c46bf7e644004e502b67fe2f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for quantanium-1.11.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 75bb01b5f1bad47a83f0e035a1eff6c9c2875c2c5120be1c424e741a2af00323
MD5 14859092c043141edffd8c7309305fca
BLAKE2b-256 9d2a2d3dfa7ddaa4f6d821376858c7437e2315caf02d6b5637ceca4d0c688291

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.11.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4d7eae471d7abf858687b8e5fe34df69839a380a0529231dfb79a2efbf051458
MD5 d76d1a253e5d3e0feebec3f20810dddf
BLAKE2b-256 76db58001ebfd25ddcb2c4e94375d0848934a4594609fcc659cb431fb893b4d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantanium-1.11.0-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 b2b0970886dae268c07517d1cd4ebfe1af5f3379244ce1e55a751500be13b9fd
MD5 4b4e6c8aa053ba88ee4f21519770682f
BLAKE2b-256 304d62693f41b72db783dfa5f1da5ddb8418bcf39e1cf0752b7b1cb48d4c74a9

See more details on using hashes here.

File details

Details for the file quantanium-1.11.0-cp39-cp39-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for quantanium-1.11.0-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 f569e239ee61b117081c59bccac36fcacc0cd4351a672820bee7ca38b2409bca
MD5 1bb5b0405e7508dd14248193a4e92e90
BLAKE2b-256 a89a17a7997c26a3e79d0bd804ceb5b9ad6106cc713c9c1c2ee32b3f2bd26920

See more details on using hashes here.

File details

Details for the file quantanium-1.11.0-cp39-cp39-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for quantanium-1.11.0-cp39-cp39-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 26f2e92c9293ca603349b2f42f5d0ffdcbfc3d7e9ca7d10775ba3e0d81f2bcf7
MD5 6a75b6b451f4da4e43b2be0547aa107c
BLAKE2b-256 2254b7cf479fab334094a331bde02533498ff6ddbc1eb2b8e8db19bf78d4acf3

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