21 releases (10 breaking)

new 0.13.3 Nov 6, 2024
0.12.1 Sep 4, 2024
0.10.0 Jul 29, 2024

#648 in Programming languages

Download history 686/week @ 2024-07-17 1062/week @ 2024-07-24 787/week @ 2024-07-31 401/week @ 2024-08-07 736/week @ 2024-08-14 471/week @ 2024-08-21 1034/week @ 2024-08-28 1872/week @ 2024-09-04 790/week @ 2024-09-11 457/week @ 2024-09-18 463/week @ 2024-09-25 307/week @ 2024-10-02 1438/week @ 2024-10-09 649/week @ 2024-10-16 553/week @ 2024-10-23 533/week @ 2024-10-30

3,243 downloads per month
Used in 4 crates

Apache-2.0

1.5MB
30K SLoC

hugr

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.

Usage

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.
  • declarative: Experimental support for declaring extensions in YAML files, support is limited.

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

~8–11MB
~215K SLoC