Japanese
言語
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.dagcircuit.DAGCircuit.nodes_on_wire

DAGCircuit.nodes_on_wire(wire, only_ops=False)[ソース]

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.

列挙

Iterator – the successive nodes on the given wire

例外

DAGCircuitError – if the given wire doesn’t exist in the DAG