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

Guppy programs cannot be loaded into tket2 #777

Open
aborgna-q opened this issue Feb 18, 2025 · 1 comment
Open

Guppy programs cannot be loaded into tket2 #777

aborgna-q opened this issue Feb 18, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@aborgna-q
Copy link
Collaborator

When we moved to loading packages instead of hugrs (#680) we removed the guppy-specific load_guppy_* methods. These actually were doing some hacky fixes that are currently required to load a function from guppy, so now loading such a function results in an error.

Guppy defines a CFG block inside each function definition, containing one or more DataflowBlocks with the actual circuit. In the guppy loaders we used to look inside the functions and extract the single dataflow block if possible.

The clean solution would be to finish implementing #750 and #636.
The quick-and-dirty solution is to bring back the load_guppy_* methods.

@aborgna-q
Copy link
Collaborator Author

For reference, here's the hacky guppy-function unwrapping code removed in that PR:
https://github.com/CQCL/tket2/pull/680/files#r1961704420

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant