Skip to content

Commit

Permalink
Merge pull request #623 from qiboteam/fix_msr
Browse files Browse the repository at this point in the history
fix msr in avoided crossing
  • Loading branch information
andrea-pasquale authored Nov 14, 2023
2 parents 84866a1 + 12f492e commit bee4dd6
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ def _acquisition(
qubit_data = data_transition.data[qubit]
freq = qubit_data["freq"]
bias = qubit_data["bias"]
msr = qubit_data["msr"]
signal = qubit_data["signal"]
phase = qubit_data["phase"]
data.register_qubit(
QubitFluxType,
(float(qubit), transition),
dict(
freq=freq.tolist(),
bias=bias.tolist(),
msr=msr.tolist(),
signal=signal.tolist(),
phase=phase.tolist(),
),
)
Expand Down Expand Up @@ -171,7 +171,7 @@ def _plot(data: AvoidedCrossingData, fit: AvoidedCrossingResults, qubit):
go.Heatmap(
x=data_high.freq * HZ_TO_GHZ,
y=data_high.bias,
z=data_high.msr,
z=data_high.signal,
coloraxis="coloraxis",
),
row=1,
Expand Down Expand Up @@ -293,14 +293,8 @@ def find_parabola(data: dict) -> list:
frequencies = []
for bias in biass:
data_bias = data[currs == bias]
index = data_bias["msr"].argmax()
average_msr = np.average(data_bias["msr"])
st_dev_msr = np.std(data_bias["msr"])
if (
data_bias["msr"][index] > average_msr + st_dev_msr
or data_bias["msr"][index] > average_msr - st_dev_msr
):
frequencies.append(freqs[index])
index = data_bias["signal"].argmax()
frequencies.append(freqs[index])
return frequencies


Expand Down

0 comments on commit bee4dd6

Please sign in to comment.