-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add duration and unit kwargs to __init__ for all standard gates #11013
Conversation
One or more of the the following people are requested to review this:
|
Pull Request Test Coverage Report for Build 6502025495
💛 - Coveralls |
releasenotes/notes/add-kwargs-to-standard-gates-d3ebf755e1d30efd.yaml
Outdated
Show resolved
Hide resolved
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.
Thanks for this! Could we do the same for the two standard instructions Measure
and Reset
as well? (It doesn't make sense for Barrier
, since that's a directive that's ignored by hardware.)
This corrects a couple of places that had `unit=None` instead of `unit="dt", and makes sure that all gates in a given file have the right signature.
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.
Thanks for doing this, Hunter - I've fixed up the merge conflicts and just tweaked a couple of gates where there were typos (like passing unit="dt"
on to super().__init__
rather than unit=unit
).
Summary
Add duration and unit kwarg in init for all classes in standard_gates
Details and comments