French
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.pulse.ScheduleBlock.replace

ScheduleBlock.replace(old, new, inplace=True)[source]

Return a ScheduleBlock with the old component replaced with a new component.

Paramètres
  • old (Union[ScheduleBlock, Instruction]) – Schedule block component to replace.

  • new (Union[ScheduleBlock, Instruction]) – Schedule block component to replace with.

  • inplace (bool) – Replace instruction by mutably modifying this ScheduleBlock.

Renvoie

The modified schedule block with old replaced by new.

Type renvoyé

ScheduleBlock