Skip to main content

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

Project description

pyqasm

CI codecov GitHub Pages 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

Apache-2.0 License

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.3.2.tar.gz (68.6 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.3.2-cp313-cp313-win_amd64.whl (169.7 kB view details)

Uploaded CPython 3.13Windows x86-64

pyqasm-0.3.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (688.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

pyqasm-0.3.2-cp313-cp313-macosx_11_0_arm64.whl (174.6 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pyqasm-0.3.2-cp313-cp313-macosx_10_13_x86_64.whl (181.6 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

pyqasm-0.3.2-cp312-cp312-win_amd64.whl (170.3 kB view details)

Uploaded CPython 3.12Windows x86-64

pyqasm-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (699.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

pyqasm-0.3.2-cp312-cp312-macosx_11_0_arm64.whl (175.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pyqasm-0.3.2-cp312-cp312-macosx_10_13_x86_64.whl (182.8 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

pyqasm-0.3.2-cp311-cp311-win_amd64.whl (170.1 kB view details)

Uploaded CPython 3.11Windows x86-64

pyqasm-0.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (700.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pyqasm-0.3.2-cp311-cp311-macosx_11_0_arm64.whl (174.8 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pyqasm-0.3.2-cp311-cp311-macosx_10_9_x86_64.whl (181.9 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

pyqasm-0.3.2-cp310-cp310-win_amd64.whl (169.8 kB view details)

Uploaded CPython 3.10Windows x86-64

pyqasm-0.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (658.6 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pyqasm-0.3.2-cp310-cp310-macosx_11_0_arm64.whl (174.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pyqasm-0.3.2-cp310-cp310-macosx_10_9_x86_64.whl (181.5 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

Details for the file pyqasm-0.3.2.tar.gz.

File metadata

  • Download URL: pyqasm-0.3.2.tar.gz
  • Upload date:
  • Size: 68.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyqasm-0.3.2.tar.gz
Algorithm Hash digest
SHA256 d1d78b085bdc393252858990ea96df262e6d5fea06656ad09754d8ff06814e56
MD5 baef68c84fad9d02061951a11672b593
BLAKE2b-256 1ea0275c86b8cc0f0cc039b1f43f4ec5a29006815b6627a38102e16edca1106d

See more details on using hashes here.

File details

Details for the file pyqasm-0.3.2-cp313-cp313-win_amd64.whl.

File metadata

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

File hashes

Hashes for pyqasm-0.3.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7369d79c5b70a266417756fc05d592f4f09588fa0eda6ca16aa6f8eb7103d224
MD5 51eae20a73c4a6359157649b882c2a4e
BLAKE2b-256 6d40f6f98c306e34dc85d6ab8a8a0fa29b71e8f8e630e3a79acf1eb9cee72b67

See more details on using hashes here.

File details

Details for the file pyqasm-0.3.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.3.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f10bd1f5a569e37012bf9f5020b446acd1702128b09ee11d29750a5ba330a958
MD5 5e2525160537791cc26d7bda75fe72ac
BLAKE2b-256 72b3cf798a356ccc5ee9a9d763a8472fc5cbfa86c3890e16cf6f15edf9f01748

See more details on using hashes here.

File details

Details for the file pyqasm-0.3.2-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyqasm-0.3.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3babfde8e40b48133d3ef0f2745a6edcfdf633849758d454da393a4b05b2e3cf
MD5 384314c13389898b7031d15c1565389a
BLAKE2b-256 a2b0a1c487c1d853f9700218370af55508fd272f4a7180104a8075326f9be1b1

See more details on using hashes here.

File details

Details for the file pyqasm-0.3.2-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.3.2-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 411dc1eada91537250a0311ce4f707a5cbbd19d1db3e3e4c1a5b238e12f9dbd1
MD5 9c8cf997cc375c71570567463fedf0ae
BLAKE2b-256 5a22d55fc86738b7676ed0fd59692b6a477129762bc08d8ec84e3dded8d9d6d2

See more details on using hashes here.

File details

Details for the file pyqasm-0.3.2-cp312-cp312-win_amd64.whl.

File metadata

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

File hashes

Hashes for pyqasm-0.3.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d3df3088efa31ada5b0afdaa359c3153be2da8d963a466f640646e003bc170e2
MD5 e1f4e54a86eadab2cf688e45b59e60b6
BLAKE2b-256 a3e99805b729a8339dd1c0a76ff27413de56b92356aca01fa32cdef7476a4db4

See more details on using hashes here.

File details

Details for the file pyqasm-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a86a0a0d33ed1a620c6db5e6e4ffc44c00781308521b54a1f0582ec3b6ae72e8
MD5 ae0fbe3995a9754d592bec8f1cabc390
BLAKE2b-256 7051d736df038f30dd6b0bca25212284cd8584f312a2a604466f084096e3c143

See more details on using hashes here.

File details

Details for the file pyqasm-0.3.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyqasm-0.3.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b69609f842f49fc4e2bcb4a52596137c6d4622d05d36d2f643e2d19762855bcf
MD5 dfffd3df1edf79d65868f1d556c4a9b8
BLAKE2b-256 ca0f03f1ebbfab153f4348ee09f59ffecb82d5b9e2b3e3aad475742ea6ade899

See more details on using hashes here.

File details

Details for the file pyqasm-0.3.2-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.3.2-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 2a94b5e289cc9e21edf97992b7630c58bf611e839f51b11b185460b9a2eee81b
MD5 c33b73fc4abe4390aaec43c968e31a1b
BLAKE2b-256 0375be36901f8f0aa6f8a8cfc2873998b4542f84973262617e88882deff31e51

See more details on using hashes here.

File details

Details for the file pyqasm-0.3.2-cp311-cp311-win_amd64.whl.

File metadata

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

File hashes

Hashes for pyqasm-0.3.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 358903b438654fe76e8d7c697ad48b607f26feef3114ac15cb25abd68e3e0784
MD5 30789398f71cb2b01631c2f0ad98cd69
BLAKE2b-256 d92691ade87733024fc1a9d7a30e250f91a486d2d814b004b8caae04eb78cb26

See more details on using hashes here.

File details

Details for the file pyqasm-0.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b98fbc852b541809b67de9132e318d6fc4243ab6e9f55afa750ac099c20cb8eb
MD5 9de1009d68bd73716e4d3cd606f85ce8
BLAKE2b-256 104b5ab5183ae8ba88524bb1242d4b2d2b06b86ca9b0245cd1774e8d560f4486

See more details on using hashes here.

File details

Details for the file pyqasm-0.3.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyqasm-0.3.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4b5b09501d77fb48c57cbb5cf9cf426a20389867072957e72bf6d4126d4c0f53
MD5 5587982b345967e6fbd0ac44f78567a7
BLAKE2b-256 74828e8c87a60996e916d96014f14debe29abc41b85fdbd0364f014e4cf8781c

See more details on using hashes here.

File details

Details for the file pyqasm-0.3.2-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.3.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f19aea29f8f74f41780943575deca8ff7a13ccb8dc6259cdfdc9e48e792a22f4
MD5 473c72f71bfb98449d60c4c1688e9408
BLAKE2b-256 f4d38454b73da45cea78bbca4f3a1126b02c3be01193aacbfc8d07b96149f773

See more details on using hashes here.

File details

Details for the file pyqasm-0.3.2-cp310-cp310-win_amd64.whl.

File metadata

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

File hashes

Hashes for pyqasm-0.3.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 03ef9a497f4f3af8013aeb4489b443eea894fe1650515be2dd92bf0227099a67
MD5 8257dfc5ac5491babb80aa941f4bc5e7
BLAKE2b-256 548b2ef4bd894809958300fdba210716cbb526863fe426bd5117db0696c5f1d2

See more details on using hashes here.

File details

Details for the file pyqasm-0.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 de7681d08a973291fd5fe43db528491e2b920664b1704bddf301133048063def
MD5 9d501595927932653c00fcc0f995aa97
BLAKE2b-256 ea76944a6ec4778db08c6f177950955ef83c0aa016b21439e2047518268b6400

See more details on using hashes here.

File details

Details for the file pyqasm-0.3.2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyqasm-0.3.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6127c7057c7c79a9864354e586417e699b7e37a3d295751d759791490c1337d6
MD5 baacb593fb22000cf56d7b42252527a0
BLAKE2b-256 a4090959fd4c16868b1d18588fb48c16a39afb61e03d98a9bf16d8b59004aec5

See more details on using hashes here.

File details

Details for the file pyqasm-0.3.2-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.3.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0480e8fd9afc6c4e0c3d058edc49ecbc5a0ef0c058d9b0038ad59e1d6e8e9b5e
MD5 63872d02e3441354e29f4ef468d2db39
BLAKE2b-256 044e3c78322e2bc8b473216a75d8fb21bf54ce5f1bb01a5b180f306a011c4960

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