qiskit.pulse.transforms.inline_subroutines¶
- inline_subroutines(program)[ソース]¶
Recursively remove call instructions and inline the respective subroutine instructions.
Assigned parameter values, which are stored in the parameter table, are also applied. The subroutine is copied before the parameter assignment to avoid mutation problem.
- パラメータ
program (Union[Schedule, ScheduleBlock]) – A program which may contain the subroutine, i.e.
Call
instruction.- 戻り値
A schedule without subroutine.
- 例外
PulseError – When input program is not valid data format.
- 戻り値の型
Union[Schedule, ScheduleBlock]