qiskit_braket_provider.providers.BraketAwsBackend¶
- class BraketAwsBackend(arn=None, provider=None, name=None, description=None, online_date=None, backend_version=None, *, device=None, **fields)[source]¶
Runs quantum circuits on the Amazon Braket service.
Initialize the backend.
Example
>>> provider = BraketProvider() >>> backend = provider.get_backend("SV1") >>> transpiled_circuit = transpile(circuit, backend=backend) >>> backend.run(transpiled_circuit, shots=10).result().get_counts() {"100": 10, "001": 10}
- Parameters:
arn (str | None) – ARN of the Braket device. Default:
None.provider – Qiskit provider for this backend. Default:
None.name (str | None) – Name of backend. Default:
None.description (str | None) – Description of backend. Default:
None.online_date (datetime | None) – Online date. Default:
None.backend_version (str | None) – Backend version. Default:
None.device (AwsDevice | None) – Braket device instance. Default:
None.**fields – Extra arguments.
- __init__(arn=None, provider=None, name=None, description=None, online_date=None, backend_version=None, *, device=None, **fields)[source]¶
Initialize the backend.
Example
>>> provider = BraketProvider() >>> backend = provider.get_backend("SV1") >>> transpiled_circuit = transpile(circuit, backend=backend) >>> backend.run(transpiled_circuit, shots=10).result().get_counts() {"100": 10, "001": 10}
- Parameters:
arn (str | None) – ARN of the Braket device. Default:
None.provider – Qiskit provider for this backend. Default:
None.name (str | None) – Name of backend. Default:
None.description (str | None) – Description of backend. Default:
None.online_date (datetime | None) – Online date. Default:
None.backend_version (str | None) – Backend version. Default:
None.device (AwsDevice | None) – Braket device instance. Default:
None.**fields – Extra arguments.
Methods
__init__([arn, provider, name, description, ...])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.
queue_depth()Task queue depth refers to the total number of quantum tasks currently waiting to run on a particular device.
retrieve_job(task_id)Return a single job submitted to AWS backend.
run(run_input[, shots, verbatim, native, ...])Execute
QuantumCircuit``s on a ``BraketAwsBackendset_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
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.