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

Interpreter for circuits #6

Open
mariari opened this issue Apr 15, 2022 · 0 comments
Open

Interpreter for circuits #6

mariari opened this issue Apr 15, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@mariari
Copy link
Member

mariari commented Apr 15, 2022

It would be nice to have an interpeter for circuits, so we can submit code run the interpeter and give back data.

This way we can write tests over our custom gates and other such niceities.

Automatic behavior

If the current gate is invoked on a top level setting, we should run the interpreter and give back a result.

However if the current gate is being executed in a defcircuit or a defgate then we should not execute it, rather having the normal behavior of emitting a call.

I think this can be easy to do with a dynamic variable that marks that we are compiling within a circuit, so have normal calling behavior

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