Conversation
| from guppylang.std.quantum import qubit, rz | ||
|
|
||
| @guppy | ||
| def rotate_twice(q: qubit, r: float) -> None: |
There was a problem hiding this comment.
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
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. |
Closes #16