Skip to main content

Python based QIR parser library.

Project description

pyqir-parser

The pyqir-parser provides utilities for parsing QIR from bitcode files into convenience objects in Python. It includes mechanisms for walking the functions and blocks in a given QIR program, with additional support for QIR-specific conventions like getting static qubit identifiers or measurement result identifiers. It is not designed for output of QIR, and does not provide any functionality for modifying or transforming the parsed QIR.

Installation

The package is released on PyPI and can be installed via pip:

pip install pyqir-parser

Contributing

There are many ways in which you can contribute to PyQIR, whether by contributing a feature or by engaging in discussions; we value contributions in all shapes and sizes! We refer to this document for guidelines and ideas for how you can get involved.

Contributing a pull request to this repo requires to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. A CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately. Simply follow the instructions provided by the bot. You will only need to do this once.

Building and Testing

See Building.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pyqir_parser-0.6.1-cp36-abi3-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.6+ Windows x86-64

pyqir_parser-0.6.1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ x86-64

pyqir_parser-0.6.1-cp36-abi3-macosx_10_7_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.6+ macOS 10.7+ x86-64

File details

Details for the file pyqir_parser-0.6.1-cp36-abi3-win_amd64.whl.

File metadata

  • Download URL: pyqir_parser-0.6.1-cp36-abi3-win_amd64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: CPython 3.6+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6

File hashes

Hashes for pyqir_parser-0.6.1-cp36-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 72de5c2901451b082dff0d8eb7a159b2f1bf42225631054123c2ab7b3dde619c
MD5 9c704127a51e29b58435e039f490bf03
BLAKE2b-256 e6dbd917a3589505a38385c9b4044d07b0368db79bdd5f198b7c19150a0f2316

See more details on using hashes here.

File details

Details for the file pyqir_parser-0.6.1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: pyqir_parser-0.6.1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 3.6 MB
  • Tags: CPython 3.6+, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6

File hashes

Hashes for pyqir_parser-0.6.1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 31c22ececc63564da5b65fd12858900317896f3976a6db9c495de5a6a9f35709
MD5 a36e3ac63437614fb2a3c5222e85b5d1
BLAKE2b-256 b21dc1b56031ec5553f2533fd9c192e95b0a7fe03f9273f52003d93154f44d61

See more details on using hashes here.

File details

Details for the file pyqir_parser-0.6.1-cp36-abi3-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: pyqir_parser-0.6.1-cp36-abi3-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: CPython 3.6+, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6

File hashes

Hashes for pyqir_parser-0.6.1-cp36-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 0f528d480439c5b2ddf02abb537a25913e31f6e0eb2432067f872cf47e3eae28
MD5 b63a9e878a87f289b0e50963c9ad26a1
BLAKE2b-256 c4bbb1c9b25b3e4d1f38bbc60b73bc3e1b34d8784bc27c4b35499d5aad7f3edf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page