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

deprecation: IonQ Harmony #619

Merged
merged 8 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from 7 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
16 changes: 3 additions & 13 deletions examples/advanced_circuits_algorithms/Grover/Grover.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@
"outputs": [],
Copy link
Contributor

@virajvchaudhari virajvchaudhari Sep 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here

{'arn:aws:braket:us-west-1::device/qpu/rigetti/Aspen-M-3': {'shots': 141, 'tasks': {'CREATED': 1}}, 'arn:aws:braket:us-east-1::device/qpu/ionq/Harmony': {'shots': 141, 'tasks': {'CREATED': 1}}}


Reply via ReviewNB

"source": [
"# set up Rigetti quantum device\n",
"rigetti = AwsDevice(Devices.Rigetti.AspenM3)\n",
"rigetti = AwsDevice(Devices.Rigetti.Ankaa2)\n",
"\n",
"# set up IonQ quantum device\n",
"ionq = AwsDevice(Devices.IonQ.Harmony)\n",
"ionq = AwsDevice(Devices.IonQ.Aria1)\n",
"\n",
"# set up IQM quantum device\n",
"ionq = AwsDevice(Devices.IQM.Garnet)\n",
Expand Down
2,701 changes: 1,282 additions & 1,419 deletions examples/braket_features/Getting_Devices_and_Checking_Device_Properties.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,17 @@
"print('\\n') \n",
Copy link
Contributor

@virajvchaudhari virajvchaudhari Sep 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be Ankaa-2 and Aria-1?.

Quantum Task Summary
{'arn:aws:braket:us-west-1::device/qpu/rigetti/Aspen-M-3': {'shots': 2000, 'tasks': {'COMPLETED': 2}}, 'arn:aws:braket:us-east-1::device/qpu/ionq/Harmony': {'shots': 1000, 'tasks': {'COMPLETED': 1}}}

Reply via ReviewNB

"\n",
"# the Rigetti device\n",
"rigetti = AwsDevice(Devices.Rigetti.AspenM3)\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 device:\\n', supported_gates)\n",
"print('Gate set supported by the Rigetti Ankaa-2 device:\\n', supported_gates)\n",
"print('\\n') \n",
"\n",
"# the IonQ device\n",
"ionq = AwsDevice(Devices.IonQ.Harmony)\n",
"ionq = AwsDevice(Devices.IonQ.Aria1)\n",
"supported_gates = ionq.properties.action[DeviceActionType.OPENQASM].supportedOperations\n",
"# print the supported gate set\n",
"print('Gate set supported by the IonQ device:\\n', supported_gates)\n",
"print('Gate set supported by the IonQ Aria 1 device:\\n', supported_gates)\n",
"print('\\n')\n",
"\n",
"# the IQM Garnet device\n",
Expand Down Expand Up @@ -435,7 +435,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Next, we submit our example Bell state circuit to IonQ. We set the device as AwsDevice(\"arn:aws:braket:us-east-1::device/qpu/ionq/Harmony\"). This quantum task may not readily be executed but enter a queue for this specific machine. While we can interrupt our kernel (and work on something else), we can always recover our results using the unique ID of this quantum task."
"Next, we submit our example Bell state circuit to IonQ. We set the device as `AwsDevice(\"arn:aws:braket:us-east-1::device/qpu/ionq/Aria-1\")`. This quantum task may not readily be executed but enter a queue for this specific machine. While we can interrupt our kernel (and work on something else), we can always recover our results using the unique ID of this quantum task."
]
},
{
Expand Down Expand Up @@ -846,7 +846,7 @@
"outputs": [],
"source": [
"# set up device\n",
"rigetti = AwsDevice(Devices.Rigetti.AspenM3)\n",
"rigetti = AwsDevice(Devices.Rigetti.Ankaa2)\n",
"\n",
"# run circuit\n",
"task = rigetti.run(bell, shots=1000)\n",
Expand Down Expand Up @@ -928,7 +928,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.10.9"
},
"vscode": {
"interpreter": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -823,10 +823,10 @@
"device = AwsDevice(Devices.Amazon.SV1)\n",
"\n",
"# set up the device to be the Rigetti quantum computer\n",
"# device = AwsDevice(Devices.Rigetti.AspenM3)\n",
"# device = AwsDevice(Devices.Rigetti.Ankaa2)\n",
"\n",
"# set up the device to be the IonQ quantum computer\n",
"# device = AwsDevice(Devices.IonQ.Harmony)\n",
"# device = AwsDevice(Devices.IonQ.Aria1)\n",
"\n",
"# set up the device to be the IQM quantum computer\n",
"# device = AwsDevice(Devices.IQM.Garnet)"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"source": [
"# Parameters\n",
"shots = 1000\n",
"device_arn = \"arn:aws:braket:us-east-1::device/qpu/ionq/Harmony\"\n",
"device_arn = \"arn:aws:braket:us-east-1::device/qpu/ionq/Aria-1\"\n",
"results_dir = \"/opt/braket/model\""
]
},
Expand Down
4 changes: 2 additions & 2 deletions examples/hybrid_quantum_algorithms/QAOA/QAOA_braket.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,9 @@
"## 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.AspenM3)\n",
"# device = AwsDevice(Devices.Rigetti.Ankaa2)\n",
"## choose the Ionq device to run your circuit\n",
"# device = AwsDevice(Devices.IonQ.Harmony)\n",
"# device = AwsDevice(Devices.IonQ.Aria1)\n",
"## choose the IQM device to run your circuit\n",
"# device = AwsDevice(Devices.IQM.Garnet)"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@
"## 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.AspenM3)\n",
"# device = AwsDevice(Devices.Rigetti.Ankaa2)\n",
"## choose the Ionq device to run your circuit\n",
"# device = AwsDevice(Devices.IonQ.Harmony)\n",
"# device = AwsDevice(Devices.IonQ.Aria1)\n",
"## choose the IQM device to run your circuit\n",
"# device = AwsDevice(Devices.IQM.Garnet)"
]
Expand Down
38 changes: 24 additions & 14 deletions examples/pennylane/0_Getting_started/0_Getting_started.ipynb

Large diffs are not rendered by default.

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.35.0
amazon-braket-default-simulator==1.26.0
amazon-braket-pennylane-plugin==1.28.0
amazon-braket-schemas==1.22.0
amazon-braket-sdk==1.86.0
amazon-braket-sdk==1.87.0
amazon-braket-algorithm-library==1.4.13
cvxpy==1.5.3
ipykernel==6.29.5
Expand Down