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 (Iterable[Channel] | None) – Channels to pad. Defaults to all channels in
schedule
if not provided. If the supplied channel is not a member ofschedule
it will be added. - until (int | None) – Time to pad until. Defaults to
schedule.duration
if not provided. - inplace (bool) – Pad this schedule by mutating rather than returning a new schedule.
- pad_with (Type[Instruction] | None) – Pulse
Instruction
subclass to be used for padding. Default toDelay
instruction.
Returns
The padded schedule.
Raises
PulseError – When non pulse instruction is set to pad_with.
Return type
Was this page helpful?
Report a bug or request content on GitHub.