Pull Requests · Post #12

PR #1589: Clearer Docstrings for the Angle Type

Another small but meaningful contribution to Quantinuum’s Guppy — this time improving the documentation for the angle type.

The problem: Guppy represents angles in half-turns, which is an uncommon convention. The existing docstring for the angle class didn’t explain what that meant in practice — there was no mention of the conversion to radians, no worked examples, and no note about whether angles wrap around. For anyone not already familiar with the convention, the type was easy to misuse silently.

The fix: PR #1589 addresses Issue #1188 by rewriting the angle class docstring in angles.py to make the convention explicit:

For more technical details, refer to PR #1589.