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

Allow explicit specification of type args #770

Open
mark-koch opened this issue Jan 15, 2025 · 0 comments
Open

Allow explicit specification of type args #770

mark-koch opened this issue Jan 15, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@mark-koch
Copy link
Collaborator

Proposed syntax: func[T1, T2, n, ...](arg1, arg2, ...)

Example:

n = guppy.nat_var("n")

@guppy
def foo() -> array[qubit, n]: ...

@guppy
def main():
    qs = foo[42]()
@mark-koch mark-koch added the enhancement New feature or request label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant