qbraid.runtime.native.QbraidDevice

class QbraidDevice(profile, client=None, **kwargs)[source]

Class to represent a qBraid device.

Create a new QbraidDevice object.

__init__(profile, client=None, **kwargs)[source]

Create a new QbraidDevice object.

Methods

__init__(profile[, client])

Create a new QbraidDevice object.

apply_runtime_profile(run_input)

Process quantum program before passing to device run method.

estimate_cost(shots, execution_time)

Estimate the cost of running a quantum job on this device in qBraid credits, where 1 credit equals $0.01 USD.

metadata()

Returns a dictionary containing selected metadata about the device.

queue_depth()

Return the number of jobs in the queue for the backend

run(run_input[, shots, tags])

Run a quantum job or a list of quantum jobs on this quantum device.

set_options(**fields)

Update the runtime options for the QuantumDevice.

status()

Return device status.

submit(run_input[, shots, tags, entrypoint, ...])

Creates a qBraid Quantum Job.

transform(run_input)

Transform the input to the format expected by the qBraid API.

transpile(run_input, run_input_spec)

Convert circuit to package compatible with target device and pass through any provider transpile methods to match topology of device and/or optimize as applicable.

try_extracting_info(func, error_message)

Try to extract information from a function/attribute, logging an error if it fails.

update_scheme(**kwargs)

Update the conversion scheme with new values.

validate(program)

Verifies device status and circuit compatibility.

Attributes

client

Return the QuantumClient object.

id

Return the device ID.

num_qubits

The number of qubits supported by the device.

profile

Return the runtime profile.

scheme

Return the conversion scheme.

simulator

The device type, Simulator, Fake_device or QPU.