51 releases (17 breaking)

Uses new Rust 2024

0.26.2 Apr 2, 2026
0.26.1 Mar 19, 2026
0.25.7 Mar 6, 2026
0.25.2 Dec 30, 2025
0.6.2 Jul 29, 2024

#84 in Programming languages

Download history 1336/week @ 2026-01-24 1699/week @ 2026-01-31 1471/week @ 2026-02-07 1735/week @ 2026-02-14 1368/week @ 2026-02-21 1173/week @ 2026-02-28 712/week @ 2026-03-07 1336/week @ 2026-03-14 1258/week @ 2026-03-21 995/week @ 2026-03-28 1059/week @ 2026-04-04 1537/week @ 2026-04-11 200/week @ 2026-04-18 774/week @ 2026-04-25 854/week @ 2026-05-02 497/week @ 2026-05-09

2,398 downloads per month

Apache-2.0

605KB
12K SLoC

hugr-passes

Warning

This crate is deprecated. Use tket::passes instead.

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.

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

~28MB
~434K SLoC