From 1e59e09e3cd01309689c2575743f75d0b85cb104 Mon Sep 17 00:00:00 2001 From: ABBY CROSS Date: Tue, 26 Nov 2024 14:26:58 -0500 Subject: [PATCH] add comments, remove placeholder text for api code --- docs/guides/q-ctrl-optimization-solver.ipynb | 2 +- docs/guides/serverless-first-program.ipynb | 3 ++- docs/guides/serverless-port-code.mdx | 3 +-- docs/guides/serverless-run-first-workload.ipynb | 3 ++- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/guides/q-ctrl-optimization-solver.ipynb b/docs/guides/q-ctrl-optimization-solver.ipynb index 76dee8fcd80..e366c8077a2 100644 --- a/docs/guides/q-ctrl-optimization-solver.ipynb +++ b/docs/guides/q-ctrl-optimization-solver.ipynb @@ -136,7 +136,7 @@ "project = \"\"\n", "\n", "# Authentication\n", - "catalog = QiskitFunctionsCatalog(token=token)\n", + "catalog = QiskitFunctionsCatalog()\n", "\n", "# Access Function\n", "solver = catalog.load(\"q-ctrl/optimization-solver\")" diff --git a/docs/guides/serverless-first-program.ipynb b/docs/guides/serverless-first-program.ipynb index d3a6819910c..e084d3a58ab 100644 --- a/docs/guides/serverless-first-program.ipynb +++ b/docs/guides/serverless-first-program.ipynb @@ -175,7 +175,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "id": "7077ba00-1571-4f99-8c53-b1a9ac280987", "metadata": {}, "outputs": [ @@ -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)" ] diff --git a/docs/guides/serverless-port-code.mdx b/docs/guides/serverless-port-code.mdx index eb12745fecd..c3ca1d761bc 100644 --- a/docs/guides/serverless-port-code.mdx +++ b/docs/guides/serverless-port-code.mdx @@ -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) diff --git a/docs/guides/serverless-run-first-workload.ipynb b/docs/guides/serverless-run-first-workload.ipynb index ae18572376f..33013c12a21 100644 --- a/docs/guides/serverless-run-first-workload.ipynb +++ b/docs/guides/serverless-run-first-workload.ipynb @@ -134,7 +134,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "id": "ebefb5ac-c8a8-4350-b16f-0677f0e412e5", "metadata": {}, "outputs": [ @@ -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)"