Releases: CQCL/hugr
hugr-py: v0.2.0a1
0.2.0a1 (2024-05-13)
⚠ BREAKING CHANGES
- New serialisation schema
- rename
Const::const_type
andValue::const_type
toConst::get_type
andValue::get_type
. These now match several otherget_type
functions (#1005) - Many uses of
Const
now useValue
.
Features
- Add LoadFunction node (#947) (81e9602)
- Encoder metadata in serialized hugr (#955) (0a44d48)
- Implement
CustomConst
serialization (#1005) (c45e6fc) - Revert the removal of
Value
(#967) (0c354b6) - Set default value for
Conditional.sum_rows
(#934) (d69198e)
Bug Fixes
OpDef
serialization (#1013) (3d8f6f6)- input_port_types and other helper functions on pydantic schema (#958) (8651839)
- Remove insert_port_types for LoadFunction (#993) (acca7bf)
- Serialisation for
Type
,PolyFuncType
, andValue
(#968) (d913f40) - Serialization for
Op
s (#997) (9ce6e49) - set
[build-system]
inhugr-py/pyproject.toml
(#1022) (b9c3ee4)
Code Refactoring
hugr-py: v0.2.0-pre.1
hugr-py: v0.2.0-pre
0.2.0-pre (2024-05-10)
⚠ BREAKING CHANGES
- New serialisation schema
- rename
Const::const_type
andValue::const_type
toConst::get_type
andValue::get_type
. These now match several otherget_type
functions (#1005) - Many uses of
Const
now useValue
.
Features
- Add LoadFunction node (#947) (81e9602)
- Encoder metadata in serialized hugr (#955) (0a44d48)
- Implement
CustomConst
serialization (#1005) (c45e6fc) - Revert the removal of
Value
(#967) (0c354b6) - Set default value for
Conditional.sum_rows
(#934) (d69198e)
Bug Fixes
OpDef
serialization (#1013) (3d8f6f6)- input_port_types and other helper functions on pydantic schema (#958) (8651839)
- Remove insert_port_types for LoadFunction (#993) (acca7bf)
- Serialisation for
Type
,PolyFuncType
, andValue
(#968) (d913f40) - Serialization for
Op
s (#997) (9ce6e49)
Code Refactoring
hugr: v0.3.1
hugr: v0.2.1
This is the last release for the crate quantinuum-hugr
.
The library has been renamed to hugr
, please update your dependency.
hugr: v0.3.0
This release includes a long list of breaking changes to the API.
- The crate was renamed from
quantinuum_hugr
tohugr
. - The API has been simplified, flattening structures and reworking unnecessarily
fallible operations where possible. - Includes version
1
of the hugr serialization schema. Older pre-v1 serialized
hugrs are no longer supported. Starting withv1
, backward compatibility for
loading older versions will be maintained.
hugr-py: v0.1.0
Release 0.2.0
Release v0.1.0
This is the initial release of the Hierarchical Unified Graph Representation.
See the representation specification available at hugr.md.
This release includes an up-to-date implementation of the spec, including the core definitions (control flow, data flow and module structures) as well as the Prelude extension with support for basic classical operations and types.
HUGRs can be loaded and stored using the versioned serialization format, or they can be constructed programmatically using the builder utility.
The modules hugr::hugr::view
and hugr::hugr::rewrite
provide an API for querying and mutating the HUGR.
For more complex operations, some algorithms are provided in hugr::algorithms
.