From 34cb0af25d6326b2b10a38ed0d4e3768a3176ce5 Mon Sep 17 00:00:00 2001 From: Alessandro Candido Date: Tue, 23 Jul 2024 16:02:02 +0200 Subject: [PATCH] docs: Fix remaining wrong/outdated execute calls --- doc/source/main-documentation/qibolab.rst | 2 +- src/qibolab/sweeper.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/source/main-documentation/qibolab.rst b/doc/source/main-documentation/qibolab.rst index e5c45ee4c..4794c7e59 100644 --- a/doc/source/main-documentation/qibolab.rst +++ b/doc/source/main-documentation/qibolab.rst @@ -496,7 +496,7 @@ A tipical resonator spectroscopy experiment could be defined with: type=SweeperType.OFFSET, ) - results = platform.execute([sequence], options, [sweeper]) + results = platform.execute([sequence], options, [[sweeper]]) .. note:: diff --git a/src/qibolab/sweeper.py b/src/qibolab/sweeper.py index e419d7a86..4a49bc63f 100644 --- a/src/qibolab/sweeper.py +++ b/src/qibolab/sweeper.py @@ -45,9 +45,9 @@ class SweeperType(Enum): class Sweeper: """Data structure for Sweeper object. - This object is passed as an argument to the method :func:`qibolab.platforms.abstract.Platform.sweep` + This object is passed as an argument to the method :func:`qibolab.platforms.platform.Platform.execute` which enables the user to sweep a specific parameter for one or more pulses. For information on how to - perform sweeps see :func:`qibolab.platforms.abstract.Platform.sweep`. + perform sweeps see :func:`qibolab.platforms.platform.Platform.execute`. Example: .. testcode:: @@ -66,7 +66,7 @@ class Sweeper: sequence.append(pulse) parameter_range = np.random.randint(10, size=10) sweeper = Sweeper(parameter, parameter_range, [pulse]) - platform.sweep(sequence, ExecutionParameters(), sweeper) + platform.execute([sequence], ExecutionParameters(), [[sweeper]]) Args: parameter (`qibolab.sweeper.Parameter`): parameter to be swept, possible choices are frequency, attenuation, amplitude, current and gain.