qiskit.transpiler.StagedPassManager.replace¶
- StagedPassManager.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 in
qiskit.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.