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.3.2a1-cp36-abi3-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.6+ Windows x86-64

pyqir_parser-0.3.2a1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB view details)

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

pyqir_parser-0.3.2a1-cp36-abi3-macosx_10_7_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.6+ macOS 10.7+ x86-64

File details

Details for the file pyqir_parser-0.3.2a1-cp36-abi3-win_amd64.whl.

File metadata

  • Download URL: pyqir_parser-0.3.2a1-cp36-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.6+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.59.0 importlib-metadata/3.10.0 keyring/22.3.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.8

File hashes

Hashes for pyqir_parser-0.3.2a1-cp36-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 74cd0d4ee3b4814b0293d4bd1b9a9105acdd24b8ba2ee3852f111c6a9eb8b1ef
MD5 ac1c862dc82ba93599a646e01ed44d4a
BLAKE2b-256 cef66affa5eb92fd9c80c58b473ff7bd33df926cd3b3cd572070f63cd1893585

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyqir_parser-0.3.2a1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: CPython 3.6+, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.59.0 importlib-metadata/3.10.0 keyring/22.3.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.8

File hashes

Hashes for pyqir_parser-0.3.2a1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7b75aebaff563091db219da458eb7a6ccf0a8f0804a7773d27db39483eab9c7b
MD5 a568f423c05a441c4d0cb4f7e74da9c7
BLAKE2b-256 f0205f2acb6bd1020285eda727476133e2a309e33bf1844e5bf7f4efe5052a9a

See more details on using hashes here.

File details

Details for the file pyqir_parser-0.3.2a1-cp36-abi3-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: pyqir_parser-0.3.2a1-cp36-abi3-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.6+, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.59.0 importlib-metadata/3.10.0 keyring/22.3.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.8

File hashes

Hashes for pyqir_parser-0.3.2a1-cp36-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 f848493845f23c8b71cf0bd8bc12df220018f22f30a25d94c0954b60a74c9f9c
MD5 04bf6cfbe635a00adc896d7be206ffd7
BLAKE2b-256 ef4ae34a20488f885df1a836e7cfe322e5480d6eff86dae9d31a404d2634411d

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