qiskit.transpiler.PassManager.replace¶
- PassManager.replace(index, passes, max_iteration=None, **flow_controller_conditions)[소스]¶
Replace a particular pass in the scheduler.
- 매개변수
index (
int
) – Pass index to replace, based on the position in passes().passes (
Union
[BasePass
,List
[BasePass
]]) – A pass set (as defined inqiskit.transpiler.PassManager.append()
) to be added to the pass manager schedule.max_iteration (
Optional
[int
]) – max number of iterations of passes.flow_controller_conditions (
Any
) – control flow plugins.
- 예외 발생
TranspilerError – if a pass in passes is not a proper pass or index not found.
더 보기
RunningPassManager.add_flow_controller()
for more information about the control flow plugins.- 반환 형식
None