Skip to content

Commit

Permalink
Merge branch 'main' into yitchen/cudaq-decorator-job
Browse files Browse the repository at this point in the history
  • Loading branch information
rmshaffer authored Feb 10, 2025
2 parents 851c31f + 2106bf9 commit 835d6e8
Show file tree
Hide file tree
Showing 19 changed files with 30 additions and 30 deletions.
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
2 changes: 1 addition & 1 deletion examples/hybrid_quantum_algorithms/QAOA/QAOA_braket.ipynb
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
14 changes: 7 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
botocore==1.36.6
awscli==1.37.6
boto3==1.36.6
amazon-braket-default-simulator==1.26.3
botocore==1.36.17
awscli==1.37.17
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 All @@ -23,9 +23,9 @@ optax==0.2.4
pandas==2.2.3
pennylane==0.35.1 # pin until we support higher glibc version
PennyLane-Lightning==0.35.1 # pin until we support higher glibc version
qiskit-aer==0.16.0
qiskit-aer==0.16.1
qiskit-algorithms==0.3.1
qiskit-braket-provider==0.4.1
qiskit-braket-provider==0.4.2
qiskit==1.2.0
scipy==1.13.1 # Scipy 1.14.0 requires Python >=3.10
scs<3.2.6 # Pinned for GLIBC 2.26 compatability
Expand Down

0 comments on commit 835d6e8

Please sign in to comment.