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.0.tar.gz (65.9 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.0-cp313-cp313-win_amd64.whl (166.3 kB view details)

Uploaded CPython 3.13Windows x86-64

pyqasm-0.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (685.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

pyqasm-0.3.0-cp313-cp313-macosx_11_0_arm64.whl (171.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pyqasm-0.3.0-cp313-cp313-macosx_10_13_x86_64.whl (178.1 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

pyqasm-0.3.0-cp312-cp312-win_amd64.whl (166.9 kB view details)

Uploaded CPython 3.12Windows x86-64

pyqasm-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (696.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

pyqasm-0.3.0-cp312-cp312-macosx_11_0_arm64.whl (172.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pyqasm-0.3.0-cp312-cp312-macosx_10_13_x86_64.whl (179.3 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

pyqasm-0.3.0-cp311-cp311-win_amd64.whl (166.7 kB view details)

Uploaded CPython 3.11Windows x86-64

pyqasm-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (696.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pyqasm-0.3.0-cp311-cp311-macosx_11_0_arm64.whl (171.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pyqasm-0.3.0-cp311-cp311-macosx_10_9_x86_64.whl (178.4 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

pyqasm-0.3.0-cp310-cp310-win_amd64.whl (166.5 kB view details)

Uploaded CPython 3.10Windows x86-64

pyqasm-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (655.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pyqasm-0.3.0-cp310-cp310-macosx_11_0_arm64.whl (171.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pyqasm-0.3.0-cp310-cp310-macosx_10_9_x86_64.whl (178.0 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: pyqasm-0.3.0.tar.gz
  • Upload date:
  • Size: 65.9 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.0.tar.gz
Algorithm Hash digest
SHA256 27e486822e6c179555f25fd9cd83bc306e69d26114b005d6f6e5d1a94b5a4936
MD5 76a3c47d71e3445be33528d52539d7a7
BLAKE2b-256 a0f8bf682cc8455315989c469910e54f98e23ac15ddb810c3367995d321b5c06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyqasm-0.3.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 166.3 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.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2299028306272e8ab3c805cf7a04c0a88ab92a0cf6e6b318965e3d3dd7474ee8
MD5 177a3c86427aa95e6ad29a5196db8e1a
BLAKE2b-256 8ae1e6bf9a694545f542a62d9adcec246af0507e78db8659c2e32250eab060c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 84ce99feca6b7d8053559f4477c5d83d27da71c1f4b0e1b0e3e99a56c52442d9
MD5 da09a3d2fc30141ba0835d5c42159468
BLAKE2b-256 e6895ae4376943052fac02ada861b294ff9f67aa4eb297a7404ad4e3f54db281

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09093e4832f1d534fe37cf8ca832a3f3820d1fd46899fc6e9ac4e4732bffd1c9
MD5 4a818fbe2545bd45c20708e3c7f5b8ac
BLAKE2b-256 6738c685632db944a9dffb2e1b68f1e5115f6b04f11c1a43b9b10646ff5869c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 8d5abbd0f05373c1458220b0bc21f407172d51554ba8c2e74971d04a26f5cd45
MD5 ed8df218fdf8688dcd9b0771e341ebf4
BLAKE2b-256 897541758d5ee422b0dfca6788434d9a2be25be90fba43ea0c244913ebbeec68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyqasm-0.3.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 166.9 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.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 949d425ffb3140b988bf3d79efc678ff0a876c4cde60917dbf6daf184a40c94a
MD5 e882d69c9a2db57c2400612181befe36
BLAKE2b-256 986b25a3a7af035123c9d19274697e6336f02e38fdaa965e172e5c45ba53d07a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 76a7fdbf3849d60ee4329624f26dc9bbea9f40caa3c4549889b6f44d71315921
MD5 79e1bc6843420e6434b5c84fb264fdf3
BLAKE2b-256 c2a8ffb6ddbd8d40ef482a164ac2d72b3ccc64641498179f3b027f5c816dc9d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aeadc2d5692d64b1d01466710edf8d7532b7db44ad66b0150e14acddbf935ffe
MD5 83be25cf02b87cd850df702648ce685f
BLAKE2b-256 f0886735fb8e329e1e8245afdde8a5a4872be910e85e856fa39526d6d483bf62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 ddac0765eb943eace1873f271dfce8d35e6e75bde4b6d71fef371b326bd448f5
MD5 0dd5edcac6ce46d4571773560fb09b91
BLAKE2b-256 164efbf6812c95dedabb5d8520ffd0c69cca6270d7fb0e7bc90cabce449b6913

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyqasm-0.3.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 166.7 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.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f9aadb7cb19723ddcbb9fa3fde47ffc36d9dfdc0a39acb8d28e85baa85324e29
MD5 38df28be5cbbb9a589252a09b12f69de
BLAKE2b-256 be4da5bea7676615a0463dfc4a43bf67a19be635cf4c63d0301047bb125290c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 55733cff2672cd66a6c06efe4b584ccbf3ce6fe2027362fccb15285c2b06c376
MD5 0f027942144533c5965d3e32af2428eb
BLAKE2b-256 a96ec27709ffbf3dd578b79a9c9577739056fe0322c8f4226fcb3a93d9aa5ab0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4c9408a9d051b5c564607ba2ca0b007a86b63bffccb19860721ca06f2883060b
MD5 e5bbceaae44c388046edccb27b6f4d89
BLAKE2b-256 c6e09f4c1fb176d7391f0168731577ceb67e95f9494e55e5ccb2cb2eebaf3a5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 36adf089604f5888060ec00da55646b5a36bad16b2bd111c8bfb3333cc1a8499
MD5 2cc0a118ca5ca21b4dbf17d93165eb6b
BLAKE2b-256 5fde49d129ffa0d59b30113ae31c6465aa6e75a241f030df674a5ba8a3c5e8e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyqasm-0.3.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 166.5 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.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 badf90799e6429a4e5780ea97382366f4d6b4bf8b59a4bbfa1d361e89c0e6cf1
MD5 7661c10633b8c7d15036b7127c7d52a0
BLAKE2b-256 285d2e2554e308fe34a7d569513d051e98af7bc153ba6469d4bf90cf4ab3699f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fdb74a7ec482a3731cb23b8b976a4ac6138c1fa7c556f6ea261acbeb24636199
MD5 900aefe1409dbe8e3d58db6ba4d2151a
BLAKE2b-256 ead578cbd989727067bb2230b36a224632fc965ffc8acf69c458512f484a7019

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4502075d5a0ea74fddefeef1b07d65342982e079a264f3dd9fc5dec1a6de957
MD5 dadbf56352b98a138e6d62691c68bea7
BLAKE2b-256 62df725f1478d19ca2f3cc6364241ad4687d0ca74f29f58b805f0ea805aa37ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqasm-0.3.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 70a088a60fad4dd9633e88562f897983667563630b437be0f2f205d50d84dfe4
MD5 b18a26bfb71e72667600466d2fcee9c6
BLAKE2b-256 5304682a2196acce7060e37e3e397533999697056683f6b8d071b8fa5fcbc8a2

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