Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Bryant <[email protected]>
  • Loading branch information
MarquessV and Shadow53 authored Apr 10, 2024
1 parent a2e8b55 commit 56484d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyquil/quilatom.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ def _expression_to_string(expression: ExpressionDesignator) -> str:
# If op2 is a float, it will maybe represented as a multiple
# of pi in right. If that is the case, then we need to take
# extra care to insert parens. Similarly, complex numbers need
# to be wrapped in params so the imaginary part is captured.
# to be wrapped in parens so the imaginary part is captured.
# See gh-943,1734.
elif (isinstance(expression.op2, float) and (("pi" in right and right != "pi"))) or isinstance(
expression.op2, complex
Expand Down

0 comments on commit 56484d1

Please sign in to comment.