Skip to content

Commit

Permalink
refactor: remove variable assignment that overwrites function
Browse files Browse the repository at this point in the history
  • Loading branch information
parisosuch-dev committed Sep 13, 2024
1 parent 32879a8 commit f7b187c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/visualize/q_sphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ def q_sphere(
):
num_qubits = int(np.log2((len(quantumstate))))
probs = probability(quantumstate)
phase_angle = phase_angle(quantumstate)
angle = phase_angle(quantumstate)
state_list = [format(i, "b").zfill(num_qubits) for i in range(2**num_qubits)]
prob_dict = {state_list[i]: probs[i] for i in range(len(state_list))}
phase_dict = {state_list[i]: phase_angle[i] for i in range(len(state_list))}
phase_dict = {state_list[i]: angle[i] for i in range(len(state_list))}
lat_vals = latitude_finder(num_qubits, state_list)
if darkmode:
_text = "white"
Expand Down

0 comments on commit f7b187c

Please sign in to comment.