-
Notifications
You must be signed in to change notification settings - Fork 33
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
Make unrealized SingleQubitQPDGate
have definition of None
rather than raise error
#442
Conversation
…than error Fixes #417 according to #417 (comment)
SingleQubitQPDGate
has definition of None
rather than errorSingleQubitQPDGate
have definition of None
rather than raise error
@abstractmethod | ||
def _define(self) -> None: | ||
"""Generate a decomposed gate.""" | ||
raise NotImplementedError # pragma: no cover | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing these lines wasn't essential, but seems more in line with the idea of relying on the base class's Instruction._define
to do nothing rather than to raise an error if a definition isn't explicitly provided.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense to me, thanks.
Come to think of it, making this change might allow us to avoid having to override the UPDATE: I tried removing the
|
Pull Request Test Coverage Report for Build 6709097724
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This resolution makes sense, thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks 👍
3c0bebc
Fixes #417 according to #417 (comment)
Needs