qiskit_braket_provider.providers.BraketLocalBackend¶
- class BraketLocalBackend(name='default', *, device=None, target=None, qubit_labels=None, **fields)[source]¶
Runs quantum circuits on a Braket local simulator or device emulator.
Wraps a
LocalSimulatorselected byname, or a pre-builtdevicesuch as the emulator fromAwsDevice.emulator()when one is given.Initialize the backend.
Example
>>> device = LocalSimulator() #Local State Vector Simulator >>> device = LocalSimulator("default") #Local State Vector Simulator >>> device = LocalSimulator(name="default") #Local State Vector Simulator >>> device = LocalSimulator(name="braket_sv") #Local State Vector Simulator >>> device = LocalSimulator(name="braket_dm") #Local Density Matrix Simulator
- Parameters:
name (str) – Name of backend. Default:
default.device (Device | None) – A pre-built local device to run on, such as the emulator from
AwsDevice.emulator(). Defaults to aLocalSimulatorselected byname. Default:None.target (Target | None) – Target for the backend. Built from the local simulator when omitted, required when
deviceis supplied. Default:None.qubit_labels (tuple[int, ...] | None) – Qubit labels of the device, in ascending order. Default:
None.**fields – Extra arguments.
- __init__(name='default', *, device=None, target=None, qubit_labels=None, **fields)[source]¶
Initialize the backend.
Example
>>> device = LocalSimulator() #Local State Vector Simulator >>> device = LocalSimulator("default") #Local State Vector Simulator >>> device = LocalSimulator(name="default") #Local State Vector Simulator >>> device = LocalSimulator(name="braket_sv") #Local State Vector Simulator >>> device = LocalSimulator(name="braket_dm") #Local Density Matrix Simulator
- Parameters:
name (str) – Name of backend. Default:
default.device (Device | None) – A pre-built local device to run on, such as the emulator from
AwsDevice.emulator(). Defaults to aLocalSimulatorselected byname. Default:None.target (Target | None) – Target for the backend. Built from the local simulator when omitted, required when
deviceis supplied. Default:None.qubit_labels (tuple[int, ...] | None) – Qubit labels of the device, in ascending order. Default:
None.**fields – Extra arguments.
Methods
__init__([name, device, target, qubit_labels])Initialize the backend.
acquire_channel(qubit)control_channel(qubits)drive_channel(qubit)get_gateset([native])Get the gate set of the device.
measure_channel(qubit)qubit_properties(qubit)Return QubitProperties for a given qubit.
run(run_input, *[, shots])Run on the backend.
set_options(**fields)Set the options fields for the backend
Attributes
coupling_mapReturn the
CouplingMapobjectdtReturn the system time resolution of input signals
dtmReturn the system time resolution of output signals
emulatorWhether this backend runs on a device emulator rather than a simulator.
instruction_durationsReturn the
InstructionDurationsobject.instructionsA list of Instruction tuples on the backend of the form
(instruction, (qubits))max_circuitsThe maximum number of circuits that can be run in a single job.
meas_mapReturn the grouping of measurements which are multiplexed
num_qubitsReturn the number of qubits the backend has.
operation_namesA list of instruction names that the backend supports.
operationsA list of
Instructioninstances that the backend supports.optionsReturn the options for the backend
providerReturn the backend provider.
qubit_labelsThe qubit labels of the underlying device, in ascending order.
targetA
qiskit.transpiler.Targetobject for the backend.versionnameName of the backend.
descriptionOptional human-readable description.
online_dateDate that the backend came online.
backend_versionVersion of the backend being provided.