From e399fecb94d3b4d6267e4f0705b2b493d28469f8 Mon Sep 17 00:00:00 2001 From: Alessandro Candido Date: Tue, 23 Jul 2024 15:52:58 +0200 Subject: [PATCH] docs: Propagate sweepers parameter redefinition --- doc/source/getting-started/experiment.rst | 2 +- doc/source/main-documentation/qibolab.rst | 4 ++-- doc/source/tutorials/calibration.rst | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/source/getting-started/experiment.rst b/doc/source/getting-started/experiment.rst index 6d2751751..4991c49f4 100644 --- a/doc/source/getting-started/experiment.rst +++ b/doc/source/getting-started/experiment.rst @@ -208,7 +208,7 @@ We leave to the dedicated tutorial a full explanation of the experiment, but her acquisition_type=AcquisitionType.INTEGRATION, ) - results = platform.execute([sequence], options, sweeper) + results = platform.execute([sequence], options, [[sweeper]]) # plot the results amplitudes = results[ro_pulse.id][0].magnitude diff --git a/doc/source/main-documentation/qibolab.rst b/doc/source/main-documentation/qibolab.rst index 50536e71e..e5c45ee4c 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:: @@ -543,7 +543,7 @@ For example: type=SweeperType.FACTOR, ) - results = platform.execute([sequence], options, sweeper_freq, sweeper_amp) + results = platform.execute([sequence], options, [[sweeper_freq], [sweeper_amp]]) Let's say that the RX pulse has, from the runcard, a frequency of 4.5 GHz and an amplitude of 0.3, the parameter space probed will be: diff --git a/doc/source/tutorials/calibration.rst b/doc/source/tutorials/calibration.rst index 1588ad654..375a52141 100644 --- a/doc/source/tutorials/calibration.rst +++ b/doc/source/tutorials/calibration.rst @@ -65,7 +65,7 @@ We then define the execution parameters and launch the experiment. acquisition_type=AcquisitionType.INTEGRATION, ) - results = platform.execute([sequence], options, sweeper) + results = platform.execute([sequence], options, [[sweeper]]) In few seconds, the experiment will be finished and we can proceed to plot it. @@ -153,7 +153,7 @@ We can now proceed to launch on hardware: acquisition_type=AcquisitionType.INTEGRATION, ) - results = platform.execute([sequence], options, sweeper) + results = platform.execute([sequence], options, [[sweeper]]) amplitudes = results[readout_pulse.id][0].magnitude frequencies = np.arange(-2e8, +2e8, 1e6) + drive_pulse.frequency