Skip to main content

Python toolkit providing an OpenQASM 3 semantic analyzer and utilities for program analysis and compilation.

Project description

pyqasm

CI codecov Documentation Status PyPI version Python verions License

Python toolkit providing an OpenQASM 3 semantic analyzer and utilities for program analysis and compilation.

Motivation

OpenQASM is a powerful language for expressing hybrid quantum-classical programs, but it lacks a comprehensive tool supporting the full capabilities of the language. PyQASM aims to fill this gap by building upon the openqasm3.parser, and providing support for semantic analysis and utilities for program compilation.

Installation

PyQASM requires Python 3.10 or greater, and can be installed with pip as follows:

pip install pyqasm

Install from source

You can also install from source by cloning this repository and running a pip install command in the root directory of the repository:

git clone https://github.com/qBraid/pyqasm.git
cd pyqasm
pip install .

Check version

You can view the version of pyqasm you have installed within a Python shell as follows:

>>> import pyqasm
>>> pyqasm.__version__

Resources

Contributing

GitHub QCSE Discord

License

GNU General Public License v3.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyqasm-0.2.1a0.tar.gz (289.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyqasm-0.2.1a0-cp313-cp313-win_amd64.whl (167.3 kB view details)

Uploaded CPython 3.13Windows x86-64

pyqasm-0.2.1a0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (686.1 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

pyqasm-0.2.1a0-cp313-cp313-macosx_11_0_arm64.whl (171.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pyqasm-0.2.1a0-cp313-cp313-macosx_10_13_x86_64.whl (178.9 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

pyqasm-0.2.1a0-cp312-cp312-win_amd64.whl (167.8 kB view details)

Uploaded CPython 3.12Windows x86-64

pyqasm-0.2.1a0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (697.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

pyqasm-0.2.1a0-cp312-cp312-macosx_11_0_arm64.whl (173.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pyqasm-0.2.1a0-cp312-cp312-macosx_10_13_x86_64.whl (180.2 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

pyqasm-0.2.1a0-cp311-cp311-win_amd64.whl (167.5 kB view details)

Uploaded CPython 3.11Windows x86-64

pyqasm-0.2.1a0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (697.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pyqasm-0.2.1a0-cp311-cp311-macosx_11_0_arm64.whl (172.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pyqasm-0.2.1a0-cp311-cp311-macosx_10_9_x86_64.whl (179.2 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

pyqasm-0.2.1a0-cp310-cp310-win_amd64.whl (167.2 kB view details)

Uploaded CPython 3.10Windows x86-64

pyqasm-0.2.1a0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (655.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pyqasm-0.2.1a0-cp310-cp310-macosx_11_0_arm64.whl (172.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pyqasm-0.2.1a0-cp310-cp310-macosx_10_9_x86_64.whl (178.8 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

Details for the file pyqasm-0.2.1a0.tar.gz.

File metadata

  • Download URL: pyqasm-0.2.1a0.tar.gz
  • Upload date:
  • Size: 289.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pyqasm-0.2.1a0.tar.gz
Algorithm Hash digest
SHA256 9a53669c47c751323e657276424c4f027901ab80524e449052edca0e8b80773c
MD5 6df5270fb66b41517cd967b1db34499a
BLAKE2b-256 b3f547290ec2f8229a11fa62bb51132e0fbccb7527f6e5f42053c92cc0dc4894

See more details on using hashes here.

File details

Details for the file pyqasm-0.2.1a0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pyqasm-0.2.1a0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 167.3 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pyqasm-0.2.1a0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 cdb2b02bb0af41762487051d84f94b064a0c868ecf7b9f167a6e6511829e146c
MD5 b8d47a2f84a514d96087a9a0731d2975
BLAKE2b-256 e80f04fffe4f5987343d5e6f4ee5b2a2d1a69dcb8be4c43ae00980ef069b0040

See more details on using hashes here.

File details

Details for the file pyqasm-0.2.1a0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.2.1a0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2e95e9f9299c599ccafd34d8bc60fe34187f5efc69cafd5a6805804754004de0
MD5 5b4d77cb077ecc55f6ae84fdb09616b0
BLAKE2b-256 9bfc61cbd9c9e037b53328cd7355e5be37c43d94056dd41759a81b9f20b219b9

See more details on using hashes here.

File details

Details for the file pyqasm-0.2.1a0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyqasm-0.2.1a0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a5047bb89ea92528e4baf4439eb13b1b3a5702f305e2690f948b46c135fc06e
MD5 7f5866d79a7bce61b23718f7a4819314
BLAKE2b-256 2f26bd6e98dd9c6c2c17cfee087743d391e18977cc5f04ad9cdea8560708de17

See more details on using hashes here.

File details

Details for the file pyqasm-0.2.1a0-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.2.1a0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 2ab78721669ac6cc4ab9ca34c02232b719cfe09a0b4b3c725e33f4b111d26503
MD5 01fc8a900b80b1a6f9be5b180e53cebc
BLAKE2b-256 a611c468a32b3a4722ae40319e05cded8d0fd2bd5a76cd7cf4dcc9ec03541f1f

See more details on using hashes here.

File details

Details for the file pyqasm-0.2.1a0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pyqasm-0.2.1a0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 167.8 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pyqasm-0.2.1a0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 57df2804981239b64be78e0e18fc3a288b70db80a76b1bbac8ad5e81f1a08d1b
MD5 1c878f8c6b140cdd80eb67e4668ad228
BLAKE2b-256 81740771d23d1d45e3fd0edfff9359e34b4489dc428626ea3af3ecba7f04ae44

See more details on using hashes here.

File details

Details for the file pyqasm-0.2.1a0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.2.1a0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4b9cdc7bdca3504d46dda27a5224ed310662d507106bc79cee3dd5fd7d17e1fd
MD5 58519fb8fab2e7e6485c03dfe2621af3
BLAKE2b-256 a1da45dd997809b890b5dba32ba0db673caefaed67015ac6629993742ab443a4

See more details on using hashes here.

File details

Details for the file pyqasm-0.2.1a0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyqasm-0.2.1a0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c62abb4c42748593d966f83ab0713cbcba6b1eef36a365ccc8c702939f3c3a7
MD5 10cba76420a6d5a7b98afabb6175484a
BLAKE2b-256 1ddb0dae000aa28ce68a030ac85e2f808af93f3605da690ceba8ef89ba1d0cb9

See more details on using hashes here.

File details

Details for the file pyqasm-0.2.1a0-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.2.1a0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 cea6d56006fbc357f576a2f8b442fa4c36f21a617b9bd5cbda44761dbabc05cc
MD5 0c05beb2c57d2a2fc9bc05c098f2b14a
BLAKE2b-256 588ad490e842a1851aed574dae233031f508fe12f2a84e63f80da49e8631fb82

See more details on using hashes here.

File details

Details for the file pyqasm-0.2.1a0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pyqasm-0.2.1a0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 167.5 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pyqasm-0.2.1a0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 50aac93e8c96554b318d0df93fe17e80127411b3d19abda1a1b057668241af2e
MD5 ac7cc0d204ae2520f131dab68fce3a25
BLAKE2b-256 ee40af6bdf922f639d85aea3ec9740430cae16c015dd2246fed13f2f040bab14

See more details on using hashes here.

File details

Details for the file pyqasm-0.2.1a0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.2.1a0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3e3eb6e52f7c5de874a83edd59173b1a775bcd7d3ce4d5d4f4318bd88611695b
MD5 ef633af602a753ecaf6f68633b2ab025
BLAKE2b-256 1ce6a204d06acdc48e63fc5d9c5518bf20d71b9720af1cce38cf9c92595cb1c4

See more details on using hashes here.

File details

Details for the file pyqasm-0.2.1a0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyqasm-0.2.1a0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d696ca91fa7d17dc1a75b722aad432e0b3a0e2ac07fdda28063fcf87232dd950
MD5 b21b0abc78e621368a94f886b86fd88e
BLAKE2b-256 e56a7b96fd21bda29a3b513af90c15e6f824a392b8bdeb46ecb49e93a6228b06

See more details on using hashes here.

File details

Details for the file pyqasm-0.2.1a0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.2.1a0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5c2eee99e05db500592ef995a304340d3aa557b44daec15e685600c053500800
MD5 057f71f537380c952a2cd7e26f55ae61
BLAKE2b-256 32d47805d67963e38159227156cb751914aa99f6957cadf460e569a3ad315674

See more details on using hashes here.

File details

Details for the file pyqasm-0.2.1a0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pyqasm-0.2.1a0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 167.2 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pyqasm-0.2.1a0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8eb3fa195511d36167118a0df1820bd37eed5a578e5a169112e43fdef86e8b5d
MD5 892d80186788ed8128a890c939f3f5fe
BLAKE2b-256 728bd54b565df7bb3c4c03ad1798f414315b249a88941ee30a2d7636a1bce67c

See more details on using hashes here.

File details

Details for the file pyqasm-0.2.1a0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.2.1a0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 71322965969bf103b160d1ce77ebb722fcb35a3fca738df447c9a95c72a6fdda
MD5 b933aa04cbab813aea07ad8810e3ed15
BLAKE2b-256 dcb33ead9811416bf684a6e89666e3f7a480ba06f9e3b147af4124ee20456215

See more details on using hashes here.

File details

Details for the file pyqasm-0.2.1a0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyqasm-0.2.1a0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8e6c3e468fe07db91fbc6763591a2c0517d3cd2fd9fbe1ee549fa6a77142e85d
MD5 07290572b435202ac50fce4725b63bbd
BLAKE2b-256 ebb8115c066fe4e92dd1723f5b2e5d10b20cbb5b26b7cde2815fa67877330b95

See more details on using hashes here.

File details

Details for the file pyqasm-0.2.1a0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.2.1a0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 43daf6fac4f767258f81bc11e2113b0a0e933e93b751726e30cf869d3a3030fd
MD5 31ee8a349dfb0d4ce0126fae85468786
BLAKE2b-256 75872d0ec7680437beec07ad34a2a7606d2e9a62f0e45c5579cc9de25b7d5287

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