qiskit/transpiler/passes/remove_reset_in_zero_state.py
def run(self, dag):
        """Return a new circuit that has been optimized."""
        resets = dag.op_nodes(Reset)
        for reset in resets:
            predecessor = next(dag.predecessors(reset))
            if predecessor.type == 'in':
                dag.remove_op_node(reset)
        return dag
def run(self, dag):
        """Return a new circuit that has been optimized."""
        resets = dag.op_nodes(Reset)
        for reset in resets:
            predecessor = next(dag.predecessors(reset))
            if predecessor.type == 'in':
                dag.remove_op_node(reset)
        return dag
Return a new circuit that has been optimized.