From 1ba3b8bd0e802faa5e7657cfe8fa556b38404fdb Mon Sep 17 00:00:00 2001 From: Rodolfo Carobene Date: Wed, 19 Jun 2024 09:58:19 +0200 Subject: [PATCH] unify execution pars for dispersive shift --- src/qibocal/protocols/dispersive_shift.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/qibocal/protocols/dispersive_shift.py b/src/qibocal/protocols/dispersive_shift.py index a1c9be06d..19d6ff05f 100644 --- a/src/qibocal/protocols/dispersive_shift.py +++ b/src/qibocal/protocols/dispersive_shift.py @@ -125,20 +125,21 @@ def _acquisition( type=SweeperType.OFFSET, ) + execution_pars = ExecutionParameters( + nshots=params.nshots, + relaxation_time=params.relaxation_time, + acquisition_type=AcquisitionType.INTEGRATION, + averaging_mode=AveragingMode.CYCLIC, + ) results_0 = platform.sweep( sequence_0, - ExecutionParameters( - nshots=params.nshots, - relaxation_time=params.relaxation_time, - acquisition_type=AcquisitionType.INTEGRATION, - averaging_mode=AveragingMode.CYCLIC, - ), + execution_pars, sweeper, ) results_1 = platform.sweep( sequence_1, - params.execution_parameters, + execution_pars, sweeper, )