# Braket Diagnostics

> >

- **Type:** Skill
- **Install:** `agentstack add skill-aws-samples-sample-ai-agent-skills-braket-troubleshooting`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [aws-samples](https://agentstack.voostack.com/s/aws-samples)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT-0
- **Upstream author:** [aws-samples](https://github.com/aws-samples)
- **Source:** https://github.com/aws-samples/sample-ai-agent-skills/tree/main/braket-troubleshooting

## Install

```sh
agentstack add skill-aws-samples-sample-ai-agent-skills-braket-troubleshooting
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Amazon Braket Diagnostics

## When to use

Any Amazon Braket investigation — quantum task failures, task timeouts, simulator errors, hardware device issues, circuit validation, hybrid job failures, notebook instance problems, SDK errors, cost management, device availability, or result retrieval.

## Investigation workflow

### Step 1 — Collect and triage

```
aws braket search-quantum-tasks --filters '[{"name":"status","operator":"EQUAL","values":["FAILED"]}]'
aws braket search-devices --filters '[{"name":"deviceType","operator":"EQUAL","values":["QPU"]}]'
aws braket get-quantum-task --quantum-task-arn 
```

### Step 2 — Domain deep dive

```
aws braket get-device --device-arn 
aws braket search-jobs --filters '[{"name":"status","operator":"EQUAL","values":["FAILED"]}]'
aws s3 ls s3:///tasks//
```

### Step 3 — Detailed investigation

```
aws cloudwatch get-metric-statistics --namespace "AWS/Braket" --metric-name "TasksCompleted" --dimensions Name=DeviceArn,Value= --start-time  --end-time  --period 3600 --statistics Sum
aws logs filter-log-events --log-group-name /aws/braket/jobs/ --limit 50
aws braket get-job --job-arn 
```

Read `references/guardrails.md` before concluding on any Braket issue.

## Tool quick reference

| Tool / API | When to use |
|------------|-------------|
| `braket search-quantum-tasks` | List quantum tasks with filters |
| `braket get-quantum-task` | Get task details and results |
| `braket search-devices` | List available devices |
| `braket get-device` | Get device capabilities and status |
| `braket search-jobs` | List hybrid jobs |
| `braket get-job` | Get hybrid job details |
| `braket cancel-quantum-task` | Cancel a running task |

## Gotchas: Amazon Braket

- Quantum tasks on QPU devices are queued and may take hours depending on device availability windows. Simulators are on-demand.
- Each QPU device has specific availability windows. Tasks submitted outside windows queue until the next window opens.
- Braket results are stored in S3. If the output bucket is misconfigured or permissions are wrong, tasks succeed but results are inaccessible.
- Simulator costs are per-minute of simulation time. QPU costs are per-task plus per-shot. Costs vary dramatically between devices.
- Hybrid jobs run on classical compute (ml.m5.xlarge default) plus quantum device access. Both incur separate charges.
- Circuit depth and qubit count limits vary by device. A circuit valid on one device may fail on another.
- The Braket SDK (amazon-braket-sdk) version must be compatible with the service. Outdated SDKs may produce unexpected errors.

## Anti-hallucination rules

1. Always cite specific quantum task ARNs, device ARNs, or API responses as evidence.
2. QPU and simulator devices have fundamentally different behavior, pricing, and availability. Never conflate them.
3. Device availability windows change frequently. Never state specific availability times without checking.
4. Braket does NOT provide error correction. Never claim quantum error correction is built in.
5. Spend no more than 2 minutes on any single hypothesis. Pivot if inconclusive.

## 12 runbooks

| Category | IDs | Covers |
|----------|-----|--------|
| A — Quantum Tasks | A1–A2 | Task failures, task timeouts |
| B — Devices | B1–B2 | Simulator errors, hardware device issues |
| C — Circuits | C1–C2 | Circuit validation, hybrid job failures |
| D — Environment | D1–D2 | Notebook instance issues, SDK errors |
| E — Operations | E1–E2 | Cost management, device availability |
| F — Results | F1 | Result retrieval |
| Z — Catch-All | Z1 | General troubleshooting |

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [aws-samples](https://github.com/aws-samples)
- **Source:** [aws-samples/sample-ai-agent-skills](https://github.com/aws-samples/sample-ai-agent-skills)
- **License:** MIT-0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-aws-samples-sample-ai-agent-skills-braket-troubleshooting
- Seller: https://agentstack.voostack.com/s/aws-samples
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
