11 releases (7 breaking)

0.8.1 Sep 4, 2024
0.7.0 Aug 12, 2024
0.6.2 Jul 29, 2024

#464 in Programming languages

Download history 508/week @ 2024-06-01 601/week @ 2024-06-08 918/week @ 2024-06-15 885/week @ 2024-06-22 444/week @ 2024-06-29 1216/week @ 2024-07-06 852/week @ 2024-07-13 717/week @ 2024-07-20 1130/week @ 2024-07-27 183/week @ 2024-08-03 825/week @ 2024-08-10 522/week @ 2024-08-17 788/week @ 2024-08-24 1766/week @ 2024-08-31 998/week @ 2024-09-07 551/week @ 2024-09-14

4,166 downloads per month
Used in 4 crates (via hugr)

Apache-2.0

1MB
27K SLoC

hugr-passes

build_status crates msrv codecov

The Hierarchical Unified Graph Representation (HUGR, pronounced hugger) is the common representation of quantum circuits and operations in the Quantinuum ecosystem.

It provides a high-fidelity representation of operations, that facilitates compilation and encodes runnable programs.

The HUGR specification is here.

This crate provides compilation passes that act on HUGR programs.

Usage

Add the dependency to your project:

cargo add hugr-passes

Please read the API documentation here.

Experimental Features

  • extension_inference: Experimental feature which allows automatic inference of extension usages and requirements in a HUGR and validation that extensions are correctly specified. Not enabled by default.

Recent Changes

See CHANGELOG for a list of changes. The minimum supported rust version will only change on major releases.

Development

See DEVELOPMENT.md for instructions on setting up the development environment.

License

This project is licensed under Apache License, Version 2.0 (LICENSE or http://www.apache.org/licenses/LICENSE-2.0).

Dependencies

~10MB
~195K SLoC