Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
SamFerracin committed Sep 27, 2024
1 parent 478e5a8 commit c21ab2d
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions qiskit_ibm_runtime/utils/embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _get_qubits_coordinates(num_qubits: int) -> List[Tuple[int, int]]:
return [(1, 0), (0, 1), (1, 1), (1, 2), (2, 1)]

if num_qubits == 7:
rows = [r := range(3), [1], r]
rows = [range(3), [1], range(3)]
return _heavy_hex_coords(rows)

if num_qubits == 15:
Expand All @@ -156,19 +156,11 @@ def _get_qubits_coordinates(num_qubits: int) -> List[Tuple[int, int]]:
]

if num_qubits == 16:
rows = [
[
3,
],
range(7),
[1, 5],
range(1, 6),
[3],
]
rows = [[3], range(7), [1, 5], range(1, 6), [3]]
return _heavy_hex_coords(rows, False)

if num_qubits == 20:
rows = [r := range(5), r, r, r]
rows = [range(5)] * 4
return _heavy_hex_coords(rows)

if num_qubits == 27:
Expand Down

0 comments on commit c21ab2d

Please sign in to comment.