qiskit/transpiler/passmanager.py
def run(self, circuit):
        """Run all the passes on a QuantumCircuit

        Args:
            circuit (QuantumCircuit): circuit to transform via all the registered passes

        Returns:
            QuantumCircuit: Transformed circuit.
        """
        name = circuit.name
        dag = circuit_to_dag(circuit)
        del circuit
        for passset in self.working_list:
            for pass_ in passset:
                dag = self._do_pass(pass_, dag, passset.options)
        circuit = dag_to_circuit(dag)
        circuit.name = name
        return circuit
def run(self, circuit):
        """Run all the passes on a QuantumCircuit

        Args:
            circuit (QuantumCircuit): circuit to transform via all the registered passes

        Returns:
            QuantumCircuit: Transformed circuit.
        """
        name = circuit.name
        dag = circuit_to_dag(circuit)
        del circuit
        for passset in self.working_list:
            for pass_ in passset:
                dag = self._do_pass(pass_, dag, passset.options)
        circuit = dag_to_circuit(dag)
        circuit.name = name
        return circuit
def run ( self , circuit ) : name = circuit . name dag = circuit_to_dag ( circuit ) del circuit for passset in self . working_list : for pass_ in passset : dag = self . _do_pass ( pass_ , dag , passset . options ) circuit = dag_to_circuit ( dag ) circuit . name = name return circuit
Run all the passes on a QuantumCircuit

        Args:
            circuit (QuantumCircuit): circuit to transform via all the registered passes

        Returns:
            QuantumCircuit: Transformed circuit.
Run all the passes on a QuantumCircuit