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

Uploaded CPython 3.13Windows x86-64

pyqasm-0.3.1-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.1-cp313-cp313-macosx_11_0_arm64.whl (174.6 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.13macOS 10.13+ x86-64

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

Uploaded CPython 3.12Windows x86-64

pyqasm-0.3.1-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.1-cp312-cp312-macosx_11_0_arm64.whl (175.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 10.13+ x86-64

pyqasm-0.3.1-cp311-cp311-win_amd64.whl (170.0 kB view details)

Uploaded CPython 3.11Windows x86-64

pyqasm-0.3.1-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.1-cp311-cp311-macosx_11_0_arm64.whl (174.8 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 10.9+ x86-64

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

Uploaded CPython 3.10Windows x86-64

pyqasm-0.3.1-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.1-cp310-cp310-macosx_11_0_arm64.whl (174.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pyqasm-0.3.1-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.1.tar.gz.

File metadata

  • Download URL: pyqasm-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 a973061c60869ddaca617d64500b3a9c0b5899ba739d2471054ef8da3dd65b0b
MD5 c8154374e319d8c3ca8da4f851a362e0
BLAKE2b-256 1e4b44e0428ec696ccbdb76a227434ac742dc89aa4367b53c97b7db6e33d2650

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyqasm-0.3.1-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.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 976a26612980b06493b101519ffcf5643fc436dc3572549b369e2e89eae17f94
MD5 efb3021f859fbd4ac032e9489800a9dc
BLAKE2b-256 734be5376d75cef21b592bde61d34ed20ae293144406a6475773e7c66140bc47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a75a5323d88cc68ec642f807e8a6ee1500937c8c82f16563531e7fb42df4d358
MD5 d989af0f21629f51a69c42f843370005
BLAKE2b-256 e0984123dbde0f382c2be49cf60aeeb000e2f92a9adf30e3bd81649bf0822b2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d199fd7a891bac75c0020d3dd2581be3473ef59c87da6c7577e13eba95fdcab6
MD5 f49c304a85d653aed5fee48d9705a1bf
BLAKE2b-256 0e239f746761a9e42e355d0998319372c23986e8ba2d14eb635deba6b4568d82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.1-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 0bde3044a472878e758ac5e042644ef0f4366388899eb93bbf76663e7247d2d0
MD5 e24367940ff6e894c68d69f6b8300422
BLAKE2b-256 676b6647358de81e955f3213db78920e83d4f3d7a6e0a80013786d4c83adaaa2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyqasm-0.3.1-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.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 eb117e4296f2165f5bff11f19efcb73e0d038600856c409af52ff57aeab8b469
MD5 6bd217336dc58c44a264b3ab387c64d3
BLAKE2b-256 edcf8f29ca6ffee948830ea72b1beaebbb93f053b23d8104c52639a38378fa8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a1f9b46b83dbd2574c82c5316fc9ce74c9b712dc9250e40a53e22279fb23fb34
MD5 f9e3fe1303b2dfdf6c8d912fb78dfd7d
BLAKE2b-256 dec15753c1785c7596843de6508b3934b797dc8914a7284a8f4e67ba46061184

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 490aac5754c0b138570f532f503b504018f437ed61325220965d96b552aa4a54
MD5 45b100af88f7c8c96d76bfc061227101
BLAKE2b-256 493c615e604c99900eecd6c2e4027e81f2d4b4049550a65a1fe8baa2865cd060

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.1-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 b04def087c8cf1ea84e7b34d41691a930a9dba5b3b451791efdd075a39190182
MD5 e52071f37958b84cdeb151c7a35d1b14
BLAKE2b-256 b879edc4a837f7056cc41c00cdeda3977e06c6196ba9f454472692d085e3b409

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyqasm-0.3.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 170.0 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.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 615659dae17fd230d27b414170caaf347551ffae1414781749f9573e3efa073c
MD5 4f1a5b3222c156798dba2913d195319d
BLAKE2b-256 2322524aa6e39c47187980caa4056d117e0cd7de226895d80e579ef831c93806

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8d464413dc50a2c064d5f0549339caf5f276ec6e1490967e0c67f75c5f799990
MD5 dd0798ca1a3af8804e79f38a954f5e92
BLAKE2b-256 f5d1915abb35cba43f6c6a0261437897259284ed7fcac86b287a37d204b1b975

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 57209098000209d2d7cfbef1fbb94df017824fc23e6c6e05f94614c7b6966789
MD5 06bac862c9186c0ee6c457cacdc07eed
BLAKE2b-256 f5b22a0a0a1a6b96d4b164da23834ab53a04b9b287bf32b72c8d6b76e72496b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8cb6c591e048bb5fe9791bcaa1aa357478b8282f3e6db9af12b923b3b23f67ba
MD5 78abfd76d6e2144050a3307e92dc9b9e
BLAKE2b-256 5d6dfb5b77dddc8a885479521c077c1e78f1fe7ff7cb9152521ad790d7138085

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyqasm-0.3.1-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.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b5c329a829a4909d9a4153cb2a068496aa21582e5960b12ef1543614c48e8330
MD5 13405ea519cd30eb426087f4cf311766
BLAKE2b-256 26645a16b9b7ac8b2d19ea09ae00d21dc91df5d77320ce360f68b09f204a4c79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0f5061df96efcc223267ff0d515add031f1d9ede8ca19d5002fb0664df71a93a
MD5 204c86c38a71d3ff761c653d5267cc37
BLAKE2b-256 f6464c000ffab473c02f8d5553f54c32b33cd3881e2dda921abf66083bae5e23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 857523d8fdf41aea469908f48bb5f88d5e05482f8354e0ebabd06596cae2cf7c
MD5 8e76ad3e214118122219cac2eb5138e8
BLAKE2b-256 8f5fb863fc8911f672789512e09826145260347cf2c6b576c030275979524c16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 583267dca2b20cd67bb9ff9eaaa56e489e29e5763783375ccdd6e0a849afcb74
MD5 6ddc0d18722a6e6a417b05f92c2690d1
BLAKE2b-256 004afea2722013378d5e9761381122464c6a354708cd479e751a03f7899cb567

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