qrunch.quantum.backends.amazon.local_amazon_braket_backend
Module with implementation of the local Braket simulator.
Classes
Class for handling Amazon Braket's local simulator. |
- class LocalAmazonBraketBackend
Bases:
BackendClass for handling Amazon Braket’s local simulator.
- __init__(device_to_simulate: DeviceData | None = None, *, compiler: Compiler | None = None, layout_synthesizer: LayoutSynthesizer | None = None) None
Initialize a local Braket Backend.
The backend calculates the full state vector or density matrix of the given circuit, and uses this to find the probabilities for each possible state in the Hilbert space.
- Parameters:
method – Method to use in the simulator.
device_to_simulate (DeviceData | None) – Device data to simulate noise from. If None, no noise is applied.
compiler (Compiler | None) – Compiler for changing into universal gates. Defaults to the Yordanov compiler.
layout_synthesizer (LayoutSynthesizer | None) – Layout synthesizer to change into topology. Defaults to None
- Return type:
None
- property name: str
Name of the backend.
- run(circuits: Circuit | Sequence[Circuit], shots: int | None) SimulatedJob
Run circuit on the backend.
- Parameters:
- Return type:
- supports_shots_equals_none() bool
Return whether the backend supports shots = None.
Braket backends do not support exact simulations without shots.
- Return type:
bool