qiskit.pulse.ScheduleBlock.replace¶
- ScheduleBlock.replace(old, new, inplace=True)[Quellcode]¶
Return a
ScheduleBlock
with theold
component replaced with anew
component.- Parameter
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 thisScheduleBlock
.
- Rückgabetyp
- Rückgabe
The modified schedule block with
old
replaced bynew
.