Skip to content

Commit

Permalink
Fix serverless-first-program
Browse files Browse the repository at this point in the history
  • Loading branch information
frankharkins committed Nov 25, 2024
1 parent 0864f5a commit f686f24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guides/serverless-first-program.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
"from qiskit_ibm_runtime import QiskitRuntimeService\n",
"\n",
"service = QiskitRuntimeService(channel=\"ibm_quantum\")\n",
"backend = service.get_backend(backend_name)"
"backend = service.backend(backend_name)"
]
},
{
Expand Down Expand Up @@ -216,7 +216,7 @@
"%%writefile --append ./source_files/transpile_remote.py\n",
"\n",
"results = [\n",
" transpile_remote(circuit, backend)\n",

This comment has been minimized.

Copy link
@frankharkins

frankharkins Nov 25, 2024

Author Member

Argument was missing

" transpile_remote(circuit, 1, backend)\n",
" for circuit in circuits\n",
"]\n",
"\n",
Expand Down Expand Up @@ -360,7 +360,7 @@
}
],
"source": [
"serverless.list()"

This comment has been minimized.

Copy link
@frankharkins

frankharkins Nov 25, 2024

Author Member

This is just to make the output a bit neater, otherwise we print a lot of programs with names like transpile_remote_test_afe5198cde.

"serverless.list()[:3] # Limit to first three functions"
]
},
{
Expand Down

0 comments on commit f686f24

Please sign in to comment.