hugr

Crates.iohugr
lib.rshugr
version0.22.4
created_at2024-04-04 09:52:22.731266+00
updated_at2025-09-24 15:24:40.980583+00
descriptionQuantinuum's Hierarchical Unified Graph Representation
homepagehttps://github.com/CQCL/hugr
repositoryhttps://github.com/CQCL/hugr
max_upload_size
id1196077
size140,218
Seyon Sivarajah (ss2165)

documentation

https://docs.rs/hugr/

README

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

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

Commit count: 1629

cargo fmt