Skip to content

Commit

Permalink
'sync remote and local fixes'
Browse files Browse the repository at this point in the history
Merge branch 'pi_half' of github.com:qiboteam/qibocal into pi_half
  • Loading branch information
ElStabilini committed Dec 6, 2024
2 parents b90f887 + 8950008 commit 23ee280
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/qibocal/protocols/flipping.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,9 @@ def _acquisition(
resonator_type=platform.resonator_type,
delta_amplitude=params.delta_amplitude,
pulse_amplitudes={
qubit: (
platform.natives.single_qubit[qubit].RX90[0][1].amplitude
if params.rx90
else platform.natives.single_qubit[qubit].RX[0][1].amplitude
)
qubit: getattr(
platform.natives.single_qubit[qubit], "RX90" if params.rx90 else "RX"
)[0][1].amplitude
for qubit in targets
},
rx90=params.rx90,
Expand Down Expand Up @@ -249,7 +247,7 @@ def _fit(data: FlippingData) -> FlippingResults:
correction = popt[2] / 2

if data.rx90:
correction = correction / 2
correction /= 2

corrected_amplitudes[qubit] = [
float(detuned_pulse_amplitude * np.pi / (np.pi + correction)),
Expand Down

0 comments on commit 23ee280

Please sign in to comment.