Skip to content

Commit

Permalink
fix execute
Browse files Browse the repository at this point in the history
  • Loading branch information
changsookim committed Nov 18, 2024
1 parent 2ef4821 commit bf80e55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qibo/models/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1118,9 +1118,9 @@ def execute(self, initial_state=None, nshots=1000):
transpiled_circuit, _ = transpiler(self) # pylint: disable=E1102

if backend.qubits is not None:
self.wire_names = [
transpiled_circuit.wire_names = [
list(node_mapping)[list(node_mapping.values()).index(q)]
for q in self.wire_names
for q in transpiled_circuit.wire_names
]

if self.accelerators: # pragma: no cover
Expand Down

0 comments on commit bf80e55

Please sign in to comment.