Skip to content

Commit

Permalink
add comments, remove placeholder text for api code
Browse files Browse the repository at this point in the history
  • Loading branch information
abbycross committed Nov 26, 2024
1 parent d3d602e commit 1e59e09
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/guides/q-ctrl-optimization-solver.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"project = \"<YOUR_IQP_PROJECT>\"\n",
"\n",
"# Authentication\n",
"catalog = QiskitFunctionsCatalog(token=token)\n",
"catalog = QiskitFunctionsCatalog()\n",
"\n",
"# Access Function\n",
"solver = catalog.load(\"q-ctrl/optimization-solver\")"
Expand Down
3 changes: 2 additions & 1 deletion docs/guides/serverless-first-program.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"id": "7077ba00-1571-4f99-8c53-b1a9ac280987",
"metadata": {},
"outputs": [
Expand All @@ -192,6 +192,7 @@
"\n",
"from qiskit_ibm_runtime import QiskitRuntimeService\n",
"\n",
"# If you have not previously saved your credentials, follow instructions at https://docs.quantum.ibm.com/guides/setup-channel#iqp to authenticate with your API token.\n",
"service = QiskitRuntimeService(channel=\"ibm_quantum\")\n",
"backend = service.backend(backend_name)"
]
Expand Down
3 changes: 1 addition & 2 deletions docs/guides/serverless-port-code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ from qiskit.circuit.random import random_circuit
qc_random = [(random_circuit(20, 20, measure=True)) for _ in range(30)]
optimization_level = 3

# Get backend
# Follow instructions at https://docs.quantum.ibm.com/guides/functions to authenticate with your API token.
# If you have not previously saved your credentials, follow instructions at https://docs.quantum.ibm.com/guides/setup-channel#iqp to authenticate with your API token.
service = QiskitRuntimeService(channel="ibm_quantum")
backend = service.get_backend(backend_name)

Expand Down
3 changes: 2 additions & 1 deletion docs/guides/serverless-run-first-workload.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "ebefb5ac-c8a8-4350-b16f-0677f0e412e5",
"metadata": {},
"outputs": [
Expand All @@ -149,6 +149,7 @@
"source": [
"from qiskit_ibm_runtime import QiskitRuntimeService\n",
"\n",
"# If you have not previously saved your credentials, follow instructions at https://docs.quantum.ibm.com/guides/setup-channel#iqp to authenticate with your API token.\n",
"service = QiskitRuntimeService()\n",
"backend = service.least_busy(operational=True, simulator=False)\n",
"print(backend.name)"
Expand Down

0 comments on commit 1e59e09

Please sign in to comment.