qiskit.pulse.ScheduleBlock.replace¶
- ScheduleBlock.replace(old, new, inplace=True)[source]¶
Return a
ScheduleBlock
with theold
component replaced with anew
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 bynew
.- Type renvoyé