Skip to content

Commit

Permalink
docs: Propagate sweepers parameter redefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Jul 23, 2024
1 parent 529dc2f commit e399fec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/source/getting-started/experiment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions 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 Expand Up @@ -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:

Expand Down
4 changes: 2 additions & 2 deletions doc/source/tutorials/calibration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e399fec

Please sign in to comment.