Skip to content

CQCL/hugr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c78d88a · Mar 18, 2025
Mar 11, 2025
Feb 24, 2025
Mar 18, 2025
Mar 13, 2025
Mar 13, 2025
Mar 18, 2025
Mar 14, 2025
Feb 26, 2025
Dec 12, 2024
Aug 28, 2024
Mar 14, 2025
Feb 5, 2025
Feb 28, 2025
Nov 13, 2024
Feb 17, 2025
Mar 13, 2025
Mar 11, 2025
Feb 5, 2025
Mar 20, 2024
Apr 4, 2024
Dec 11, 2024
Apr 3, 2024
Mar 14, 2025
Jan 10, 2025
Feb 24, 2025
Feb 5, 2025
Aug 27, 2024
Oct 21, 2024
Dec 18, 2024
Aug 28, 2024
Feb 24, 2025

Repository files navigation

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