Skip to content

bloqade.core.device.local_storage.ShotResult

← Module overview

classShotResultsource

bloqade.core.device.local_storage.ShotResult

Stored result for one shot and frame type.

Signature
class ShotResult(task_id: str, shot_index: int, subtask_index: int, subtask_shot_index: int, frame_type: str, bitstring: np.ndarray)

Parameters

NameTypeDescription
task_idstr
shot_indexint
subtask_indexint
subtask_shot_indexint
frame_typestr
bitstringnp.ndarray

Attributes

NameTypeDescription
task_idstrBackend task ID that produced the shot.
shot_indexintShot index within the task.
subtask_indexintSubtask index within the task definition.
subtask_shot_indexintShot index local to the subtask.
frame_typestrResult frame type, such as "DETECTED".
bitstringnp.ndarrayBoolean measurement bitstring.