Skip to content

Commit

Permalink
chore(main): release hugr-py 0.10.0 (#1610)
Browse files Browse the repository at this point in the history
🤖 I have created a release *beep* *boop*
---


##
[0.10.0](hugr-py-v0.9.0...hugr-py-v0.10.0)
(2024-12-16)


### ⚠ BREAKING CHANGES

* Removed the extension registry argument from `validate` calls. Removed
the extension registry argument from operation instantiation methods.
Removed most extension-specific test registries. Use `EMPTY_REG`,
`PRELUDE_REGISTRY`, or `STD_REG` instead.
* `extension_reqs` field in FunctionType and Extension renamed to
`runtime_reqs`
* Array type and operations have been moved out of `prelude` and into a
new `collections.array` extension. (py) `list_type` method replaced with
`List` class. Removed `Array` type variant from the serialization
format.
* `collections` extension renamed to `collections.list`
* The `LoadFunction::signature` field is removed. Replace uses with
`DataflowOpTrait::signature()`.
* Array `scan` and `repeat` ops get an additional type parameter
specifying the extension requirements of their input functions.
Furthermore, `repeat` is no longer part of `ArrayOpDef` but is instead
specified via a new `ArrayScan` struct.

### Features

* Add `LoadNat` operation to enable loading generic `BoundedNat`s into
runtime values ([#1763](#1763))
([6f035d6](6f035d6)),
closes [#1629](#1629)
* Add array `repeat` and `scan` ops
([#1633](#1633))
([649589c](649589c)),
closes [#1627](#1627)
* Automatically add the custom op's extension to its 'runtime_reqs' set
([#1787](#1787))
([3ef5bd9](3ef5bd9))
* Don't require explicit extension registers for validation
([#1784](#1784))
([b517dc3](b517dc3))
* Make array repeat and scan ops generic over extension reqs
([#1716](#1716))
([4c1c6ee](4c1c6ee))
* Move arrays from prelude into new extension
([#1770](#1770))
([187ea8f](187ea8f))
* Rename `collections` extension to `collections.list`
([#1764](#1764))
([eef239f](eef239f))
* rename `extension_reqs` to `runtime_reqs`
([#1776](#1776))
([5f5bce4](5f5bce4))


### Bug Fixes

* hugr-py not adding extension-reqs on custom ops
([#1759](#1759))
([97ba7f4](97ba7f4))
* **py:** allow conditional cases to be defined out of order
([#1599](#1599))
([583d21d](583d21d))
* Replace `LoadFunction::signature` with `LoadFunction::instantiation`
([#1756](#1756))
([5b50d1d](5b50d1d))
* Resolve types in `Value`s and custom consts
([#1779](#1779))
([080eaae](080eaae))
* Update number of ports for PartialOps, and sanitize orderd edges
([#1635](#1635))
([81a1385](81a1385)),
closes [#1625](#1625)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: Seyon Sivarajah <[email protected]>
  • Loading branch information
hugrbot and ss2165 authored Dec 16, 2024
1 parent cc05e94 commit 21ac35c
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"hugr-py": "0.9.0"
"hugr-py": "0.10.0"
}
26 changes: 26 additions & 0 deletions hugr-py/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Changelog

## [0.10.0](https://github.com/CQCL/hugr/compare/hugr-py-v0.9.0...hugr-py-v0.10.0) (2024-12-16)


### ⚠ BREAKING CHANGES

* `extension_reqs` field in FunctionType and Extension renamed to `runtime_reqs`
* Array type and operations have been moved out of `prelude` and into a new `collections.array` extension. (py) `list_type` method replaced with `List` class. Removed `Array` type variant from the serialization format.
* `collections` extension renamed to `collections.list`


### Features

* Add `LoadNat` operation to enable loading generic `BoundedNat`s into runtime values ([#1763](https://github.com/CQCL/hugr/issues/1763)) ([6f035d6](https://github.com/CQCL/hugr/commit/6f035d68bd5c0444e4f1aedd254ee518e9c705ea)), closes [#1629](https://github.com/CQCL/hugr/issues/1629)
* Add array `repeat` and `scan` ops ([#1633](https://github.com/CQCL/hugr/issues/1633)) ([649589c](https://github.com/CQCL/hugr/commit/649589c9e3f1fbd9cfff53a2adb8e1f9649fbe87)), closes [#1627](https://github.com/CQCL/hugr/issues/1627)
* Make array repeat and scan ops generic over extension reqs ([#1716](https://github.com/CQCL/hugr/issues/1716)) ([4c1c6ee](https://github.com/CQCL/hugr/commit/4c1c6ee4c7d657c4bdb6b37c2237ae3f06b8d0be))
* Move arrays from prelude into new extension ([#1770](https://github.com/CQCL/hugr/issues/1770)) ([187ea8f](https://github.com/CQCL/hugr/commit/187ea8f59ee307c0ed5afe2b0faad7c6e90051f0))
* Rename `collections` extension to `collections.list` ([#1764](https://github.com/CQCL/hugr/issues/1764)) ([eef239f](https://github.com/CQCL/hugr/commit/eef239fa02019180f398444de4b9a45a1f2f3a3e))
* rename `extension_reqs` to `runtime_reqs` ([#1776](https://github.com/CQCL/hugr/issues/1776)) ([5f5bce4](https://github.com/CQCL/hugr/commit/5f5bce4805897d5b0fa70af69fddc039f7a8d8ab))


### Bug Fixes

* hugr-py not adding extension-reqs on custom ops ([#1759](https://github.com/CQCL/hugr/issues/1759)) ([97ba7f4](https://github.com/CQCL/hugr/commit/97ba7f4b26773598affb4dd8ac119e9e1d1444e2))
* allow conditional cases to be defined out of order ([#1599](https://github.com/CQCL/hugr/issues/1599)) ([583d21d](https://github.com/CQCL/hugr/commit/583d21d371320851f8608daa295ef8b723d31326))
* Update number of ports for PartialOps, and sanitize orderd edges ([#1635](https://github.com/CQCL/hugr/issues/1635)) ([81a1385](https://github.com/CQCL/hugr/commit/81a1385fd56a9a12b84153756b4c0bb046808c50)), closes [#1625](https://github.com/CQCL/hugr/issues/1625)

## [0.9.0](https://github.com/CQCL/hugr/compare/hugr-py-v0.8.1...hugr-py-v0.9.0) (2024-10-14)


Expand Down
2 changes: 1 addition & 1 deletion hugr-py/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "hugr"
version = "0.9.0"
version = "0.10.0"
requires-python = ">=3.10,<3.14"
description = "Quantinuum's common representation for quantum programs"
license = { file = "LICENCE" }
Expand Down
2 changes: 1 addition & 1 deletion hugr-py/src/hugr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

# This is updated by our release-please workflow, triggered by this
# annotation: x-release-please-version
__version__ = "0.9.0"
__version__ = "0.10.0"

0 comments on commit 21ac35c

Please sign in to comment.