Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions docs/guides/algorithmiq-tem.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "cc0a8093",
"metadata": {},
"outputs": [],
Expand All @@ -165,6 +165,8 @@
"\n",
"tem_function_name = \"algorithmiq/tem\"\n",
"catalog = QiskitFunctionsCatalog(channel=\"ibm_quantum_platform\")\n",
"# verify that you have access to the function\n",
"catalog.list()\n",
"\n",
"# Load your function\n",
"tem = catalog.load(tem_function_name)"
Expand Down Expand Up @@ -230,7 +232,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "47b0db71",
"metadata": {},
"outputs": [
Expand All @@ -243,6 +245,8 @@
}
],
"source": [
"# Print the ID so you can use it later, if necessary\n",
"print(job.job_id)\n",
"print(job.status())"
]
},
Expand Down
7 changes: 6 additions & 1 deletion docs/guides/colibritd-pde.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "95a715d2",
"metadata": {},
"outputs": [],
Expand All @@ -132,6 +132,9 @@
"\n",
"catalog = QiskitFunctionsCatalog(channel=\"ibm_quantum_platform\")\n",
"\n",
"# Verify that you have access to the function\n",
"catalog.list()\n",
"\n",
"quick = catalog.load(\"colibritd/quick-pde\")"
]
},
Expand Down Expand Up @@ -192,6 +195,8 @@
}
],
"source": [
"# Print the ID so you can use it later, if necessary\n",
"print(job.job_id)\n",
"print(job.status())\n",
"solution = job.result()"
]
Expand Down
4 changes: 3 additions & 1 deletion docs/guides/functions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@
"id": "e3cada45-0364-4096-8481-6eb99d43c656",
"metadata": {},
"source": [
"4. After you have authenticated, you can list the functions from the Qiskit Functions Catalog that you have access to:"
"### List the functions you can access\n",
"\n",
"After you authenticate, you can list the functions from the Qiskit Functions Catalog that you have access to:"
]
},
{
Expand Down
8 changes: 7 additions & 1 deletion docs/guides/global-data-quantum-optimizer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@
"\n",
"catalog = QiskitFunctionsCatalog(channel=\"ibm_quantum_platform\")\n",
"\n",
"# Verify that you have access to the function\n",
"catalog.list()\n",
"\n",
"# Access function\n",
"dpo_solver = catalog.load(\"global-data-quantum/quantum-portfolio-optimizer\")"
]
Expand Down Expand Up @@ -327,7 +330,10 @@
" backend_name=\"<backend name>\",\n",
" previous_session_id=[],\n",
" apply_postprocess=True,\n",
")"
")\n",
"\n",
"# Print the ID so you can use it later, if necessary\n",
"print(dpo_job.job_id)"
]
},
{
Expand Down
8 changes: 7 additions & 1 deletion docs/guides/kipu-optimization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@
" token=\"YOUR_API_KEY\",\n",
")\n",
"\n",
"# verify that you have access to the function\n",
"catalog.list()\n",
"\n",
"# Access Function\n",
"optimizer = catalog.load(\"kipu-quantum/iskay-quantum-optimizer\")"
]
Expand Down Expand Up @@ -289,7 +292,10 @@
" \"options\": options,\n",
"}\n",
"\n",
"job = optimizer.run(**arguments)"
"job = optimizer.run(**arguments)\n",
"\n",
"# Print the ID so you can use it later, if necessary\n",
"print(job.job_id)"
]
},
{
Expand Down
10 changes: 8 additions & 2 deletions docs/guides/multiverse-computing-singularity.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "95a715d2",
"metadata": {},
"outputs": [],
Expand All @@ -146,6 +146,9 @@
"\n",
"catalog = QiskitFunctionsCatalog(channel=\"ibm_quantum_platform\")\n",
"\n",
"# Verify that you have access to the function\n",
"catalog.list()\n",
"\n",
"# load function\n",
"singularity = catalog.load(\"multiverse/singularity\")"
]
Expand Down Expand Up @@ -357,7 +360,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"id": "f5a54432",
"metadata": {},
"outputs": [
Expand All @@ -380,6 +383,9 @@
"# list available classifiers using the list action\n",
"job = singularity.run(action=\"list\")\n",
"\n",
"# Print the ID so you can use it later, if necessary\n",
"print(job.job_id)\n",
"\n",
"print(job.result())\n",
"\n",
"# you can also find your classifiers in the shared data directory with a *.pkl.tar extension\n",
Expand Down
10 changes: 8 additions & 2 deletions docs/guides/q-ctrl-optimization-solver.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "95a715d2",
"metadata": {},
"outputs": [],
Expand All @@ -147,6 +147,9 @@
"\n",
"catalog = QiskitFunctionsCatalog(channel=\"ibm_quantum_platform\")\n",
"\n",
"# Verify that you have access to the function\n",
"catalog.list()\n",
"\n",
"# Access Function\n",
"solver = catalog.load(\"q-ctrl/optimization-solver\")"
]
Expand Down Expand Up @@ -295,7 +298,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": null,
"id": "856fe992",
"metadata": {},
"outputs": [
Expand All @@ -308,6 +311,9 @@
}
],
"source": [
"# Print the ID so you can use it later, if necessary\n",
"print(maxcut_job.job_id)\n",
"\n",
"# Get job status\n",
"print(maxcut_job.status())"
]
Expand Down
10 changes: 8 additions & 2 deletions docs/guides/q-ctrl-performance-management.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "11af8fb4",
"metadata": {},
"outputs": [],
Expand All @@ -149,6 +149,9 @@
"\n",
"catalog = QiskitFunctionsCatalog(channel=\"ibm_quantum_platform\")\n",
"\n",
"# verify that you have access to the function\n",
"catalog.list()\n",
"\n",
"# Access Function\n",
"perf_mgmt = catalog.load(\"q-ctrl/performance-management\")"
]
Expand Down Expand Up @@ -471,7 +474,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": null,
"id": "b7acbb7f",
"metadata": {},
"outputs": [
Expand All @@ -487,6 +490,9 @@
}
],
"source": [
"# Print the ID so you can use it later, if necessary\n",
"print(qctrl_sampler_job.job_id)\n",
"\n",
"qctrl_sampler_job.status()"
]
},
Expand Down
8 changes: 7 additions & 1 deletion docs/guides/qedma-qesem.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "95a715d2",
"metadata": {},
"outputs": [],
Expand All @@ -134,6 +134,9 @@
"\n",
"catalog = QiskitFunctionsCatalog(channel=\"ibm_quantum_platform\")\n",
"\n",
"# verify that you have access to the function\n",
"catalog.list()\n",
"\n",
"qesem_function = catalog.load(\"qedma/qesem\")"
]
},
Expand Down Expand Up @@ -232,6 +235,9 @@
"metadata": {},
"outputs": [],
"source": [
"# Print the ID so you can use it later, if necessary\n",
"print(sample_job.job_id)\n",
"\n",
"print(sample_job.status())\n",
"result = sample_job.result()"
]
Expand Down
5 changes: 4 additions & 1 deletion docs/guides/qunova-chemistry.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "95a715d2",
"metadata": {},
"outputs": [],
Expand All @@ -163,6 +163,9 @@
"\n",
"catalog = QiskitFunctionsCatalog(channel=\"ibm_quantum_platform\")\n",
"\n",
"# Verify that you have access to the function\n",
"catalog.list()\n",
"\n",
"function = catalog.load(\"qunova/hivqe-chemistry\")"
]
},
Expand Down
Loading