qiskit.pulse.ScheduleBlock.replace¶
-
ScheduleBlock.
replace
(old, new, inplace=True)[source]¶ Return a
ScheduleBlock
with theold
component replaced with anew
component.- Parameters
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
.
- Return type
ScheduleBlock
- Returns
The modified schedule block with
old
replaced bynew
.