Skip to content

Commit

Permalink
fix trivial
Browse files Browse the repository at this point in the history
  • Loading branch information
changsookim committed Nov 15, 2024
1 parent 61b4afb commit 4c084f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qibo/transpiler/placer.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,14 @@ def __call__(self, circuit: Circuit):
)
trivial_layout = dict(
zip(
["q" + str(i) for i in list(self.connectivity.nodes())],
[i for i in list(self.connectivity.nodes())],
range(circuit.nqubits),
)
)
else:
trivial_layout = dict(
zip(
["q" + str(i) for i in range(circuit.nqubits)],
[i for i in range(circuit.nqubits)],
range(circuit.nqubits),
)
)
Expand Down

0 comments on commit 4c084f3

Please sign in to comment.