French
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.pulse.transforms.pad

pad(schedule, channels=None, until=None, inplace=False, pad_with=None)[source]

Pad the input Schedule with Delay``s on all unoccupied timeslots until ``schedule.duration or until if not None.

Paramètres
  • schedule (Schedule) – Schedule to pad.

  • channels (Optional[Iterable[Channel]]) – Channels to pad. Defaults to all channels in schedule if not provided. If the supplied channel is not a member of schedule it will be added.

  • until (Optional[int]) – 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 (Optional[Type[Instruction]]) – Pulse Instruction subclass to be used for padding. Default to Delay instruction.

Type renvoyé

Schedule

Renvoie

The padded schedule.

Lève

PulseError – When non pulse instruction is set to pad_with.