Closed yoshi-qc closed 1 year ago
This doesn't look like an issue with the name: if it's coming from that line then it means that
device_info = props["action"][DeviceActionType.JAQCD]
raised a KeyError
. This usually indicates that it's not a gate-model device, but this one appears to be, so I'm not sure what the reason is, would need to do some digging.
What is the line doing? Here, an error occurs.
Thanks for the above explanation.
device_info = props["action"][DeviceActionType.JAQCD]
from braket.aws import AwsDevice
from braket.device_schema import DeviceActionType
device = AwsDevice(
"arn:aws:braket:"
+ "us-east-1"
+ "::"
+ "/".join(
["device", "qpu", "ionq", "Aria-1"],
),
aws_session=aws_session,
)
device.properties.dict()["action"][DeviceActionType.JAQCD] # Error occurs.
For Harmony,
device.properties.dict()["action"]
returns
{<DeviceActionType.JAQCD: 'braket.ir.jaqcd.program'>: {'version': ['1'],...}
For Aria-1,
device.properties.dict()["action"]
returns
{<DeviceActionType.OPENQASM: 'braket.ir.openqasm.program'>: {'version': ['1'],...}
So, device.properties.dict()["action"][DeviceActionType.OPENQASM]
does not occur for Aria-1.
Looks like we have to try both then. Will make a PR.
I tried to access to IonQ's Aria-1 in AWS braket
I got the error
I checked device information of IonQ
and I got
For Aria, the name of device in 'deviceArn' is 'Aria-1' but 'deviceName' is 'Aria 1'.
In pytket-braket, is the name of device in 'deviceArn' compared with 'deviceName' somewhere?
https://github.com/CQCL/pytket-braket/blob/fa8a33f496d92570329b720ecca525b7eb239ab1/pytket/extensions/braket/backends/braket.py#L363