diff --git a/src/qibocal/protocols/rabi/length_signal.py b/src/qibocal/protocols/rabi/length_signal.py index 3dccdafe9..521165628 100644 --- a/src/qibocal/protocols/rabi/length_signal.py +++ b/src/qibocal/protocols/rabi/length_signal.py @@ -6,6 +6,7 @@ from qibolab import AcquisitionType, AveragingMode, ExecutionParameters from qibolab.platform import Platform from qibolab.qubits import QubitId +from qibolab.result import magnitude, phase from qibolab.sweeper import Parameter, Sweeper, SweeperType from qibocal import update @@ -89,26 +90,26 @@ def _acquisition( data = RabiLengthSignalData(amplitudes=amplitudes) # execute the sweep - results = platform.sweep( - sequence, + results = platform.execute( + [sequence], ExecutionParameters( nshots=params.nshots, relaxation_time=params.relaxation_time, acquisition_type=AcquisitionType.INTEGRATION, averaging_mode=AveragingMode.CYCLIC, ), - sweeper, + [[sweeper]], ) for q in targets: - result = results[ro_pulses[q].id] + result = results[ro_pulses[q].id][0] data.register_qubit( RabiLenSignalType, (q), dict( length=qd_pulse_duration_range, - signal=result.magnitude, - phase=result.phase, + signal=magnitude(result), + phase=phase(result), ), ) return data