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

Command/Inst refactor: Delay #3924

Merged
merged 20 commits into from
Mar 11, 2020

Conversation

lcapelluto
Copy link
Contributor

Summary

Part 3/7 for #3750

Delay the command becomes Delay the instruction, DelayInstruction is deprecated.

Details and comments

Pretty straightforward drop in replacement. Cannot just timeslots.duration for duration, because an Instruction without channels doesn't have timeslots, and Delay needs to support being instantiated without channels and still having a duration to pass when the channel is supplied.

@lcapelluto lcapelluto changed the title Issue 3750: Delay instruction Command/Inst refactor: Delay Mar 4, 2020
@lcapelluto lcapelluto requested a review from 1ucian0 as a code owner March 4, 2020 17:24
taalexander
taalexander previously approved these changes Mar 5, 2020
taalexander
taalexander previously approved these changes Mar 9, 2020
taalexander
taalexander previously approved these changes Mar 10, 2020
Copy link
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one question inline.

mtreinish
mtreinish previously approved these changes Mar 11, 2020
Copy link
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the quick update answering my question

taalexander
taalexander previously approved these changes Mar 11, 2020
@lcapelluto lcapelluto dismissed stale reviews from taalexander and mtreinish via 9bc6483 March 11, 2020 19:34
@mergify mergify bot merged commit aedf2f7 into Qiskit:master Mar 11, 2020
@lcapelluto lcapelluto added the Changelog: API Change Include in the "Changed" section of the changelog label Apr 1, 2020
faisaldebouni pushed a commit to faisaldebouni/qiskit-terra that referenced this pull request Aug 5, 2020
* Migrate Delay from a Command to an Instruction, and deprecate DelayInstruction, while maintaining support for the previous API

* Scattering of bugfixes

* Remove extra line

* Add reno note update

* Add new test

* Update qiskit/pulse/instructions/delay.py

* Fix up releasenote, single : to double ::

* Give instructions a default name

* Update releasenote as a deprecation

* Fixup release notes typo: deprecation needs to be plural

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: API Change Include in the "Changed" section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants