Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto defining extensions with attached lowerings #797

Open
ss2165 opened this issue Feb 4, 2025 · 1 comment
Open

Auto defining extensions with attached lowerings #797

ss2165 opened this issue Feb 4, 2025 · 1 comment
Assignees

Comments

@ss2165
Copy link
Member

ss2165 commented Feb 4, 2025

The compiler already features the @guppy.custom pattern for marking a function as lowering to an existing hugr extension.

It would be useful to be able to declare types and functions that are mapped to a generated hugr extension. Compilation would produce a HUGR defined over the new extension and an extra module containing the definitions that can be used to link/lower those operations.

This is a convenient and quick way to define useful compile-time abstractions that can be removed further down the compilation stack.

@ss2165 ss2165 self-assigned this Feb 4, 2025
@ss2165
Copy link
Member Author

ss2165 commented Feb 5, 2025

Pauli exponentials are a good example to start with

@ss2165 ss2165 assigned tatiana-s and ss2165 and unassigned ss2165 and tatiana-s Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants