Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 9, 2024
1 parent 8641a0c commit fced73c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/qibo/transpiler/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down Expand Up @@ -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)))
Expand Down

0 comments on commit fced73c

Please sign in to comment.