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

A Qubit supplied for a QRegister should fail early #30

Open
ahelsing opened this issue Jun 13, 2019 · 1 comment
Open

A Qubit supplied for a QRegister should fail early #30

ahelsing opened this issue Jun 13, 2019 · 1 comment

Comments

@ahelsing
Copy link
Contributor

If you supply a Qubit to the QGL2 compiler where the qgl2main wants a QRegister, it should complain or convert it. Currently it appears to work until trying to run the compiled program.
It ends up with something created using Qubit() which is a new thing, not the one from the ChannelLibrary you want

  • Did type checking get disabled?
@ahelsing
Copy link
Contributor Author

If QGL2 recognized it had been given a real qubit, could it use it as is, rather than trying to create a new one? IE, could we make it work if you pass a real qubit?

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