-
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
#2262 | Acquire commands on a single qubit #3574
#2262 | Acquire commands on a single qubit #3574
Conversation
This is looking like it's coming along nicely 👍 . |
Yeah, working on fixing timeslots merge error brought by changing acquire commands, let's see how it will go :) |
@taalexander @lcapelluto |
@IceKhan13 This is great! If we didn't need a deprecation period, I'd say it's pretty much done. Unfortunately, we should have a period where multiple qubit acquisitions work as well as single acquires. Some of the work you've done will have to be rolled back for a while, to accept both styles, with a |
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.
Deprecate old multiqubit acquire style (leave / add one test for this)
@IceKhan13 With this change, I think a method in |
#3700 I made the issue -- thinking maybe |
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.
@IceKhan13 this looking awesome! Just a couple more small suggestions and then it looks good to go to me!
Updated release notes + fixed as suggested |
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!
releasenotes/notes/acquire-single-channel-ea83cef8d991f945.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.
Going to remove the 'issues:' section of the release note myself, to respond to Kevin's feedback, so we can hopefully get this merged today.
Update: not permitted to do this. We will wait on @IceKhan13 :)
releasenotes/notes/acquire-single-channel-ea83cef8d991f945.yaml
Outdated
Show resolved
Hide resolved
releasenotes/notes/acquire-single-channel-ea83cef8d991f945.yaml
Outdated
Show resolved
Hide resolved
releasenotes/notes/acquire-single-channel-ea83cef8d991f945.yaml
Outdated
Show resolved
Hide resolved
releasenotes/notes/acquire-single-channel-ea83cef8d991f945.yaml
Outdated
Show resolved
Hide resolved
…/IceKhan13/qiskit-terra into chore/acquire-only-for-one-qubit
@lcapelluto sorry, done :) |
Update code with changes included from Qiskit#3574
* Acquire: AcquireInstruction change to sigle qbit, mem_slot, reg_slot * Acquire: change usage of AcquireInstruction * Tests: partial test fixing * Assembler: tweak scheduler assembler to laverage new acquire + tests fixes * Scheduler: fix scheduler to use acquire on single qubit + tests fix * Style: fix lint errors * Acquire: remove unecessary properties * Style: fix lint errors * Acuqire: back compatibility on acquire multiple qubits * Acuqire: fix linter * Acquire: refactor * Acquire: fix implicit acquires; todo: revisit _validate_meas_map method * Acquire: pylint fix * Acquire: minor fixes * Acquire: fix add implicits acquires function * Acquire: instruction properties fix * Acquire: remove test for validating meas map * Linter: fix errors * Acquire: style fix * Acquire: remove deprecation in acquires property + fix positional arguments * Acquire: back and forward compatibility * Acquire: remove deprecation warning (hm, I thought I removed it before... weird ;) ) * Acquire: grammar fixes + split schedule acquire test * Acquire: add release note * Acquire: release notes remove issues Co-authored-by: Lauren Capelluto <laurencapelluto@gmail.com>
Summary
Make Acquire commands being applied to single qubit
Implements #2262
Details and comments
The pulse specification has acquire commands being applied to be multiple qubits. Within the terra API acquires should only be applied to a single qubit and then at assembly time the correct acquire command should be output by combining acquires of the same time and duration. This will make pulse programming more consistent and easier to reason about as all operations in pulse would then be for single channels.