diff --git a/src/qibo/transpiler/router.py b/src/qibo/transpiler/router.py index fc05ea0abd..b1aad8fc69 100644 --- a/src/qibo/transpiler/router.py +++ b/src/qibo/transpiler/router.py @@ -619,8 +619,7 @@ def _append_final_measurements(self, routed_circuit: Circuit): for measurement in self._final_measurements: original_qubits = measurement.qubits routed_qubits = list( - self.circuit_map.logical_to_physical[qubit] - for qubit in original_qubits + self.circuit_map.logical_to_physical[qubit] for qubit in original_qubits ) routed_circuit.add( measurement.on_qubits(dict(zip(original_qubits, routed_qubits))) @@ -779,8 +778,7 @@ def _append_final_measurements(self, routed_circuit: Circuit): for measurement in self._final_measurements: original_qubits = measurement.qubits routed_qubits = list( - self.circuit_map.logical_to_physical[qubit] - for qubit in original_qubits + self.circuit_map.logical_to_physical[qubit] for qubit in original_qubits ) routed_circuit.add( measurement.on_qubits(dict(zip(original_qubits, routed_qubits)))