qiskit-braket-provider
The qiskit-braket-provider package presents Braket devices as Qiskit backends.
Documentation index: qiskit-braket-provider documentation
Running on Braket
Use BraketSampler and BraketEstimator in place of Qiskit's Sampler and Estimator primitives to execute on Braket.
Both primitives require targets with program-set support; see program-sets.md.
Ordinary quantum tasks can be submitted by obtaining a backend from BraketProvider and calling backend.run(...).
Example notebooks
Getting started and running circuits
- Provider setup and first Braket run — Getting started with the Qiskit Braket provider
- Circuit submission, transpilation, and job retrieval — How to run circuits on Braket devices
Compilation and format conversion
- Compile Braket circuits through Qiskit with
to_braketandto_qiskit— Compilation with the Qiskit Braket provider - Device-aware transpilation with targets, qubit labels, optimization levels, basis gates, and pass managers — Qiskit-Braket provider transpilation tutorial
Braket-native primitives
- Run Qiskit estimator and sampler workloads with Braket program sets — Braket-native primitives
Specialized workflows
- Mid-circuit measurement and conditional operations — Dynamic circuits with the Qiskit Braket provider
- Run Qiskit workloads inside Braket Hybrid Jobs — How to run a Qiskit Hybrid Job
Gotchas
- Use one
shotsvalue for every pub in aBraketSamplercall and oneprecisionvalue for every pub in aBraketEstimatorcall. Qiskit's own pubs accept per-pub values, but the Braket primitives raiseValueErrorfor a mixed call. - Express
qiskit-ionqnative gate angles in turns, as IonQ defines them (IonQ native gates). The provider multiplies each value by 2π (gate_mappings.py), because the Braket native gates take radians (for example,GPi). - Mid-circuit measurement and conditional operations use dynamic circuits, which are an experimental capability. See Dynamic circuits with the Qiskit Braket provider and experimental-capabilities.md for how to enable and use them.
References
- Provider documentation:
- Source and packaging:
- Developer guide:
- Upstream:
- Local references: