23 releases (11 breaking)

0.14.1 Dec 18, 2024
0.13.3 Nov 6, 2024
0.10.0 Jul 29, 2024

#732 in Programming languages

Download history 443/week @ 2024-09-23 512/week @ 2024-09-30 828/week @ 2024-10-07 982/week @ 2024-10-14 838/week @ 2024-10-21 242/week @ 2024-10-28 816/week @ 2024-11-04 394/week @ 2024-11-11 156/week @ 2024-11-18 258/week @ 2024-11-25 212/week @ 2024-12-02 255/week @ 2024-12-09 1238/week @ 2024-12-16 146/week @ 2024-12-23 30/week @ 2024-12-30 501/week @ 2025-01-06

1,919 downloads per month
Used in 3 crates

Apache-2.0

2MB
37K 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 which extra extensions are required at runtime by a HUGR when validating it. 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

~9–13MB
~240K SLoC