Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Bit.index is deprecated since Apr 2021 (#733)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Tian <kevin.tian@ibm.com>
  • Loading branch information
1ucian0 and kt474 authored Sep 20, 2023
1 parent 5018fa5 commit c753c11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def _constrained_length(values: np.array) -> np.array:
return self._alignment * np.floor(values / self._alignment)

if self._coupling_map:
if self._coupling_coloring[qubit.index] == 0:
if self._coupling_coloring[self._dag.qubits.index(qubit)] == 0:
sub_spacings = spacings
else:
sub_spacings = alt_spacings
Expand Down

0 comments on commit c753c11

Please sign in to comment.