-
Notifications
You must be signed in to change notification settings - Fork 983
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
Minor (cosmetic changes) #5329
Minor (cosmetic changes) #5329
Conversation
Added a parenthesis I think is required. Fixed a sentence, I think the word "rotation" was missing.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). For more information, open the CLA check for this pull request. |
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.
Sorry for the bureaucracy. The google bot wants a signed CLA. As a googler you can go to go/github and register this account. Or for personal use, just sign the CLA.
One comment that our linter flagged.
examples/hhl.py
Outdated
@@ -148,7 +148,7 @@ def _decompose_(self, qubits): | |||
|
|||
|
|||
class EigenRotation(cirq.Gate): | |||
"""Perform the of the ancilla equivalent to divison of the memory by eigenvalues of matrix. | |||
"""Perform the rotation of the ancilla equivalent to divison of the memory by eigenvalues of matrix. |
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.
Lint is yelling about over 100 chars (and pythonistas tend to want single line first sentences). Maybe
"""Perform a rotation on an ancilla equivalent to division by eigenvalues of a matrix."""
Changed the comment to not exceed the line limits.
Thanks. Changed the comment and signed the CLA (for my private account).
…On Tue, May 3, 2022 at 9:11 PM Dave Bacon ***@***.***> wrote:
***@***.**** approved this pull request.
Sorry for the bureaucracy. The google bot wants a signed CLA. As a googler
you can go to go/github and register this account. Or for personal use,
just sign the CLA.
One comment that our linter flagged.
------------------------------
In examples/hhl.py
<#5329 (comment)>:
> @@ -148,7 +148,7 @@ def _decompose_(self, qubits):
class EigenRotation(cirq.Gate):
- """Perform the of the ancilla equivalent to divison of the memory by eigenvalues of matrix.
+ """Perform the rotation of the ancilla equivalent to divison of the memory by eigenvalues of matrix.
Lint is yelling about over 100 chars (and pythonistas tend to want single
line first sentences). Maybe
"""Perform a rotation on an ancilla equivalent to division by eigenvalues
of a matrix."""
—
Reply to this email directly, view it on GitHub
<#5329 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASSDND2YHN2B2YE54FPL3LTVIH2INANCNFSM5VAOGMKA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Robert Hundt
|
examples/hhl.py
Outdated
"""Perform the of the ancilla equivalent to divison of the memory by eigenvalues of matrix. | ||
|
||
"""Perform a rotation on an ancilla equivalent to division by eigenvalues of a matrix. | ||
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.
Nit: remove spaces / tabs on a blank line.
Removed the spaces. I really shouldn't use the github web editor...
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.
Thanks for contributing back to the (upstream) repository!
Added a parenthesis I think is required. Fixed a sentence, I think the word "rotation" was missing.
Added a parenthesis I think is required.
Fixed a sentence, I think the word "rotation" was missing.