Registry / aws / amazon-braket-sdk

amazon-braket-sdk

JSON →
library1.119.1pypypi✓ verified 70d ago

An open source library for interacting with quantum computing devices on Amazon Braket. Current version 1.117.0, requires Python >=3.11. Released on a monthly cadence.

pip install amazon-braket-sdk
INSTALL
IMPORT
SIG · AMAZON-BRAKET-SDK
A
amazon-braket-sdk
awspythonv1.119.1
Install
22.8s avg
Import
5702ms
Disk
514MB
Pass rate
6/ 10
Env Coverage6 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.110.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✕ build_error
✓ 23s
py 3.11
✕ build_error
✓ 22.8s
py 3.12
✕ build_error
✓ 23s
py 3.13
✕ build_error
✓ 22.5s
py 3.9
✓ —
✓ 22.6s
514MB installed
● package 514MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AwsDevice
from braket.aws import AwsDevice
from braket.devices import AwsDevice
AwsDevice is in braket.aws, not braket.devices.
Circuit
from braket.circuits import Circuit
BraketSDK
from braket import BraketSDK
import braket
Direct import of braket does not expose SDK class; use BraketSDK for session management.

Runs a Bell state circuit on IonQ Harmony device using AWS credentials from environment or session.

from braket.aws import AwsDevice from braket.circuits import Circuit from braket import BraketSDK sdk = BraketSDK() device = AwsDevice("arn:aws:braket:us-west-1::device/qpu/ionq/Harmony") bell = Circuit().h(0).cnot(0, 1) task = device.run(bell, shots=100) print(task.result().measurement_counts)
Debug
Known issues
breakingPickle deserialization disabled by default (v1.117.0). Loading pickled tasks/circuits from untrusted sources will fail unless explicitly opt-in.
fix
Use braket.aws.aws_session.AwsSession with allow_pickle=True or deserialize with the appropriate safeguard.
affects: >=1.117.0
deprecatedRigetti Ankaa-3 retired in v1.116.0. Code using that device ARN will fail.
fix
Update device ARN to Rigetti Cepheus1108Q or other supported device.
affects: >=1.116.0
gotchaDevice ARN changes without deprecation notice. Example: Rigetti Cepheus1 renamed to Cepheus1108Q in v1.115.0.
fix
Always check latest device ARNs from AWS documentation or AwsDevice.get_device_region_map().
affects: >=1.115.0
gotchaBarrier targets must include at least one qubit; qubit 0 is now valid (v1.111.1). Previously barrier with no targets would print a warning.
fix
Always specify qubit indices in Barrier().
affects: >=1.111.1
Errors
Common errors & fixes
AttributeError: module 'braket' has no attribute 'aws'
Incomplete installation or wrong import path. braket.aws is a subpackage that must be installed separately? No, it's part of SDK but may not be imported if not properly installed.
fix
Run 'pip install amazon-braket-sdk' again, or use 'from braket.aws import AwsDevice' directly.
botocore.exceptions.NoCredentialsError: Unable to locate credentials
AWS credentials not configured. Braket SDK requires valid AWS credentials.
fix
Configure AWS CLI with 'aws configure' or set environment variables AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY.
ValueError: The device 'arn:aws:braket:us-west-1::device/qpu/rigetti/Ankaa-3' is not available.
Device retired or ARN outdated. Ankaa-3 was retired in v1.116.0.
fix
Use a current device ARN, e.g., 'arn:aws:braket:us-west-1::device/qpu/rigetti/Cepheus1108Q'.
Upgrade
Version history
1.119.1latest on PyPI · released Jun 10, 2026
Audit
Dependencies
boto3requiredAWS SDK for Python, required for Braket API calls
amazon-braket-default-simulatoroptionalLocal simulator for testing circuits
Agent activity
40 hits · last 30 days
node
34
Amazon
1
Resources
amazon-braket-sdk — pip install amazon-braket-sdk · libregistry