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

Hugr Type Lowering #1948

Open
acl-cqc opened this issue Mar 5, 2025 · 0 comments
Open

Hugr Type Lowering #1948

acl-cqc opened this issue Mar 5, 2025 · 0 comments
Assignees

Comments

@acl-cqc
Copy link
Contributor

acl-cqc commented Mar 5, 2025

  • Replace one type with another - a bit like a Substitution but for fixed (maybe only Extension) types not type variables
  • If the source type is copyable but the destination type is linear, insert some (specified) dup and free ops
  • For parameterized ops (Extension Ops or those in hugr-core), just replacing in the "type args" should do it
  • But, for extension ops that input or output values of the replaced type (not via type parametrization), also need to replace ops
@acl-cqc acl-cqc self-assigned this Mar 5, 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

1 participant