Skip to content

Commit

Permalink
ignore the list conversion for ascii diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
Coull committed Sep 6, 2024
1 parent d3ab6e8 commit 65cfa9d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ def _create_diagram_column(
# Determine if the qubit is part of the item or in the middle of a
# multi qubit item.
if qubit in target_qubits:
item_qubit_index = next(
item_qubit_index = [ # noqa: RUF015
index for index, q in enumerate(target_qubits) if q == qubit
)
][0]
power_string = (
f"^{power}"
if (
Expand Down

0 comments on commit 65cfa9d

Please sign in to comment.