Skip to main content

KIRIN

CI codecov Supported Python versions

Kernel Intermediate Representation INfrastructure

Installation

uv add kirin-toolchain

Install via pip

pip install kirin-toolchain

Documentation

The documentation is available at https://queracomputing.github.io/kirin/latest/. We are at an early stage of completing the documentation with more details and examples, so comments and contributions are most welcome!

Community

  • Slack: join our Slack.
  • GitHub Discussions: discussion board for questions, feature requests, and more. GitHub Discussions.

Projects using Kirin

Quantum Computing

We are actively using Kirin at QuEra Computing. Here are some open-source eDSLs for quantum computing that we have developed using Kirin:

  • bloqade.qasm2: This is an eDSL for quantum computing that uses Kirin to define an eDSL for the Quantum Assembly Language (QASM) 2.0. It demonstrates how to create multiple dialects using Kirin, run custom analysis and rewrites, and generate code from the dialects (back to QASM 2.0 in this case).
  • bloqade.stim: This is an eDSL for quantum computing that uses Kirin to define an eDSL for the STIM language. It demonstrates how to create multiple dialects using Kirin, run custom analysis and rewrites, and generate code from the dialects (back to Stim in this case).
  • bloqade.qBraid: This example demonstrates how to lower from an existing representation into the Kirin IR by using the visitor pattern.

Roadmap

We use github issues to track the roadmap. There are more feature requests and proposals in the issues. Here are some of the most wanted features we wish to implement before a beta release:

  • Initial version of the IR
  • Interpretation framework
  • Basic analysis and transformations (e.g. constant folding, type inference, etc.)
  • Documentation
  • proper stack trace for errors (#13)
  • text format (#199)
  • Integration with LLVM (#294)
  • Integration with MLIR (IRDL) (#293)
  • IR serialization + deserialization (#291)

Proposal for the roadmap and feature requests are welcome!

License

Apache License 2.0 with LLVM Exceptions

Metadata

Release files for kirin-toolchain 0.22.22

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kirin-toolchain 0.22.22
File Size Uploaded Provenance Actions
kirin_toolchain-0.22.22.tar.gz 1.3 MB With provenance Details for kirin_toolchain-0.22.22.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kirin-toolchain 0.22.22
File Interpreter ABI Platform Actions
kirin_toolchain-0.22.22-py3-none-any.whl Python 3 none any Details for kirin_toolchain-0.22.22-py3-none-any.whl

Total release size: 1.6 MB

Release files / kirin_toolchain-0.22.22.tar.gz

Download URL kirin_toolchain-0.22.22.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
651eb5c402022e88502f5038abd64d3b243fd98146a43a3b1906c8bd7cbbebd2
BLAKE2b-256 checksum
How to use checksums
f9c4948c1d199b926aa13b0c3d31a5a3ea9dc41c699ba011f466755b0c87a01f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / kirin_toolchain-0.22.22-py3-none-any.whl

Download URL kirin_toolchain-0.22.22-py3-none-any.whl
Size 276.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48d5481ce8e22a863c1ae265cb80f9d60cd516ae8bbcb11a67de6abca0413664
BLAKE2b-256 checksum
How to use checksums
e0ec55e6d41627c7a1232f4edb8bc90510db33d08fa0e1fb8353d9b8b6cd4bcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for kirin-toolchain 0.22.22

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kirin_toolchain-0.22.22.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.22.22 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page