Skip to content

docs: Add section on angles#173

Merged
tatiana-s merged 2 commits into
mainfrom
ts/angles
Jul 17, 2026
Merged

docs: Add section on angles#173
tatiana-s merged 2 commits into
mainfrom
ts/angles

Conversation

@tatiana-s

Copy link
Copy Markdown
Contributor

Closes #16

@tatiana-s
tatiana-s requested a review from CalMacCQ as a code owner July 9, 2026 13:18
from guppylang.std.quantum import qubit, rz

@guppy
def rotate_twice(q: qubit, r: float) -> None:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would probably be better to have a more interesting example than this which basically just does what the FAQ does but couldn't think of a good one

@CalMacCQ CalMacCQ left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. I'd like to add more but I'm not sure what more we would need to explain. Could be worth getting a second opinion. Perhaps from @cqc-alec ?

@cqc-alec

Copy link
Copy Markdown
Contributor

This looks good to me. I'd like to add more but I'm not sure what more we would need to explain. Could be worth getting a second opinion. Perhaps from @cqc-alec ?

It could be worth mentioning why we have this type, as it may not be obvious. Namely, it allows exact representation of angles for gates in the Clifford hierarchy. This can be useful for optimization.

@CalMacCQ

Copy link
Copy Markdown
Collaborator

It could be worth mentioning why we have this type, as it may not be obvious. Namely, it allows exact representation of angles for gates in the Clifford hierarchy. This can be useful for optimization.

That is a good point, thanks.

@tatiana-s
tatiana-s merged commit b595d4f into main Jul 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REQUEST] Add Angles to Data Types section

3 participants