-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Parameter sweeps polish #5515
Parameter sweeps polish #5515
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
docs/params.ipynb
Outdated
@@ -102,10 +102,10 @@ | |||
"source": [ | |||
"q0 = cirq.LineQubit(0)\n", | |||
"\n", | |||
"circuit1 = cirq.Circuit([cirq.H(q0), cirq.Z(q0)**0.5, cirq.H(q0), cirq.measure(q0)])\n", | |||
"circuit1 = cirq.Circuit([cirq.H(q0), cirq.Z(q0) ** 0.5, cirq.H(q0), cirq.measure(q0)])\n", |
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.
Which formatter did you run? We format the main cirq code with black 22.1 which does not include spaces around **
(see #5157).
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 used black and black[jupyter]. Running black --version
results in black, 22.3.0 (compiled: yes)
. Should I downgrade?
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.
Shouldn't need to downgrade because that's the version we use currently; I was mistaken about it being 22.1 (see https://github.com/quantumlib/Cirq/blob/master/dev_tools/requirements/deps/format.txt). I'm a bit surprised that black[jupyter] seems to be treating notepad code differently, but I don't have too much experience with that. It would be nice to integrate notebook formatting into the check/format-incremental
script and our CI checks so that notebook code formatting is handled automatically.
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.
OK to leave it as-is for now then?
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.
Well, I guess I'd prefer to revert the padding around **
to be consistent with cirq code, but up to you.
Co-authored-by: Matthew Neeley <[email protected]>
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.
Minor comments, then LGTM. Up to you if you'd like to revert the change to whitespace around **
.
Phrasing changes, ran black formatter, cleared outputs in Simulation
Phrasing changes, ran black formatter, cleared outputs in Simulation
Some phrasing changes. Ran a formatter. Cleared outputs in Simulation