Skip to content

Commit

Permalink
docs: fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sorewachigauyo committed Oct 22, 2024
1 parent e0ea52b commit 665b381
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qibolab/_core/instruments/keysight/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def parse_result(
# QCS returns (..., nshots), so we need to shuffle the arrays
if options.averaging_mode is AveragingMode.SINGLESHOT and len(sweepers) > 0:
tmp = np.zeros(options.results_shape(sweepers))
# For IQ data, QCS results complex results
# For IQ data, QCS returns complex results
if options.acquisition_type is AcquisitionType.INTEGRATION:
for k in range(options.nshots):
tmp[k, ..., 0] = np.real(result[..., k])
Expand All @@ -75,7 +75,7 @@ def parse_result(
for k in range(options.nshots):
tmp[k, ...] = result[..., k]

# For IQ data, QCS results complex results
# For IQ data, QCS returns complex results
elif options.acquisition_type is AcquisitionType.INTEGRATION:
tmp = np.zeros(result.shape + (2,))
tmp[..., 0] = np.real(result)
Expand Down

0 comments on commit 665b381

Please sign in to comment.