Skip to content

Conversation

dstrain115
Copy link
Collaborator

  • 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.
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@CirqBot CirqBot added the size: L 250< lines changed <1000 label Jul 14, 2022
@dstrain115 dstrain115 marked this pull request as ready for review July 15, 2022 00:50
@dstrain115 dstrain115 requested review from wcourtney, a team, vtomole, cduck and verult as code owners July 15, 2022 00:50
@dstrain115
Copy link
Collaborator Author

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.

@dstrain115 dstrain115 changed the title First draft of testing cirq_google notebooks. Enable testing of cirq_google notebooks. Jul 15, 2022
@pavoljuhas
Copy link
Collaborator

Here is another way of temporarily mocking the google.colab module - pavoljuhas@36be3f4.

If that looks good, you can pull it in with

git pull https://github.com/pavoljuhas/Cirq pr5766-mock-with-patch.dict

@dstrain115
Copy link
Collaborator Author

@pavoljuhas It does look good to me! Pulled it in. Thanks!

"source": [
"valid_qubit = device.qubits[0]\n",
"valid_qubit = sorted(list(device.metadata.qubit_set))[0]\n",
Copy link
Collaborator

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.

Copy link
Collaborator

@pavoljuhas pavoljuhas left a 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.

@dstrain115 dstrain115 added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Sep 3, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Sep 3, 2022
@CirqBot CirqBot merged commit 7b17cf8 into quantumlib:master Sep 3, 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 Sep 3, 2022
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
- Removing outputs and skip notebooks for cirq_google
- cirq_google notebooks _should_ run with virtual Engine objects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: L 250< lines changed <1000
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants