qbraid.runtime.aws.BraketDevice
- class BraketDevice(profile, session=None)[source]
Wrapper class for Amazon Braket
Deviceobjects.Configure default quantum task tags with
device.set_options(tags={"project": "example"}). Tags passed torunorsubmitoverride matching default keys. Clear the defaults withdevice.set_options(tags=None).Create a BraketDevice.
Methods
__init__(profile[, session])Create a BraketDevice.
apply_runtime_profile(run_input)Process quantum program before passing to device run method.
availability_window()Provides device availability status.
avg_queue_time()Return the average time (in seconds) a job spends in the queue for the device.
metadata()Returns a dictionary containing selected metadata about the device.
prepare(run_input)Convert the quantum program to an intermediate representation (IR) compatible with the submission format required for the target device and its provider API.
queue_depth()Return the number of jobs in the queue for the device.
run(run_input, *args, **kwargs)Run a quantum job or a list of quantum jobs on this quantum device.
set_options(**fields)Update runtime options, storing
tagsas a copy of the caller's dict.set_target_program_type(alias)Set the program type to target during runtime transpile step.
status()Return the status of this Device.
submit(run_input, *args[, tags])Run a quantum task specification on this quantum device.
supported_run_inputs()Return the sorted program type aliases accepted as
run_inputbyrun().transform(run_input)Transpile a circuit for the device.
transpile(run_input, run_input_spec)Reject OpenQASM feed-forward the device doesn't list, then transpile.
update_scheme(**kwargs)Update the conversion scheme with new values.
validate(run_input_batch[, ...])Verifies run input compatibility with target device.
Attributes
idReturn the device ID.
nameReturn the name of this Device.
num_qubitsThe number of qubits supported by the device.
profileReturn the runtime profile.
schemeReturn the conversion scheme.
simulatorThe device type, Simulator, Fake_device or QPU.