Skip to content

Commit

Permalink
docs: Fix remaining wrong/outdated execute calls
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Aug 5, 2024
1 parent 8afa02d commit 8f58317
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/source/main-documentation/qibolab.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::

Expand Down
6 changes: 3 additions & 3 deletions src/qibolab/sweeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand All @@ -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.
Expand Down

0 comments on commit 8f58317

Please sign in to comment.