-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates guppy to use extension operation definitions instead of opaque ops defined on the fly. Some relevant changes included: * Defined a new `guppylang` extension with two ops: `partial` and `unsupported` * Most list and array operations currently emit `unsupported`, as they require custom hugr building code (the core ops in `std.collections` don't match the python operations 1 to 1, it'll need some custom compilation code). * Changed `module.compile` to produce a `Package` containing the hugr along with the required extensions to interpret it. (Currently hardcoded, we should infer which extensions are needed at some point). * We hardcode the tket2 extension jsons. The plan is for `tket2` to publish a new library exporting those, but for now we need the jsons for validation. * Use the prelude operations exported by hugr for most int/float/logic/conversion builtin definitions. The `tket2` dependency is currently pinned to a commit hash, I'll update it once `0.3.0` is released. - Closes #442 - Closes #411 - Closes #412 - Closes #410 BREAKING CHANGE: Bumped the `hugr` dependency to `0.8.0` --------- Co-authored-by: Agustin Borgna <[email protected]>
- Loading branch information
Showing
55 changed files
with
3,317 additions
and
1,019 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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.