qbraid.runtime.native.QbraidJob

class QbraidJob(job_id, device=None, client=None, **kwargs)[source]

Class representing a qBraid job.

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

Methods

__init__(job_id[, device, client])

cancel()

Attempt to cancel the job.

get_result_data_cls([device_id, experiment_type])

Determine the appropriate ResultData class based on device_id and experiment_type.

is_terminal_state()

Returns True if job is in final state.

metadata()

Return the metadata regarding the job.

queue_position()

Return the position of the job in the queue.

result()

Return the results of the job.

status()

Return the status of the job / task , among the values of JobStatus.

wait_for_final_state([timeout, poll_interval])

Poll the job status until it progresses to a final state.

Attributes

client

Lazily initializes and returns the client object associated with the job.

device

Returns the qbraid QuantumDevice object associated with this job.

id

Return a unique id identifying the job.