Skip to content

Commit

Permalink
finish code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jcjaskula-aws committed Dec 27, 2023
1 parent d563c78 commit 28aeb32
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/braket/circuits/ascii_circuit_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,19 +369,19 @@ def _ascii_diagram_column(
if symbols[qubit] in ["●", "◯"]:
if min(target_and_control) < qubit < max(target_and_control):
connections[qubit] = "both"
elif qubit < max(target_and_control):
connections[qubit] = "below"
elif min(target_and_control) < qubit:
elif qubit == max(target_and_control):
connections[qubit] = "above"
else:
connections[qubit] = "below"

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

Expand Down

0 comments on commit 28aeb32

Please sign in to comment.