Skip to content

Commit

Permalink
doc: expand _collect docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros11 committed Sep 6, 2024
1 parent 7b9d16c commit 11028db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/qibolab/instruments/qm/program/acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@


def _collect(i, q, npulses):
"""Collect I and Q components of signal."""
"""Collect I and Q components of signal.
I and Q should be the the last dimension of the returned array,
except when multiple results are acquired to the same stream in the
instrument, when they should be second to last.
"""
signal = np.stack([i, q])
return np.moveaxis(signal, 0, -1 - int(npulses > 1))

Expand Down

0 comments on commit 11028db

Please sign in to comment.