qiskit_braket_provider.providers.BraketSampler¶
- class BraketSampler(backend, *, verbatim=False, optimization_level=0, **options)[source]¶
Runs provided quantum circuit and observable combinations on Amazon Braket devices and returns samples of their outputs.
Initialize the Braket sampler.
- Parameters:
backend (BraketBackend) – The Braket backend to run circuits on.
verbatim (bool) – Whether to translate the circuit without any modification, in other words without transpiling it. Default:
False.optimization_level (int | None) –
The optimization level to pass to
qiskit.transpile. From Qiskit:0: no optimization - basic translation, no optimization, trivial layout
1: light optimization - routing + potential SaberSwap, some gate cancellation and 1Q gate folding
2: medium optimization - better routing (noise aware) and commutative cancellation
3: high optimization - gate resynthesis and unitary-breaking passes
Default: 0.
- __init__(backend, *, verbatim=False, optimization_level=0, **options)[source]¶
Initialize the Braket sampler.
- Parameters:
backend (BraketBackend) – The Braket backend to run circuits on.
verbatim (bool) – Whether to translate the circuit without any modification, in other words without transpiling it. Default:
False.optimization_level (int | None) –
The optimization level to pass to
qiskit.transpile. From Qiskit:0: no optimization - basic translation, no optimization, trivial layout
1: light optimization - routing + potential SaberSwap, some gate cancellation and 1Q gate folding
2: medium optimization - better routing (noise aware) and commutative cancellation
3: high optimization - gate resynthesis and unitary-breaking passes
Default: 0.
Methods
__init__(backend, *[, verbatim, ...])Initialize the Braket sampler.
run(pubs, *[, shots])Samples circuits with multiple parameter values.