Skip to content

Commit

Permalink
add clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MarquessV committed Jun 27, 2023
1 parent a3200d4 commit ebad470
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyquil/api/_rewrite_arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def expr_mref(expr: object) -> MemoryReference:
# so we divide by 8...
expr = str(Div(inst.scale, 8))
updated.inst(SetScale(inst.frame, expr_mref(expr)))
# Program.copy_everything_except_instructions persists DECLARE statements
elif not isinstance(inst, Declare):
updated.inst(inst)

Expand Down

0 comments on commit ebad470

Please sign in to comment.