pyquil
pyquil copied to clipboard
PyQuil v4 RC53 inconsistent spacing in DEFGATE expression math
Pre-Report Checklist
- [x] I am running the latest versions of pyQuil and the Forest SDK
- [x] I checked to make sure that this bug has not already been reported
Issue Description
After parsing and then outputting the following Program:
DEFGATE SQRT-X:
0.5+0.5i, 0.5-0.5i
0.5-0.5i, 0.5+0.5i
... the output renders the first line as 0.5+0.5i, 0.5 - 0.5i, and similarly for the second.
The spacing around the + and - operators appears to be inconsistent; the - operator has encapsulating spaces.
This issue manifests in pyquil but it's entirely likely the source is quil-rs.