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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.13macOS 10.13+ x86-64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 10.13+ x86-64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 10.9+ x86-64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

File metadata

  • Download URL: pyqasm-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 e6d00e83a28cc555d186aec4fad38de624fbc59c71a6839af3bc52bed7a46de2
MD5 643bbfc1a4680977b3609ec38212cc70
BLAKE2b-256 be4c4d98baf0cce9264d225e998ce056adb79606cc31614e1b9181b6588c9f2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyqasm-0.2.1-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.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d28b52386b27badfb4dd57f2b62f7b2d70c2834dc9d994fb7d234cac307dee9b
MD5 bb5bc8c4bd4279617be5c5df17a789ef
BLAKE2b-256 9d11ebfd7c7de80bba29bcd9f691134d634fcb95c94aad9be006b479fbfb89d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 72c2e4315eb47af19a13759eaa0db5a8660ff456a6c5400d859d5e9e48d0c527
MD5 b15bac4d5b2c4a1b39ecf394c7984b86
BLAKE2b-256 254691a925c7aee2abdd9908c3a596fd791439d95fcd1617646c8e7e3057e372

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.2.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03e2666fb7987ee20aa52293ca29b8f309d3913bc41162bee298da74fc229411
MD5 eba3746960211b165401908a7a566618
BLAKE2b-256 649d48222fd3e3a95a2d178243996e37c15fd836c6874aefc4ee8c5a48e69c38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.2.1-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 cc60a77a797ff6e42885a0c19a2592d9b11784d13552f2f805f27fd850392131
MD5 9f01def9298a39657d8eb7ddea83a6ab
BLAKE2b-256 a0865b5244a5214bb0ea13fc25dd27315bbcfdc273f2d5f6a96ba44f34bc2e81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyqasm-0.2.1-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.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4e57936653a52cc58cb6879b97ff394fc882c817c7038c55655b0e3466647db1
MD5 041b00b5d9d772da54c1c40552a17203
BLAKE2b-256 7f72675766f78c841d769b1f660d5d1149160084a6880046be46733e856f4872

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4b23c9d6f6ae54c10886afbcd3f06499d09d3528a91d8cc0837d7a41e7cfa14a
MD5 20e8cda3deee5bf9c1ad013952db119a
BLAKE2b-256 99919af8c54b5c5325240df6d62c6c4ca90ef5b23846b2d83e72b25d1a9aa562

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.2.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3c40457b470a728d962b7e39f0995ff97889f8354896b4cfbfab832f5ce3d2e3
MD5 3e2a34043fa4a7771a3334e2d22af004
BLAKE2b-256 dc05a354928f437156b3f05189c2b011057a9c1c309301017820381c0bc76d33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.2.1-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 fea73529b678a0127c0f385913c1b1c863cf36328de5e72153359d9e458ee4ff
MD5 3997e11b24d88e44724510ba247a2c98
BLAKE2b-256 39c7bf2119745ab9c4ddf658b713241d5e4b62f03c543abca315ef6167389add

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyqasm-0.2.1-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.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d810eb00ffceee0ce5f852670b19ad6b58467c4fdb2467c4a386f3fa0b519af6
MD5 55543c71db11dc91b46608a4889c6b87
BLAKE2b-256 7a999cf468cf93f3c8e25a63e8651da01229f7c0db55788a8c332ccab384ed72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dcd07cf8cb569fb876463bd98504d18253fb65183df58c44ff58ea4e6dff5dbd
MD5 65d361f762798443519d56e7583a6d50
BLAKE2b-256 2ede6a037a18e37b0022b4a5e286a6a4aaf73756ac2a2e84d8528bf3a8e8ce7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.2.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e5923d73beec9f00a50e4cc980480f29decd1edcfd9be24e08c628e2ac3bead
MD5 d6e9987f6dbc959c2467f46756bea919
BLAKE2b-256 6dc7c505f891533a49408d3832e1de444738299238c4d092541b4052b9fc4f44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.2.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 77d5504dc617a2386bf394f3c64ec63bc701bd919e0705cc17ad123192da8a55
MD5 26e4ea4fa0caaca0a0dbccb371a3ae73
BLAKE2b-256 bf2379ac33e41c6d325f12cb93cf7a5064bb0ef49f340bb0c7eff17b38bd9346

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyqasm-0.2.1-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.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f60f5e682a08bc8759095ccacd94834ee118933f2c69cad22f85d9110da9a819
MD5 e860157fa8bf5cb3dd516bf60dca4a73
BLAKE2b-256 361e03b94a093e2fb556300f5826d77568a234b37588ce3fb98bcb1032b02198

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5013d59355fa02fe3bf8a8284a11e6c41f58232bc2d89ec84a491ebafc8eb037
MD5 d278879189723e29347f4e10133e0a42
BLAKE2b-256 927cc919b6f51bdc6890db9279ebc3e1e0dae0b9ab67a664c245347f54df15cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.2.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65cd0d0e32d42016bfc53476cdf2c0e5949a56ff06bdfacac7809e702d5272ad
MD5 3f43d400b444e495e4e92eb66c1940a9
BLAKE2b-256 d4a57138349b04a095903c6dde048b30d406e330e1cfa69957f48be4277e2922

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.2.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 42c11518605be61cb6318378bf9f85dd2c9cbe28bc1917e7cc625b16f152a259
MD5 f205bec57b64a7123aa63256643a85df
BLAKE2b-256 d7b21f2841f058d30505162acbb300da8e465988960bb5f39c496db59ce04337

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