Skip to content

Commit

Permalink
Merge pull request qutech#745 from qutech/fix/frozenset_modification
Browse files Browse the repository at this point in the history
Fix bug in ForLoopPT
  • Loading branch information
terrorfisch authored Jan 11, 2023
2 parents e1d58cf + 9303cd1 commit 5c092f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qupulse/pulses/loop_pulse_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def duration(self) -> ExpressionScalar:

@property
def parameter_names(self) -> Set[str]:
parameter_names = self.body.parameter_names.copy()
parameter_names = set(self.body.parameter_names)
parameter_names.remove(self._loop_index)
return parameter_names | self._loop_range.parameter_names | self.constrained_parameters | self.measurement_parameters

Expand Down

0 comments on commit 5c092f9

Please sign in to comment.