Skip to content

Commit

Permalink
top level constant FREQUENCY_PARAMETERS
Browse files Browse the repository at this point in the history
  • Loading branch information
Edoardo-Pedicillo committed Oct 11, 2023
1 parent c5a9f8c commit 16c4f2e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/qibocal/protocols/characterization/flux_dependence/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
"f_qs": "Qubit frequency [GHz]",
"f_r_offset": "Resonator frequency offset [GHz]",
}
FREQUENCY_PARAMETERS = [
"Ec",
"Ej",
"f_q_offset",
"bare_resonator_frequency",
"f_qs",
"f_r_offset",
]


def is_crosstalk(data):
Expand Down Expand Up @@ -152,14 +160,7 @@ def flux_dependence_plot(data, fit, qubit):
values = []

for key, value in fit.fitted_parameters[qubit].items():
if key in [
"Ec",
"Ej",
"f_q_offset",
"bare_resonator_frequency",
"f_qs",
"f_r_offset",
]: # Select frequency parameters
if key in FREQUENCY_PARAMETERS: # Select frequency parameters
value *= HZ_TO_GHZ
values.append(np.round(value, 5))
parameters.append(FLUX_PARAMETERS[key])
Expand Down

0 comments on commit 16c4f2e

Please sign in to comment.