-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(hugr-py)!: user facing Extension class (#1413)
Allows users to define extensions in Python, attaching operation, type and value definitions to them. Also provides utilities for then using those objects when building HUGRs. Diff is big, but a lot of it is poetry and schema changes. Open to suggestions as to how to break up but I think it is fairly self-contained. Closes #1374 Closes #1412 Also as a drive-by adds the missing `binary` field to serialised opdef signatures. BREAKING CHANGE: `AsCustomOp` replaced with `AsExtOp`, so all such operations now need to be attached to an extension. --------- Co-authored-by: Alec Edgington <54802828+cqc-alec@users.noreply.github.com>
- Loading branch information
Showing
15 changed files
with
1,146 additions
and
249 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.