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 the program! macro to pass arguments to the gates. #33

Closed
Renmusxd opened this issue Aug 26, 2021 · 2 comments
Closed

Allow the program! macro to pass arguments to the gates. #33

Renmusxd opened this issue Aug 26, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@Renmusxd
Copy link
Owner

Would allow for calls which pass arguments on to the gate creating functions:

program!(&mut b, r,
    rz(pi/2.0) r;
    control(0) rz(pi) r[0] r[1]
)

POC in branch program_args which only allows a single argument to be passed. Argument lists would increase complexity significantly.

For use case see #31

@Renmusxd
Copy link
Owner Author

Renmusxd commented Sep 1, 2021

First iteration done in 02db6cc and 32044a5. Only single arg currently allowed.

@Renmusxd Renmusxd added the enhancement New feature or request label Nov 1, 2021
@Renmusxd
Copy link
Owner Author

Invalidated with #39

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