5 releases

new 0.4.0 May 20, 2024
0.4.0-alpha.1 May 13, 2024
0.3.1 Apr 23, 2024
0.3.0 Apr 15, 2024
0.3.0-alpha.1 Apr 4, 2024

#152 in Programming languages

Download history 155/week @ 2024-04-04 197/week @ 2024-04-11 217/week @ 2024-04-18 97/week @ 2024-04-25 425/week @ 2024-05-02 261/week @ 2024-05-09 459/week @ 2024-05-16

1,266 downloads per month


24K 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.


Add the dependency to your project:

cargo add hugr

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).


~208K SLoC