Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update to amazon-braket-sdk v1.89.1 #677

Merged
merged 1 commit into from
Feb 10, 2025
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"outputs": [],
"source": [
"# set up Rigetti quantum device\n",
"rigetti = AwsDevice(Devices.Rigetti.Ankaa2)\n",
"rigetti = AwsDevice(Devices.Rigetti._Ankaa2)\n",
"\n",
"# set up IonQ quantum device\n",
"ionq = AwsDevice(Devices.IonQ.Aria1)\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
}
],
"source": [
"device = AwsDevice(Devices.Rigetti.Ankaa2)\n",
"device = AwsDevice(Devices.Rigetti._Ankaa2)\n",
"\n",
"connectivity_graph = device.properties.paradigm.connectivity.connectivityGraph\n",
"print(f\"the connectivity of {device.name} is: {connectivity_graph}\")"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@
"source": [
"# specify a device directly by device ARN\n",
"# Rigetti\n",
"device = AwsDevice(Devices.Rigetti.Ankaa2)\n",
"device = AwsDevice(Devices.Rigetti._Ankaa2)\n",
"# IonQ\n",
"device = AwsDevice(Devices.IonQ.Aria1)\n",
"# IQM\n",
Expand Down Expand Up @@ -1862,7 +1862,7 @@
"device = AwsDevice(Devices.IQM.Garnet)\n",
"\n",
"# the Rigetti device\n",
"device = AwsDevice(Devices.Rigetti.Ankaa2)\n",
"device = AwsDevice(Devices.Rigetti._Ankaa2)\n",
"\n",
"execution_windows = device.properties.service.executionWindows\n",
"connectivity_graph = device.properties.paradigm.connectivity\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@
}
],
"source": [
"AwsDevice(Devices.Rigetti.Ankaa2).properties.action[\n",
"AwsDevice(Devices.Rigetti._Ankaa2).properties.action[\n",
" \"braket.ir.openqasm.program\"\n",
"].requiresAllQubitsMeasurement"
]
Expand Down Expand Up @@ -1157,7 +1157,7 @@
],
"source": [
"# choose the quantum device\n",
"rigetti = AwsDevice(Devices.Rigetti.Ankaa2)\n",
"rigetti = AwsDevice(Devices.Rigetti._Ankaa2)\n",
"\n",
"ghz_program_with_physical_qubits_task = rigetti.run(\n",
" OpenQASMProgram(source=ghz_program_with_physical_qubits), shots=10\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"metadata": {},
"outputs": [],
"source": [
"rigetti = AwsDevice(Devices.Rigetti.Ankaa2)"
"rigetti = AwsDevice(Devices.Rigetti._Ankaa2)"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions examples/braket_features/Verbatim_Compilation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
],
"source": [
"# set up the Rigetti Ankaa-2 device\n",
"device = AwsDevice(Devices.Rigetti.Ankaa2)\n",
"device = AwsDevice(Devices.Rigetti._Ankaa2)\n",
"\n",
"# list the native gate set\n",
"print(\"The native gates for the\", device.name, \"device are:\")\n",
Expand Down Expand Up @@ -386,7 +386,7 @@
],
"source": [
"# set up the Rigetti Ankaa-2 device\n",
"rigetti = AwsDevice(Devices.Rigetti.Ankaa2)\n",
"rigetti = AwsDevice(Devices.Rigetti._Ankaa2)\n",
"\n",
"# access and visualize the device topology\n",
"# note that device topology can change day-to-day based on edge fidelity data\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"print(\"\\n\")\n",
"\n",
"# the Rigetti device\n",
"rigetti = AwsDevice(Devices.Rigetti.Ankaa2)\n",
"rigetti = AwsDevice(Devices.Rigetti._Ankaa2)\n",
"supported_gates = rigetti.properties.action[DeviceActionType.OPENQASM].supportedOperations\n",
"# print the supported gate set\n",
"print(\"Gate set supported by the Rigetti Ankaa-2 device:\\n\", supported_gates)\n",
Expand Down Expand Up @@ -869,7 +869,7 @@
],
"source": [
"# set up device\n",
"rigetti = AwsDevice(Devices.Rigetti.Ankaa2)\n",
"rigetti = AwsDevice(Devices.Rigetti._Ankaa2)\n",
"\n",
"# run circuit\n",
"task = rigetti.run(bell, shots=1000)\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@
"device = AwsDevice(Devices.Amazon.SV1)\n",
"\n",
"# set up the device to be the Rigetti quantum computer\n",
"# device = AwsDevice(Devices.Rigetti.Ankaa2)\n",
"# device = AwsDevice(Devices.Rigetti._Ankaa2)\n",
"\n",
"# set up the device to be the IonQ quantum computer\n",
"# device = AwsDevice(Devices.IonQ.Aria1)\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@
"source": [
"from braket.devices import Devices\n",
"\n",
"device_arn = Devices.Rigetti.Ankaa2\n",
"device_arn = Devices.Rigetti._Ankaa2\n",
"\n",
"\n",
"@hybrid_job(device=device_arn) # set priority QPU\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
"\n",
"devices = [\n",
" Devices.Amazon.SV1,\n",
" Devices.Rigetti.Ankaa2,\n",
" Devices.Rigetti._Ankaa2,\n",
" Devices.IonQ.Aria1,\n",
"]\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@
],
"source": [
"# Select the device on which you will be submitting your hybrid job.\n",
"device = AwsDevice(Devices.Rigetti.Ankaa2)\n",
"device = AwsDevice(Devices.Rigetti._Ankaa2)\n",
"device.queue_depth().jobs"
]
},
Expand All @@ -369,7 +369,7 @@
"outputs": [],
"source": [
"# qpu_job = AwsQuantumJob.create(\n",
"# device=Devices.Rigetti.Ankaa2,\n",
"# device=Devices.Rigetti._Ankaa2,\n",
"# source_module=\"algorithm_script.py\",\n",
"# wait_until_complete=False,\n",
"# )"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@
"## choose the on-demand simulator to run your circuit\n",
"# device = AwsDevice(Devices.Amazon.SV1)\n",
"## choose the Rigetti device to run your circuit\n",
"# device = AwsDevice(Devices.Rigetti.Ankaa2)\n",
"# device = AwsDevice(Devices.Rigetti._Ankaa2)\n",
"## choose the Ionq device to run your circuit\n",
"# device = AwsDevice(Devices.IonQ.Aria1)\n",
"## choose the IQM device to run your circuit\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
"## choose the on-demand simulator to run your circuit\n",
"# device = AwsDevice(Devices.Amazon.SV1)\n",
"## choose the Rigetti device to run your circuit\n",
"# device = AwsDevice(Devices.Rigetti.Ankaa2)\n",
"# device = AwsDevice(Devices.Rigetti._Ankaa2)\n",
"## choose the Ionq device to run your circuit\n",
"# device = AwsDevice(Devices.IonQ.Aria1)\n",
"## choose the IQM device to run your circuit\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@
"from braket.jobs.metrics import log_metric\n",
"\n",
"device_arn = Devices.Amazon.SV1\n",
"# device_arn = Devices.Rigetti.Ankaa2\n",
"# device_arn = Devices.Rigetti._Ankaa2\n",
"\n",
"\n",
"@hybrid_job(device=device_arn) # set priority QPU\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/pulse_control/1_Bringup_experiments.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"\n",
"experiment_configuration = {\n",
" \"ankaa\": {\n",
" \"device_arn\": Devices.Rigetti.Ankaa2,\n",
" \"device_arn\": Devices.Rigetti._Ankaa2,\n",
" \"qubit\": 3,\n",
" \"drive_frame\": \"Transmon_3_charge_tx\",\n",
" \"readout_frame\": \"Transmon_3_readout_rx\",\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/pulse_control/2_Native_gate_calibrations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"metadata": {},
"outputs": [],
"source": [
"device = AwsDevice(Devices.Rigetti.Ankaa2)"
"device = AwsDevice(Devices.Rigetti._Ankaa2)"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"a = 30\n",
"b = 37\n",
"\n",
"device = AwsDevice(Devices.Rigetti.Ankaa2)"
"device = AwsDevice(Devices.Rigetti._Ankaa2)"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/pulse_control/4_Build_single_qubit_gates.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"metadata": {},
"outputs": [],
"source": [
"device = AwsDevice(Devices.Rigetti.Ankaa2)"
"device = AwsDevice(Devices.Rigetti._Ankaa2)"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ boto3==1.36.17
amazon-braket-default-simulator==1.26.4
amazon-braket-pennylane-plugin==1.28.0 # pin until we support higher glibc version
amazon-braket-schemas==1.23.1
amazon-braket-sdk==1.88.3
amazon-braket-sdk==1.89.1
amazon-braket-algorithm-library==1.5.1
cvxpy==1.6.0
ipykernel==6.29.5
Expand Down
Loading