Skip to content

Commit

Permalink
Update start.ipynb
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
senecameeks authored Nov 14, 2023
1 parent 9d47e4a commit 90fed21
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/tutorials/google/start.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
"\n",
"You can create a client to the service as follows:\n",
"\n",
"`cg.Engine(project_id=YOUR_PROJECT_ID)`\n",
"`engine = cg.Engine(project_id=YOUR_PROJECT_ID)`\n",
"\n",
"Note: for this tutorial, we already initialized a variable `engine`."
]
Expand All @@ -263,7 +263,7 @@
{
"cell_type": "code",
"source": [
"[p.processor_id for p in engine.list_processors() if p.health() == 'OK']"
"processor = [p.processor_id for p in engine.list_processors() if p.health() == 'OK']"
],
"metadata": {
"id": "rvMeXrC1wnQi"
Expand Down Expand Up @@ -312,7 +312,8 @@
},
"outputs": [],
"source": [
"processor = engine.get_processor(processor_id)\n",
"id = processor_id or processors[0]\n",
"processor = engine.get_processor(id)\n",
"\n",
"# Print the device showing qubit connectivity.\n",
"device = processor.get_device()\n",
Expand Down

0 comments on commit 90fed21

Please sign in to comment.