qiskit.dagcircuit.DAGCircuit.ancestors¶ DAGCircuit.ancestors(node)[Quellcode]¶ Returns set of the ancestors of a node as DAGOpNodes and DAGInNodes.