Skip to main content

The Kirin Toolchain for building compilers and interpreters.

Project description

KIRIN

CI codecov Supported Python versions

Kernel Intermediate Representation INfrastructure

[!IMPORTANT]

This project is in the early stage of development. API and features are subject to change. If you are concerned about the stability of the APIs, consider pin the version of Kirin in your project.

Installation

Install via uv (Recommended)

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 early stage of completing the documentation with more details and examples, comments and contributions are extremely welcome!

Project using Kirin

Quantum Computing

We are actively using Kirin in 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 we uses Kirin to define an eDSL for the Quantum Assembly Language (QASM) 2.0. It demonstrates how to create multiple dialects, 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 we uses Kirin to define an eDSL for the STIM language. It demonstrates how to create multiple dialects, 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 Kirin IR by using the visitor pattern.

License

Apache License 2.0 with LLVM Exceptions

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

kirin_toolchain-0.14.1.tar.gz (461.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kirin_toolchain-0.14.1-py3-none-any.whl (206.5 kB view details)

Uploaded Python 3

File details

Details for the file kirin_toolchain-0.14.1.tar.gz.

File metadata

  • Download URL: kirin_toolchain-0.14.1.tar.gz
  • Upload date:
  • Size: 461.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for kirin_toolchain-0.14.1.tar.gz
Algorithm Hash digest
SHA256 475f0a2c5348e946071f906bfaf0e9819b6942849edef3d3fcb7da8ec0a2a83c
MD5 867947ac4ac3ea18968b98937b317899
BLAKE2b-256 aff096da9a18b24d6de6bc4ead3bef991a3b8a7bb529063966db4b69e96b978c

See more details on using hashes here.

Provenance

The following attestation bundles were made for kirin_toolchain-0.14.1.tar.gz:

Publisher: release.yml on QuEraComputing/kirin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kirin_toolchain-0.14.1-py3-none-any.whl.

File metadata

File hashes

Hashes for kirin_toolchain-0.14.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b7c7013e13425b43d49b879dbc1bfcebdd3531d44c359570d235a1ad6e659cb9
MD5 9ece7daa18c756c2a9f3829a8433f9ef
BLAKE2b-256 559f65cad1edc3d4f9e95bfedff4851be79ee1659b513a6b906e0a6b6d2b4104

See more details on using hashes here.

Provenance

The following attestation bundles were made for kirin_toolchain-0.14.1-py3-none-any.whl:

Publisher: release.yml on QuEraComputing/kirin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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