From f7b187c427a53d769447fd46abd5af73b111a6ec Mon Sep 17 00:00:00 2001 From: paris osuch Date: Thu, 12 Sep 2024 22:10:00 -0700 Subject: [PATCH] refactor: remove variable assignment that overwrites function --- src/visualize/q_sphere.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/visualize/q_sphere.py b/src/visualize/q_sphere.py index b370d023..4e7af773 100644 --- a/src/visualize/q_sphere.py +++ b/src/visualize/q_sphere.py @@ -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"