Skip to content

Commit

Permalink
change: Replace Aspen-M-3 with Ankaa-2 (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmshaffer authored Sep 26, 2024
1 parent f0f70f2 commit 81486d8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/device.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,15 @@ Base.convert(::Type{String}, d::_Lucy) = "arn:aws:braket:eu-west-2::device/qpu/o
struct Garnet <: IQMDevice end
Base.convert(::Type{String}, d::Garnet) = "arn:aws:braket:eu-north-1::device/qpu/iqm/Garnet"

for (d, d_arn) in zip((:_Aspen8, :_Aspen9, :_Aspen10, :_Aspen11, :_AspenM1, :_AspenM2, :AspenM3),
for (d, d_arn) in zip((:_Aspen8, :_Aspen9, :_Aspen10, :_Aspen11, :_AspenM1, :_AspenM2, :_AspenM3, :Ankaa2),
("arn:aws:braket:::device/qpu/rigetti/Aspen-8",
"arn:aws:braket:::device/qpu/rigetti/Aspen-9",
"arn:aws:braket:::device/qpu/rigetti/Aspen-10",
"arn:aws:braket:::device/qpu/rigetti/Aspen-11",
"arn:aws:braket:us-west-1::device/qpu/rigetti/Aspen-M-1",
"arn:aws:braket:us-west-1::device/qpu/rigetti/Aspen-M-2",
"arn:aws:braket:us-west-1::device/qpu/rigetti/Aspen-M-3",
"arn:aws:braket:us-west-1::device/qpu/rigetti/Ankaa-2",
))
@eval begin
struct $d <: RigettiDevice end
Expand Down
2 changes: 1 addition & 1 deletion test/integ_tests/cost_tracking.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using AWS: @service, AWSConfig, global_aws_config
circuit = Circuit([(H, 0)])
t = Braket.Tracker()
n_available = 0
for arn = ("arn:aws:braket:eu-west-2::device/qpu/oqc/Lucy", "arn:aws:braket:eu-north-1::device/qpu/iqm/Garnet", "arn:aws:braket:us-west-1::device/qpu/rigetti/Aspen-M-3", "arn:aws:braket:us-east-1::device/qpu/ionq/Harmony")
for arn = ("arn:aws:braket:eu-west-2::device/qpu/oqc/Lucy", "arn:aws:braket:eu-north-1::device/qpu/iqm/Garnet", "arn:aws:braket:us-west-1::device/qpu/rigetti/Ankaa-2", "arn:aws:braket:us-east-1::device/qpu/ionq/Harmony")
d = AwsDevice(arn)
if Braket.isavailable(d)
d(circuit, shots=10)
Expand Down
2 changes: 1 addition & 1 deletion test/integ_tests/device_creation.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Braket, Test

RIGETTI_ARN = "arn:aws:braket:::device/qpu/rigetti/Aspen-M-3"
RIGETTI_ARN = "arn:aws:braket:::device/qpu/rigetti/Ankaa-2"
IONQ_ARN = "arn:aws:braket:us-east-1::device/qpu/ionq/Aria-1"
SIMULATOR_ARN = "arn:aws:braket:::device/quantum-simulator/amazon/sv1"
IQM_ARN = "arn:aws:braket:eu-north-1::device/qpu/iqm/Garnet"
Expand Down
2 changes: 1 addition & 1 deletion test/task.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ zero_shots_result(task_mtd, add_mtd) = Braket.GateModelTaskResult(
oq3_program() = Braket.OpenQasmProgram(Braket.header_dict[Braket.OpenQasmProgram], bell_qasm, nothing)
bell_circ() = (c = Circuit(); c=H(c, 0); c=CNot(c, 0, 1); return c)
bell_prog() = Braket.Program(bell_circ())
RIGETTI_ARN = "arn:aws:braket:::device/qpu/rigetti/Aspen-M-3"
RIGETTI_ARN = "arn:aws:braket:::device/qpu/rigetti/Ankaa-2"
IONQ_ARN = "arn:aws:braket:::device/qpu/ionq/ionQdevice"
SV1_ARN = "arn:aws:braket:::device/quantum-simulator/amazon/sv1"
IQM_ARN = "arn:aws:braket:eu-north-1::device/qpu/iqm/Garnet"
Expand Down
2 changes: 1 addition & 1 deletion test/task_batch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ mock_result(c) = Braket.GateModelTaskResult(
Braket.AdditionalMetadata(Braket.Program(c), nothing, nothing, nothing, nothing, nothing, nothing, nothing, nothing)
)

RIGETTI_ARN = "arn:aws:braket:::device/qpu/rigetti/Aspen-M-3"
RIGETTI_ARN = "arn:aws:braket:::device/qpu/rigetti/Ankaa-2"
IONQ_ARN = "arn:aws:braket:::device/qpu/ionq/ionQdevice"
SV1_ARN = "arn:aws:braket:::device/quantum-simulator/amazon/sv1"
IQM_ARN = "arn:aws:braket:eu-north-1::device/qpu/iqm/Garnet"
Expand Down

0 comments on commit 81486d8

Please sign in to comment.