Skip to content

Commit

Permalink
docs: Enforce keyword arguments in the sweeper constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido authored and stavros11 committed Aug 29, 2024
1 parent f314487 commit 916ba02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qibolab/sweeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Sweeper(Model):
sequence = natives.MZ.create_sequence()
parameter_range = np.random.randint(10, size=10)
sweeper = Sweeper(
parameter=Parameter.frequency, parameter_range, channels=[qubit.probe.name]
parameter=Parameter.frequency, values=parameter_range, channels=[qubit.probe.name]
)
platform.execute([sequence], ExecutionParameters(), [[sweeper]])
Expand Down

0 comments on commit 916ba02

Please sign in to comment.