qiskit.dagcircuit.DAGCircuit.apply_operation_front¶
- DAGCircuit.apply_operation_front(op, qargs=(), cargs=())[source]¶
Apply an operation to the input of the circuit.
- প্যারামিটার
op (qiskit.circuit.Operation) -- the operation associated with the DAG node
qargs (tuple[Qubit]) -- qubits that op will be applied to
cargs (tuple[Clbit]) -- cbits that op will be applied to
- রিটার্নস
the node for the op that was added to the dag
- রিটার্ন টাইপ
- রেইজেস
DAGCircuitError -- if initial nodes connected to multiple out edges