Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix msr in avoided crossing #623

Merged
merged 1 commit into from
Nov 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
):
Edoardo-Pedicillo marked this conversation as resolved.
Show resolved Hide resolved
frequencies.append(freqs[index])
index = data_bias["signal"].argmax()
frequencies.append(freqs[index])
return frequencies


Expand Down