Skip to content

Commit

Permalink
running how to notebook #2
Browse files Browse the repository at this point in the history
  • Loading branch information
robotAstray committed Jun 13, 2023
1 parent cc748ff commit c67bf16
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions docs/how_tos/2_how_to_retrieve_results_from_backend.ipynb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"id": "c74932e2",
"metadata": {},
Expand All @@ -22,6 +23,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "e306df72",
"metadata": {},
Expand Down Expand Up @@ -75,6 +77,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "d96fb4ef",
"metadata": {},
Expand Down Expand Up @@ -106,6 +109,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "a9963aac",
"metadata": {},
Expand Down Expand Up @@ -163,6 +167,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "fa7d65c1",
"metadata": {},
Expand All @@ -189,7 +194,7 @@
{
"data": {
"text/plain": [
"'Task id edbc35be-5bf2-4db5-980f-098976b76cdf'"
"'Task id b171d67b-e8c4-4ec6-b548-1b6e8f7c6c38'"
]
},
"execution_count": 6,
Expand All @@ -202,6 +207,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "83222235",
"metadata": {},
Expand All @@ -211,39 +217,39 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"id": "f65cd41c",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<qiskit_braket_provider.providers.braket_job.AmazonBraketTask at 0x7fcf0417a7c0>"
"<qiskit_braket_provider.providers.braket_job.AmazonBraketTask at 0x7fa20be88490>"
]
},
"execution_count": 7,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"retrieved_job = backend.retrieve_job(job_id=job.job_id())\n",
"retrieved_job = backend.retrieve_job(task_id=job.job_id())\n",
"retrieved_job"
]
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 9,
"id": "652bf407",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'00011': 1, '00001': 3, '01010': 1, '01011': 1, '00010': 4}"
"{'00001': 4, '01011': 1, '01000': 1, '00011': 3, '01001': 1}"
]
},
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
Expand Down

0 comments on commit c67bf16

Please sign in to comment.