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

Only include the required tket2 extensions when compiling packages #550

Open
aborgna-q opened this issue Oct 9, 2024 · 0 comments
Open

Comments

@aborgna-q
Copy link
Collaborator

Currently we bundle all the tket2 extensions in the packages all the time.
We should detect which extensions are actually being used, and only include those.

# TODO: Currently we just include a hardcoded list of extensions. We should
# compute this dynamically from the imported dependencies instead.
#
# The hugr prelude and std_extensions are implicit.
from guppylang.prelude._internal.compiler.quantum import TKET2_EXTENSIONS
extensions = [*TKET2_EXTENSIONS, guppylang.compiler.hugr_extension.EXTENSION]

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