Skip to content

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

@dellard

Description

@dellard

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions