Skip to content

Commit

Permalink
fix: temp fix minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
changsookim committed Oct 29, 2024
1 parent eac4e14 commit 9e9d625
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qibolab/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def execute_circuit(self, circuit, initial_state=None, nshots=1000):

# This should be done in qibo side
# Temporary fix: overwrite the wire names
if not all(q in circuit.wire_names for q in self.platform.qubits):
if not all(q in circuit.wire_names for q in self.qubits):
circuit._wire_names = self.qubits

sequence, measurement_map = self.compiler.compile(circuit, self.platform)
Expand Down Expand Up @@ -175,7 +175,7 @@ def execute_circuits(self, circuits, initial_states=None, nshots=1000):
# This should be done in qibo side
# Temporary fix: overwrite the wire names
for circuit in circuits:
if not all(q in circuit.wire_names for q in self.platform.qubits):
if not all(q in circuit.wire_names for q in self.qubits):
circuit._wire_names = self.qubits

# TODO: Maybe these loops can be parallelized
Expand Down

0 comments on commit 9e9d625

Please sign in to comment.