forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Qiskit#2262 | Acquire commands on a single qubit (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>
- Loading branch information
1 parent
1e56f16
commit f158e2b
Showing
12 changed files
with
267 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
releasenotes/notes/acquire-single-channel-ea83cef8d991f945.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
prelude: > | ||
Acquire and AcquireInstruction now can be applied to a single channel | ||
features: | ||
- | | ||
Within the terra API allow acquires be applied to a single qubit. | ||
This makes pulse programming more consistent and easier to reason | ||
about as all operations in pulse would then be for single channels. | ||
For example: | ||
acquire = Acquire(duration=10) | ||
schedule = Schedule() | ||
schedule.insert(60, acquire(AcquireChannel(0), MemorySlot(0), RegisterSlot(0))) | ||
schedule.insert(60, acquire(AcquireChannel(1), MemorySlot(1), RegisterSlot(1))) | ||
deprecations: | ||
- | | ||
Acquire on multiple qubits has been deprecated. | ||
``AcquireInstruction`` parameters ``mem_slots``, ``reg_slots`` has been deprecated, | ||
use ``reg_slot``, ``mem_slot`` instead. |
Oops, something went wrong.