-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation about decorators #714
Add documentation about decorators #714
Conversation
Co-authored-by: Tim Chen <yitchen-tim> Co-authored-by: Ryan Shaffer <[email protected]>
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feature/autoqasm #714 +/- ##
==================================================
Coverage 100.00% 100.00%
==================================================
Files 155 156 +1
Lines 9395 9446 +51
Branches 2035 2040 +5
==================================================
+ Hits 9395 9446 +51 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for adding this! I left a few suggestions.
@aq.gate | ||
def ch(q0: aq.Qubit, q1: aq.Qubit): | ||
"""Define a controlled-Hadamard gate.""" | ||
ry(q1, -math.pi / 4) | ||
cz(q0, q1) | ||
ry(q1, math.pi / 4) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this example!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't take credit! @yitchen-tim
[nit] PR title should be prefixed with |
Co-authored-by: Ryan Shaffer <[email protected]>
Add decorator documentation, link from README