qiskit.dagcircuit.DAGCircuit.apply_operation_back¶
-
DAGCircuit.
apply_operation_back
(op, qargs=None, cargs=None, condition=None)[source]¶ Apply an operation to the output of the circuit.
- Parameters
op (qiskit.circuit.Instruction) – the operation associated with the DAG node
qargs (list[Qubit]) – qubits that op will be applied to
cargs (list[Clbit]) – cbits that op will be applied to
condition (tuple or None) – DEPRECATED optional condition (ClassicalRegister, int)
- Returns
the current max node
- Return type
- Raises
DAGCircuitError – if a leaf node is connected to multiple outputs