DAGCircuit.remove_nonancestors_of

DAGCircuit.remove_nonancestors_of(node)[source]

Remove all of the non-ancestors operation nodes of node.