Skip to content

Commit

Permalink
refactor: change method to evaluate middle point
Browse files Browse the repository at this point in the history
  • Loading branch information
Edoardo-Pedicillo committed Jan 23, 2025
1 parent 051abd5 commit 0f4b58c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def fit_function(x, w_max, normalization, offset):
"charging_energy": data.charging_energy[qubit] * HZ_TO_GHZ,
}
frequency[qubit] = popt[0] * GHZ_TO_HZ
middle_bias = np.median(biases)
middle_bias = (np.max(biases) + np.min(biases)) / 2
sweetspot[qubit] = (
np.round(popt[1] * middle_bias + popt[2]) - popt[2]
) / popt[1]
Expand Down

0 comments on commit 0f4b58c

Please sign in to comment.