Skip to content

Commit

Permalink
Fix command-line engine start up guide (#3304)
Browse files Browse the repository at this point in the history
* Fix command-line engine start up guide

- Fix list bulleting
- Fix printing URL to use job_id and program_id
  • Loading branch information
dstrain115 committed Sep 9, 2020
1 parent e61e277 commit 60b4ad3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/tutorials/google/start.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@
"We assume that your local machine is configured to run python 3.6 or greater. \n",
"\n",
"Instructions for installing Python 3:\n",
"\n",
"* linux: https://docs.python-guide.org/starting/install3/linux/\n",
"* mac: https://docs.python-guide.org/starting/install3/osx/\n",
"* windows: if you are using Windows Subsystem for Linux: https://docs.python-guide.org/starting/install3/linux/ otherwise: https://docs.python-guide.org/starting/install3/win/\n",
Expand Down Expand Up @@ -504,8 +505,8 @@
" gate_set=cirq.google.SYC_GATESET)\n",
"\n",
" print(\"Scheduled. View the job at: https://console.cloud.google.com/quantum/\"\n",
" \"programs{}?mods=quantum_ng2&project={}\".format(\n",
" job.job_resource_name.split('/programs')[1], project_id))\n",
" f\"programs/{job.program_id}/jobs/{job.job_id}\"\n",
" f\"/overview?project={project_id}\")\n",
"\n",
" # Print out the results. This blocks until the results are returned.\n",
" results = [str(int(b)) for b in job.results()[0].measurements['result'][:, 0]]\n",
Expand Down

0 comments on commit 60b4ad3

Please sign in to comment.