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

Uploaded CPython 3.6+ Windows x86-64

pyqir_parser-0.5.0a1-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.5.0a1-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.5.0a1-cp36-abi3-win_amd64.whl.

File metadata

  • Download URL: pyqir_parser-0.5.0a1-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/1.14.0 pkginfo/1.8.2 requests/2.22.0 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.10

File hashes

Hashes for pyqir_parser-0.5.0a1-cp36-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 8eeb0c9467520395980ac084de59f309a18007cff0b55e01ccd03f30bf1d6342
MD5 500d23bd7ad9c514c70442d76a72414d
BLAKE2b-256 9cf27856e2e50a5edf0904f7e56518143b1c9f67208a0c95848062b730471bd4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqir_parser-0.5.0a1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 435e37ca700744fa3721ce3b4ff5714ea85302cacb20370cb85d3e2cb1c505c7
MD5 32c089c3e4fef0466b0340e2024468b8
BLAKE2b-256 aa5dea87e9f681c724807be21933e9e06bc7d5925c2b2e767f63f88ea1b61f7b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyqir_parser-0.5.0a1-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/1.14.0 pkginfo/1.8.2 requests/2.22.0 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.10

File hashes

Hashes for pyqir_parser-0.5.0a1-cp36-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 5514d7185006c0e44903ba422c341556a6053c7e16a05b8b590c3e2b5580b4af
MD5 71b1a842f16178901f370171ec97f052
BLAKE2b-256 7cc4d2d738bf6bb7a629458787e9bab5279f5d64be4bb6cb023ad4c5ccf0a834

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