Skip to content

Commit

Permalink
fix: fix sweepers
Browse files Browse the repository at this point in the history
  • Loading branch information
sorewachigauyo authored and alecandido committed Oct 28, 2024
1 parent 38fc84d commit c0b9564
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qibolab/_core/instruments/keysight/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def parse_result(

# For IQ data, QCS returns complex results
elif options.acquisition_type is AcquisitionType.INTEGRATION:
tmp = np.zeros(result.shape + (2,))
tmp = np.zeros(options.results_shape(sweepers))
tmp[..., 0] = np.real(result)
tmp[..., 1] = np.imag(result)
else:
Expand Down
2 changes: 1 addition & 1 deletion src/qibolab/_core/instruments/keysight/sweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def process_sweepers(
# Mapper for channels with frequency controlled by a sweeper
sweeper_channel_map: dict[ChannelId, qcs.Scalar] = {}

for idx, parallel_sweeper in enumerate(sweepers):
for idx, parallel_sweeper in enumerate(reversed(sweepers)):
sweep_values: list[qcs.Array] = []
sweep_variables: list[qcs.Variable] = []
# Currently nested hardware sweeping is not supported
Expand Down

0 comments on commit c0b9564

Please sign in to comment.