English
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.ControlFlowOp.replace_blocks

abstract ControlFlowOp.replace_blocks(blocks)[source]

Replace blocks and return new instruction. :type blocks: Iterable[QuantumCircuit] :param blocks: Tuple of QuantumCircuits to replace in instruction.

Return type

ControlFlowOp

Returns

New ControlFlowOp with replaced blocks.