Skip to content

Commit

Permalink
Update pennylane/tape/qscript.py
Browse files Browse the repository at this point in the history
Co-authored-by: Astral Cai <[email protected]>
  • Loading branch information
lillian542 and astralcai authored Sep 20, 2024
1 parent d2da9c7 commit d662208
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pennylane/tape/qscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,9 @@ def update(self, **kwargs):
f"{self.__class__}.update() got an unexpected keyword argument '{k}'"
)

ops = kwargs.get("operations") if "operations" in kwargs else self.operations
measurements = kwargs.get("measurements") if "measurements" in kwargs else self.measurements
shots = kwargs.get("shots") if "shots" in kwargs else self.shots
ops = kwargs.get("operations", self.operations)
measurements = kwargs.get("measurements", self.measurements)
shots = kwargs.get("shots", self.shots)
trainable_params = (
kwargs.get("trainable_params")
if "trainable_params" in kwargs
Expand Down

0 comments on commit d662208

Please sign in to comment.