diff --git a/src/qibocal/protocols/flipping.py b/src/qibocal/protocols/flipping.py index f95385718..2cdda6b73 100644 --- a/src/qibocal/protocols/flipping.py +++ b/src/qibocal/protocols/flipping.py @@ -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, @@ -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)),