Skip to content

Commit

Permalink
simplify declaration iteration
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Bryant <mbryant@rigetti.com>
  • Loading branch information
MarquessV and Shadow53 authored Jun 27, 2023
1 parent bdd7b4b commit a3200d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyquil/quil.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def copy_everything_except_instructions(self) -> "Program":
"""
new_prog = Program()
new_prog._calibrations = self.calibrations.copy()
for _, declaration in self.declarations.items():
for declaration in self.declarations.values():
new_prog.inst(declaration)
new_prog._declarations = self._declarations.copy()
new_prog._waveforms = self.waveforms.copy()
Expand Down

0 comments on commit a3200d4

Please sign in to comment.