qbraid.runtime.OtherResultData

class OtherResultData(data=None)[source]

The result of a job whose output is not circuit results, such as a qBraid Compress job, whose result is a compressed program and a report.

Read it like a dict: result.data["compressedProgram"]. The keys are the device’s own, so they are kept as the device sent them.

__init__(data=None)[source]

Methods

__init__([data])

from_dict(data)

Creates a new OtherResultData instance from a dictionary.

from_object(result, experiment_type)

Creates a new ResultData instance from a qbraid_core runtime Result object.

get(k[,d])

items()

keys()

to_dict()

Returns a copy of the result data as sent by the device.

values()

Attributes

experiment_type

Returns the experiment type.

extra

Returns metadata fields that are not part of the typed result data.