Bengali
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.dagcircuit.DAGCircuit.nodes_on_wire

DAGCircuit.nodes_on_wire(wire, only_ops=False)[source]

Iterator for nodes that affect a given wire.

প্যারামিটার
  • wire (Bit) -- the wire to be looked at.

  • only_ops (bool) -- True if only the ops nodes are wanted; otherwise, all nodes are returned.

Yields

Iterator -- the successive nodes on the given wire

রেইজেস

DAGCircuitError -- if the given wire doesn't exist in the DAG