About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
qiskit.pulse.transforms.pad
pad(schedule, channels=None, until=None, inplace=False, pad_with=None)
Pad the input Schedule with Delay``s on all unoccupied timeslots until ``schedule.duration
or until
if not None
.
Parameters
- schedule (
Schedule
) – Schedule to pad. - channels (
Optional
[Iterable
[Channel
]]) – Channels to pad. Defaults to all channels inschedule
if not provided. If the supplied channel is not a member ofschedule
it will be added. - until (
Optional
[int
]) – Time to pad until. Defaults toschedule.duration
if not provided. - inplace (
bool
) – Pad this schedule by mutating rather than returning a new schedule. - pad_with (
Optional
[Type
[Instruction
]]) – PulseInstruction
subclass to be used for padding. Default toDelay
instruction.
Return type
Returns
The padded schedule.
Raises
PulseError – When non pulse instruction is set to pad_with.
Was this page helpful?
Report a bug or request content on GitHub.