qiskit_braket_provider.providers.BraketEstimator

class BraketEstimator(backend, *, verbatim=False, optimization_level=0, **options)[source]

Runs provided quantum circuit and observable combinations on Amazon Braket devices and computes their expectation values.

Initialize the Braket estimator.

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 estimator.

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 estimator.

run(pubs, *[, precision])

Run estimator on the given pubs.