6 releases (breaking)

new 0.6.0 Jul 19, 2024
0.5.0 Jul 16, 2024
0.4.0 Jul 10, 2024
0.3.0 Jul 1, 2024
0.1.0 May 29, 2024

#235 in Programming languages

Download history 83/week @ 2024-05-23 217/week @ 2024-05-30 818/week @ 2024-06-06 857/week @ 2024-06-13 661/week @ 2024-06-20 845/week @ 2024-06-27 881/week @ 2024-07-04 800/week @ 2024-07-11

3,253 downloads per month
Used in 3 crates (via hugr)


25K SLoC


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.


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.


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


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


~207K SLoC