-
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
Enable testing of cirq_google notebooks. #5766
Conversation
dstrain115
commented
Jul 14, 2022
- Removing outputs and skip notebooks for cirq_google
- cirq_google notebooks should run with virtual Engine objects.
- Removing outputs and skip notebooks for cirq_google - cirq_google notebooks _should_ run with virtual Engine objects.
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
This enables testing of (some) of the cirq_google notebooks. Please let me know what you think. Please comment also if you think the tests that exercise "from google.colab import auth" are too hacky. Worst case, I can mark those lines as coverage ignore. |
Here is another way of temporarily mocking the google.colab module - pavoljuhas@36be3f4. If that looks good, you can pull it in with
|
@pavoljuhas It does look good to me! Pulled it in. Thanks! |
docs/tutorials/google/start.ipynb
Outdated
"source": [ | ||
"valid_qubit = device.qubits[0]\n", | ||
"valid_qubit = sorted(list(device.metadata.qubit_set))[0]\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.
Nit - list(...)
can be removed, because sorted() can take any iterable.
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.
LGTM after nit cleanup.
- Removing outputs and skip notebooks for cirq_google - cirq_google notebooks _should_ run with virtual Engine objects.