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

Make Measurements Lazy #1941

Open
acl-cqc opened this issue Feb 26, 2025 · 0 comments
Open

Make Measurements Lazy #1941

acl-cqc opened this issue Feb 26, 2025 · 0 comments
Assignees

Comments

@acl-cqc
Copy link
Contributor

acl-cqc commented Feb 26, 2025

  • Extend Dataflow Analysis framework to allow lattice values for Sums (not just leaves thereof)
  • Define lattice type (AbstractValue) with "DefiniteFuture" and "MaybeFuture" variants
  • Propagate that through PolyFuncType "fype schemes" for ops to figure out their outputs as lattice values
  • Transform Hugr - use previous to update TypeArgs for polymorphic ops; add coercions (Tag) when converting to MaybeFuture, read the Future when using a DefiniteFuture, case-split (and read) for MaybeFuture.

See also https://docs.rs/tket2-hseries/latest/tket2_hseries/extension/futures/index.html

@acl-cqc acl-cqc self-assigned this Feb 26, 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