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

Bit.index is deprecated since Apr 2021 #733

Merged
merged 2 commits into from
Sep 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading