Skip to content

Commit

Permalink
remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
jcjaskula-aws committed Dec 28, 2023
1 parent a1d056f commit a6fe529
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/braket/circuits/box_drawing_circuit_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ def _ascii_diagram_column(
ascii_symbols,
map_control_qubit_states,
) = BoxDrawingCircuitDiagram._build_parameters(circuit_qubits, item, connections)
target_and_control = target_qubits.union(control_qubits)

for qubit in qubits:
# Determine if the qubit is part of the item or in the middle of a
Expand All @@ -168,22 +167,9 @@ def _ascii_diagram_column(
if power_string
else ascii_symbols[item_qubit_index]
)
if symbols[qubit] in ["C", "N"]:
if min(target_and_control) < qubit < max(target_and_control):
connections[qubit] = "both"
elif qubit == max(target_and_control):
connections[qubit] = "above"
else:
connections[qubit] = "below"

elif qubit in control_qubits:
symbols[qubit] = "C" if map_control_qubit_states[qubit] else "N"
if min(target_and_control) < qubit < max(target_and_control):
connections[qubit] = "both"
elif qubit == max(target_and_control):
connections[qubit] = "above"
else:
connections[qubit] = "below"
else:
symbols[qubit] = "┼"

Expand Down

0 comments on commit a6fe529

Please sign in to comment.