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 65cfa9d commit e4e0c9f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,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 e4e0c9f

Please sign in to comment.