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.

[!WARNING] This project is "pre-alpha", and is not yet stable or fully realized. Use with caution, as the API and functionality are subject to significant changes.

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.1.0a1.tar.gz (287.5 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.1.0a1-cp313-cp313-win_amd64.whl (161.5 kB view details)

Uploaded CPython 3.13Windows x86-64

pyqasm-0.1.0a1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (679.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

pyqasm-0.1.0a1-cp313-cp313-macosx_11_0_arm64.whl (165.5 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pyqasm-0.1.0a1-cp313-cp313-macosx_10_13_x86_64.whl (172.5 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

pyqasm-0.1.0a1-cp312-cp312-win_amd64.whl (162.0 kB view details)

Uploaded CPython 3.12Windows x86-64

pyqasm-0.1.0a1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (690.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

pyqasm-0.1.0a1-cp312-cp312-macosx_11_0_arm64.whl (166.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pyqasm-0.1.0a1-cp312-cp312-macosx_10_13_x86_64.whl (173.7 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

pyqasm-0.1.0a1-cp311-cp311-win_amd64.whl (161.8 kB view details)

Uploaded CPython 3.11Windows x86-64

pyqasm-0.1.0a1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (691.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pyqasm-0.1.0a1-cp311-cp311-macosx_11_0_arm64.whl (165.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pyqasm-0.1.0a1-cp311-cp311-macosx_10_9_x86_64.whl (172.8 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

pyqasm-0.1.0a1-cp310-cp310-win_amd64.whl (161.5 kB view details)

Uploaded CPython 3.10Windows x86-64

pyqasm-0.1.0a1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (649.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pyqasm-0.1.0a1-cp310-cp310-macosx_11_0_arm64.whl (165.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pyqasm-0.1.0a1-cp310-cp310-macosx_10_9_x86_64.whl (172.4 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

Details for the file pyqasm-0.1.0a1.tar.gz.

File metadata

  • Download URL: pyqasm-0.1.0a1.tar.gz
  • Upload date:
  • Size: 287.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyqasm-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 634d327bd2a0f64c1291c26f3ad8e125edb9cd572b6aae0fa5442a55d82d8946
MD5 4c78cd85edc96d851c3ec3294195cbf2
BLAKE2b-256 2be473ea8bcfb8d1d57eed10ae97ae6d0fc57a11f5a10cb82e1c3098c9363e8b

See more details on using hashes here.

File details

Details for the file pyqasm-0.1.0a1-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pyqasm-0.1.0a1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 161.5 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyqasm-0.1.0a1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 be5efd2b4d6dcdb840e38245ecbd5cf07560fe5f548e2d362382d6a9d00f8e83
MD5 0241450ce4c974baee408eaf3e202ba6
BLAKE2b-256 2103ce5a29bbe28118a35241fbbfd5b93b36e492fe2f570840706b3b387142ce

See more details on using hashes here.

File details

Details for the file pyqasm-0.1.0a1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.1.0a1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 14e195fcae3a14991afa71ce6453e425f575bc8b9e7ac216663a17c2574b57f8
MD5 f3e6e2a6cc2bad7b804ba8c4032b0b15
BLAKE2b-256 34f928eab2af58a595c55815d54409dd5170127e33baa47cf41091cea8b68bc7

See more details on using hashes here.

File details

Details for the file pyqasm-0.1.0a1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyqasm-0.1.0a1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 152150398a27463405c42ee285f46ed9958b2dd6383dedc352077b7cad4ca474
MD5 a0cf15bbf127aa4e70ab64a8fd27aec4
BLAKE2b-256 cb8e6f8a32196268c993b8285b630b4f744e9082187461c802bb5eca0d9a4a52

See more details on using hashes here.

File details

Details for the file pyqasm-0.1.0a1-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.1.0a1-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 2e7857000464c1c340bcc0331de7732c2c71492aff51425fe0ea98d411484255
MD5 c7150ba06048e7e4df404b2aec7d9b3a
BLAKE2b-256 87facf975945cfdd607c13a3c7b44fa1ba0ac54124e1fde6ab7170127d61f601

See more details on using hashes here.

File details

Details for the file pyqasm-0.1.0a1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pyqasm-0.1.0a1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 162.0 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyqasm-0.1.0a1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2e02e39724c7e77ebb02772ed1dcd1263537345bfabafe0f956212600d1b8ccd
MD5 4b36db0e6ce9ff6d238617de6c06e75f
BLAKE2b-256 8858f167ec68d372ef52c1f8c7322b8cf89242a1b6ac997b19046e50a0211636

See more details on using hashes here.

File details

Details for the file pyqasm-0.1.0a1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.1.0a1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 783f3967b232a4309028fc6a1b7edf3314cd03ac7394a3ecbf5945edde7ee39d
MD5 35337a6af12e34c128317c5229e72330
BLAKE2b-256 6a88c863e2318485fd0f1738bafefd5387375478843c1298ca4a9a0af4c8fc51

See more details on using hashes here.

File details

Details for the file pyqasm-0.1.0a1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyqasm-0.1.0a1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d24053a824ed26855e4eee6e9a1f33aeb0c43c1d24a765b00fa6cf7ab2198b0a
MD5 8ff24dc104b37e2231544ea293ccf19a
BLAKE2b-256 c235de1583caf2325801cf68ab56c98ea22f14a323d006623f191f52f5e7e9d7

See more details on using hashes here.

File details

Details for the file pyqasm-0.1.0a1-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.1.0a1-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 68a518c6fc071ae7c2571baf53749883adacb0cb20083425458b0286c0feb0e0
MD5 c778df78adeade1a7e0b426cdb190e9d
BLAKE2b-256 6bd4cb8b2c40cedea54500146315c745ca4d7d679b4f45d7401f5f0ab247b0d5

See more details on using hashes here.

File details

Details for the file pyqasm-0.1.0a1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pyqasm-0.1.0a1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 161.8 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyqasm-0.1.0a1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d6454725f44e21f362fbf0269e7281d6009c9c8b98fd6f87442e020230024447
MD5 31db4ce96ff855420046abf4003c3965
BLAKE2b-256 1ec49514bebbf7585842db0993325328638c8482c346776d35ffdac8d96199f2

See more details on using hashes here.

File details

Details for the file pyqasm-0.1.0a1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.1.0a1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b1e716948d30c2433838f26c982e25ac1b4c5053dd32bc255f583b1ea8dee1a4
MD5 06c4d0b0429dcb47ccac32b0623d6bc9
BLAKE2b-256 c510757f1daec3b2860aedfaf77ffbff0f88ee55378f92938f01a89265f6c25e

See more details on using hashes here.

File details

Details for the file pyqasm-0.1.0a1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyqasm-0.1.0a1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fa473f6d3c87fcc0664e753fed650c64b373fe6927320726255dca0c27be4bf1
MD5 70b5980db171345c52880dd9d08518f1
BLAKE2b-256 4dd47caa89f12b21adc743aaf076c65b91f48def90256e7d640fa8f81fccf47d

See more details on using hashes here.

File details

Details for the file pyqasm-0.1.0a1-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.1.0a1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8e1d2f5ba6b7be952954c03c35f10a5988c3c474083b44b9558ed3e3b0198d92
MD5 8a5ec34d0ef31d8d2c6a03c043e4f786
BLAKE2b-256 c99a8fa98ad2fda8514dc03fc4f5ae31dc8bd701878a5090c09fa5b11e1db706

See more details on using hashes here.

File details

Details for the file pyqasm-0.1.0a1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pyqasm-0.1.0a1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 161.5 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyqasm-0.1.0a1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5f26fa9fcd542191719969bf7593937f7726990a53030ea6cf81397e0fe0c807
MD5 cd46a6a96c708bc9d0e48a33694e54bf
BLAKE2b-256 01e10205ef67857020fd7c7f4f0f7743567fee0aaca77b29f696bc9cd5e315e4

See more details on using hashes here.

File details

Details for the file pyqasm-0.1.0a1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.1.0a1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 638a4665080e8e3c25edcd34b7aede6465ac151d71a78970a9f32478cedd0794
MD5 85adfff20d9fb73ef043026f7de9266b
BLAKE2b-256 4ee94b79e0b5e15eeae9f6d00381f8c3828c4f0141f420e3fdbda5a1384752dd

See more details on using hashes here.

File details

Details for the file pyqasm-0.1.0a1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyqasm-0.1.0a1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 07881764c505bcdb3d435369ec8bb225d2b43817ce5c6a0fc3d973541be17081
MD5 11c4f1b2eea4e8cae6fb83d3c61399dd
BLAKE2b-256 d374b98aeac4f070e74b8023283468bf0e316f900724c9c4531fd0da048bcf30

See more details on using hashes here.

File details

Details for the file pyqasm-0.1.0a1-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyqasm-0.1.0a1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c7dfc39da5d8ed0af9303016958335ee360b6a747be5cbbff1bbadf53ef26536
MD5 242f43954c8b6df0221ef6ac0c6fb212
BLAKE2b-256 84d72011b62eb32708bc7baf71106de29da0fb6038c7fb1e7693145c7b78d34f

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