From 9303cd1bbb6156cd48e68087270940f0a2677da8 Mon Sep 17 00:00:00 2001 From: Simon Humpohl Date: Tue, 10 Jan 2023 17:12:03 +0100 Subject: [PATCH] Fix bug in ForLoopPT --- qupulse/pulses/loop_pulse_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qupulse/pulses/loop_pulse_template.py b/qupulse/pulses/loop_pulse_template.py index f47520a7..101705eb 100644 --- a/qupulse/pulses/loop_pulse_template.py +++ b/qupulse/pulses/loop_pulse_template.py @@ -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