make_credentials_for_braket

fireopal.credentials.make_credentials_for_braket(arn)

Build credentials for accessing AWS Braket quantum backends.

Use this function when you want to run circuits on Braket devices through Fire Opal. The IAM role identified by arn must have Braket permissions and must trust Q-CTRL’s AWS account.

Pass the returned Credentials dict as the credentials argument to functions such as execute() or show_supported_devices().

Parameters

arn (str) – The Amazon Resource Name (ARN) of an IAM role with Braket permissions that trusts Q-CTRL’s AWS account, for example, "arn:aws:iam::<account-id>:role/<role-name>".

Returns

Credentials

A dict of the form:

{"arn": arn, "organization_id": "<your_qctrl_org_id>", "provider": "braket"}

Notes

This function performs only basic type checking of the credentials it receives. It does not verify whether the credentials are valid for hardware access.

Was this useful?