Skip to content
/ pyqir Public
forked from qir-alliance/pyqir

PyQIR is a set of APIs for generating, parsing, and evaluating Quantum Intermediate Representation (QIR).

License

Notifications You must be signed in to change notification settings

cqc-melf/pyqir

This branch is 16 commits behind qir-alliance/pyqir:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8b6ccc3 · Dec 13, 2024
Sep 16, 2024
Dec 11, 2024
Dec 13, 2024
Sep 16, 2024
Mar 9, 2023
Dec 13, 2024
Sep 16, 2024
Jan 23, 2023
Jul 13, 2022
Jan 13, 2022
Mar 17, 2022
Dec 13, 2024
Oct 15, 2024
Nov 16, 2021
Dec 2, 2022
Nov 25, 2021
May 15, 2024
Nov 10, 2022
Dec 13, 2022
Jul 13, 2022
Nov 10, 2022

Repository files navigation

PyQIR

PyQIR is a set of APIs for generating, parsing, and evaluating Quantum Intermediate Representation (QIR). This repository contains:

  • pyqir (examples)

    This package provides a Python API for parsing and generating QIR. It is intended to easily integrate the QIR toolchain into existing Python-based frontends. For more advanced scenarios, we recommend taking a look at the LLVM-based infrastructure provided by QAT.

    It also provides an easy way to run generated QIR. It contains the necessary just-in-time compilation infrastructure as well an extensibility mechanism to define what actions to perform when a gate is applied in Python.

  • qirlib

    This is a Rust library wrapping LLVM for working with QIR that is used by PyQIR.

Documentation

Feedback

If you have feedback about the content in this repository, please let us know by filing a new issue!

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.

Code of Conduct

This project has adopted the community covenant Code of Conduct. Please contact qiralliance@mail.com for Code of Conduct issues or inquiries.

About

PyQIR is a set of APIs for generating, parsing, and evaluating Quantum Intermediate Representation (QIR).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 39.3%
  • Python 24.8%
  • PowerShell 22.7%
  • LLVM 7.6%
  • Handlebars 3.0%
  • CMake 1.4%
  • Other 1.2%