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

qwait() interface has changed, and silently fails if used the "old" way #185

Open
dellard opened this issue Jan 17, 2019 · 2 comments
Open

Comments

@dellard
Copy link
Contributor

dellard commented Jan 17, 2019

If the kind parameter is set to something invalid, qwait() returns None, but doesn't raise any error or warning to let the user know that the result is bogus.

The reason why the kind parameter might be set to something invalid is that the interface has changed. The order of the kwargs has changed, so any code that specified the actual parameters positionally is now bind junk (probably qubit references) to the kind parameter. This showed up in the pyqgl2 tests, which used positional notation. I don't know if this bug appears anywhere else, but it might have been fixed everywhere else already since the change to qwait() is several months old.

@dieris
Copy link
Collaborator

dieris commented Feb 1, 2019

Closed by #186?

@dellard
Copy link
Contributor Author

dellard commented Feb 1, 2019

Now that #186 is closed, a blatantly incorrect use of qwait() should raise an error.

I don't know if we want to spend any effort to search through the code to find any such errors (which was the original intent of this ticket) or just wait for the errors to appear. The fact that nobody noticed this problem recently suggests that this problem was already fixed everywhere except the pyqgl2 code, so maybe it's not worth worrying about.

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

2 participants