-
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
Change rep_time unit to s #3612
Conversation
added one time warning for rep_time Fixes Qiskit#3598
91706c9
to
39bccc0
Compare
|
now passes all unit tests
39bccc0
to
952e2fa
Compare
@taalexander pinging you here as well 😄 |
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.
thank you for taking this on! sorry that we have been MIA for a bit
qiskit/schemas/examples/backend_configuration_openpulse_example.json
Outdated
Show resolved
Hide resolved
Ah, thank you so much for your feedback @lcapelluto, I will get to work on it asap and hopefully have a new PR by the weekend!
|
… in `assemble()`
added 'rep_time' name to 'BackendDefault' named tuple
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.
Nice updates! This looks right to me, just needs a few new tests.
Co-Authored-By: Lauren Capelluto <laurencapelluto@gmail.com>
…change_rep_time_unit_to_s
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.
I had one suggestion, but still approving :D
@eembees Would you mind resolving conflicts? Then I will get my colleagues to get approvals for 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
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.
I think this is fine considering all the other unit changes we've been making on pulse. But before we can move forward with this can you please add a release note to document this change? Since it could catch end users by surprise. The process for doing that is documented here: https://github.com/Qiskit/qiskit-terra/blob/master/CONTRIBUTING.md#release-notes
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 for updating, just two small nits inline. Not worth blocking over though I can update things when I go through the release notes pre-release
`PulseBackendConfiguration._parse_pulse_args()` still takes `rep_times` in units of microseconds, | ||
but they are now transformed to units of seconds before being passed to `assemble()` | ||
At first pass, `PulseBackendConfiguration` will raise a warning to the user. | ||
deprecations: |
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 should probably be an upgrade note since it's not something that users have to update now:
deprecations: | |
upgrade: |
At first pass, `PulseBackendConfiguration` will raise a warning to the user. | ||
deprecations: | ||
- | | ||
`assemble()` now takes `rep_time` in units of seconds, not microseconds. |
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.
We probably should put the full callable path here so that it's clear which function we're talking about:
`assemble()` now takes `rep_time` in units of seconds, not microseconds. | |
``qiskit.compiler.assemble()`` now takes `rep_time` in units of seconds, not microseconds. |
* changed rep_time from microseconds to seconds. added one time warning for rep_time Fixes Qiskit#3598 * fixed docstring * changed so that rep_time only can be a float. now passes all unit tests * reverted all jsons, made rep_time conversion at `_parse_pulse_args()` in `assemble()` * Update assemble.py added 'rep_time' name to 'BackendDefault' named tuple * Update qiskit/compiler/assemble.py Co-Authored-By: Lauren Capelluto <laurencapelluto@gmail.com> * added a test in test_backendconfiguration * linting and removed redundant arg in `assemble.py` * linting * more linting * removed rep_time from BackendDefault tuple * fixed parametric pulse error & lint * release note Co-authored-by: Lauren Capelluto <laurencapelluto@gmail.com> Co-authored-by: Thomas Alexander <thomasalexander2718@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Summary
-Changed the rep_time unit to be in seconds, not microseconds.
-Updated tests to reflect scaling of the rep_time variable
Fixes #3598
Details and comments