-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…#8166) * Fixes #7078: Add is_schedulable property to qiskit.pulse.Channel and don't apply a delay to it if True RegisterSlot and MemorySlot have this set to False. The default implementation in Channel sets it to True. * Fixes #7078: Introduce ClassicalIOChannel as a subclass of pulse.Channel RegisterSlot, MemorySlot and SnapshotChannel now derive from this class. There are some tests to fix. * Fixes #7078: Make Acquire.channels only return the channel * Fixes #7078: Execute black * Fixes #7078: Put slots in new tuple in acquire * Fixes #7078: Add is_schedulable property to qiskit.pulse.Channel and don't apply a delay to it if True RegisterSlot and MemorySlot have this set to False. The default implementation in Channel sets it to True. * Fixes #7078: Remove is_schedulable property from qiskit.pulse.channel * Fixes #7078: Put checks in SetPhase, ShiftPhase and SetPhase. Remove check from Delay. * Fixes #7078: Add unit tests for restrictions on Classical IO channels * Fixes #7078: Add unit tests for abstract nature of ClassicalIOChannel * Fixes #7078: Tidying after self-review. * Fixes #7078: Add release note. * Fixes #7078: remove typo Co-authored-by: Naoki Kanazawa <nkanazawa1989@gmail.com>
- Loading branch information
1 parent
35bb826
commit 28802cf
Showing
9 changed files
with
155 additions
and
9 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
13 changes: 13 additions & 0 deletions
13
releasenotes/notes/introduce-classical-io-channel-0a616e6ca75b7687.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,13 @@ | ||
--- | ||
features: | ||
- | | ||
In the qiskit.pulse.channels package, ClassicalIOChannel class has been added | ||
as an abstract base class of MemorySlot, RegisterSlot, and SnapshotChannel. | ||
The qiskit.pulse.transforms.canonicalization.pad method does not introduce | ||
delays to any channels which are instances of ClassicalIOChannel. | ||
In qiskit.pulse.instructions, the constructors to SetPhase, ShiftPhase, | ||
SetFrequency and ShiftFrequency now throw a PulseError if the channel parameter | ||
is not of type PulseChannel. | ||
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