Spanish
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.dagcircuit.DAGCircuit.substitute_node

DAGCircuit.substitute_node(node, op, inplace=False)[fuente]

Replace an DAGOpNode with a single operation. qargs, cargs and conditions for the new operation will be inferred from the node to be replaced. The new operation will be checked to match the shape of the replaced operation.

Parámetros
Devuelve

the new node containing the added operation.

Tipo del valor devuelto

DAGOpNode

Muestra
  • DAGCircuitError – If replacement operation was incompatible with

  • location of target node.