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

Warn if QGL2 stub tries to return #46

Open
ahelsing opened this issue Jun 18, 2019 · 0 comments
Open

Warn if QGL2 stub tries to return #46

ahelsing opened this issue Jun 18, 2019 · 0 comments

Comments

@ahelsing
Copy link
Contributor

A QGL2 stub of a QGL1 function cannot return a value. The function can generate a pulse (side effect), but it cannot return a value. See if we can discover the function is trying to return something and give the user a friendly error message.

Example: You cannot write a a stub to retrieve a value from a qubit. The stub ends up needing to say 'return' to work, but then whatever you return is what is used at runtime. Useless. (The solution is to do whatever calculation you need to generate a pulse within the stubbed function.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant