Skip to content

Commit 021ca66

Browse files
committed
Add missing imports and fix job status invocation
1 parent 3766f70 commit 021ca66

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/nvidia_cuda_q/0_hello_cudaq_jobs.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,9 @@
307307
"metadata": {},
308308
"outputs": [],
309309
"source": [
310+
"from braket.aws import AwsQuantumJob\n",
311+
"from braket.devices import Devices\n",
312+
"\n",
310313
"# create a hybrid job\n",
311314
"job = AwsQuantumJob.create(\n",
312315
" device=Devices.Amazon.SV1,\n",
@@ -316,7 +319,7 @@
316319
"\n",
317320
"# view the ARN and the status of the job\n",
318321
"print(\"ARN of the job: \", job.arn)\n",
319-
"print(\"Status of the job: \", job.status())"
322+
"print(\"Status of the job: \", job.state())"
320323
]
321324
}
322325
],

0 commit comments

Comments
 (0)