Skip to content
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

Merged
merged 4 commits into from
May 6, 2022
Merged

Minor (cosmetic changes) #5329

merged 4 commits into from
May 6, 2022

Conversation

qcc4cp
Copy link
Contributor

@qcc4cp qcc4cp commented May 4, 2022

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.
@qcc4cp qcc4cp requested review from a team, vtomole and cduck as code owners May 4, 2022 00:14
@qcc4cp qcc4cp requested a review from dabacon May 4, 2022 00:14
@google-cla
Copy link

google-cla bot commented May 4, 2022

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.

@CirqBot CirqBot added the Size: XS <10 lines changed label May 4, 2022
Copy link
Collaborator

@dabacon dabacon left a 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.
Copy link
Collaborator

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.
@qcc4cp
Copy link
Contributor Author

qcc4cp commented May 4, 2022 via email

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.
Copy link
Collaborator

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...
Copy link
Collaborator

@dstrain115 dstrain115 left a 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!

@tanujkhattar tanujkhattar added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label May 6, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label May 6, 2022
@CirqBot CirqBot merged commit bedf422 into quantumlib:master May 6, 2022
@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels May 6, 2022
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
Added a parenthesis I think is required.
Fixed a sentence, I think the word "rotation" was missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: XS <10 lines changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants