Skip to content

Commit

Permalink
Update start.ipynb
Browse files Browse the repository at this point in the history
delete overriding instance of `engine`
  • Loading branch information
senecameeks authored Nov 14, 2023
1 parent 106bae6 commit 9d47e4a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/tutorials/google/start.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,12 @@
"outputs": [],
"source": [
"# The Google Cloud Project id to use.\n",
"project_id = \"quantum-engine-ninja-access\" #@param {type:\"string\"}\n",
"processor_id = \"\" #@param {type:\"string\"}\n",
"project_id = \"\" #@param {type:\"string\"}\n",
"\n",
"from cirq_google.engine.qcs_notebook import get_qcs_objects_for_notebook\n",
"# For real engine instances, delete 'virtual=True' below.\n",
"qcs_objects = get_qcs_objects_for_notebook(project_id, processor_id, virtual=True)\n",
"# For virtual engine instances, set 'virtual=True' below.\n",
"qcs_objects = get_qcs_objects_for_notebook(project_id)\n",
"\n",
"project_id = qcs_objects.project_id\n",
"engine = qcs_objects.engine\n",
"if not qcs_objects.signed_in:\n",
" print(\"ERROR: Please setup project_id in this cell or set the `GOOGLE_CLOUD_PROJECT` env var to your project id.\")\n",
Expand Down Expand Up @@ -245,7 +243,7 @@
"\n",
"You can create a client to the service as follows:\n",
"\n",
"`engine = cg.Engine(project_id=YOUR_PROJECT_ID)`\n",
"`cg.Engine(project_id=YOUR_PROJECT_ID)`\n",
"\n",
"Note: for this tutorial, we already initialized a variable `engine`."
]
Expand Down

0 comments on commit 9d47e4a

Please sign in to comment.