dftlib.transformer.rewrite_rules.try_remove_gates_with_one_successor

try_remove_gates_with_one_successor(dft, gate)

(Rule #3): Remove gates with just one successor. These gates will fail together with this child, so they can directly be eliminated. :param dft: DFT. :param gate: Gate to remove. :return: True iff gate has been removed.