Skip to content

Commit

Permalink
docs: Document experiment conclusion instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Feb 6, 2025
1 parent ea8d483 commit 37fa8a0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/qibolab/_core/instruments/qblox/sequence/loops.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,16 @@ def loops(
SHOTS = "shots"


def iteration_end(relaxation_time: int) -> list[Line]:
def _experiment_end(relaxation_time: int) -> list[Line]:
"""Wrap up experiment.
- relax
- reset phase (?)
- increment bin where the result is saved
The bin increment is possibly reset later on, in order to save on the same bin, and
thus summing various shots (eventually averaging). Cf. :func:`_shots_bin_reset`.
"""
return [
Line(instruction=Wait(duration=relaxation_time), comment="relaxation"),
Line(instruction=ResetPh(), comment="phase reset"),
Expand Down Expand Up @@ -197,7 +206,7 @@ def loop(
singleshot: bool,
channel: ChannelId,
) -> Block:
end = cast(list, iteration_end(relaxation_time))
end = cast(list, _experiment_end(relaxation_time))
machinery = cast(list, _loop_machinery(loops, params, singleshot, channel))
main = experiment + end + machinery

Expand Down

0 comments on commit 37fa8a0

Please sign in to comment.