French
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.IfElseOp.replace_blocks

IfElseOp.replace_blocks(blocks)[source]

Replace blocks and return new instruction.

Paramètres

blocks (Iterable[QuantumCircuit]) – Iterable of circuits for « if » and « else » condition. If there is no « else » circuit it may be set to None or ommited.

Renvoie

New IfElseOp with replaced blocks.

Type renvoyé

IfElseOp