Skip to content

Commit

Permalink
test: fix missing device capabailities (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
math411 authored Nov 17, 2023
1 parent 5c42a2f commit dff1676
Show file tree
Hide file tree
Showing 5 changed files with 17,783 additions and 7 deletions.
6 changes: 2 additions & 4 deletions examples/qiskit/0_Getting_Started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@
"metadata": {},
"outputs": [],
"source": [
"task_id = qpu_task.job_id()\n",
"task_id = qpu_task.task_id()\n",
"task_id"
]
},
Expand All @@ -332,8 +332,6 @@
"id": "3b7ee5ac",
"metadata": {},
"source": [
"**Note**: Qiskit uses the name \\\"job\\\" to refer to what is called a \\\"task\\\" in Amazon Braket. This is why you access the ARN for the task by calling `.job_id()`. \n",
"\n",
"Now, Braket has a separate feature called \\\"Hybrid *Jobs*\\\", which is beyond the scope of this notebook, but which you can read about in the [developer guide](https://docs.aws.amazon.com/braket/latest/developerguide/braket-jobs.html)."
]
},
Expand All @@ -345,7 +343,7 @@
"outputs": [],
"source": [
"# Retrieve quantum task data\n",
"retrieved_task = qpu_backend.retrieve_job(job_id=task_id)"
"retrieved_task = qpu_backend.retrieve_job(task_id=task_id)"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ pandas==2.1.1
pennylane==0.32.0
PennyLane-Lightning==0.32.0
qiskit-aer==0.12.2
qiskit_braket_provider==0.0.4
qiskit_braket_provider==0.0.5
qiskit-terra==0.25.2.1
scipy==1.11.3
6 changes: 5 additions & 1 deletion test/integ_tests/qiskit/0_Getting_Started_mocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ def pre_run_inject(mock_utils):

mocker = mock_utils.Mocker()
mock_utils.mock_default_device_calls(mocker)
mocker.set_get_device_result({
"deviceType" : "QPU",
"deviceCapabilities" : mock_utils.read_file("rig_pulse_device_capabilities.json", __file__)
})
mocker.set_search_result([
{
"devices": [
Expand Down Expand Up @@ -45,4 +49,4 @@ def pre_run_inject(mock_utils):


def post_run(tb):
pass
pass
Loading

0 comments on commit dff1676

Please sign in to comment.