qunicorn_core.db.models.result module

class qunicorn_core.db.models.result.ResultDataclass(job=None, program=None, data=None, meta=None, result_type='COUNTS')

Bases: DbModel

Dataclass for storing results of a job

Attributes:

id (int): The ID of the result. (set by the database) job (JobDataclass, optional): The job that was executed. program (QuantumProgramDataclass, optional): The specific program that was executed. data (Any): The result of the job, in the given result_type. meta (dict): Some other data that was given by ibm. result_type (Enum): Result type depending on the Job_Type of the job.

classmethod apply_authentication_filter(query: Select, user_id: str | None) Select
data: Mapped[Any]
id: Mapped[int]
job: Mapped[JobDataclass | None]
job_id: Mapped[int | None]
meta: Mapped[Dict[str, Any]]
program: Mapped[QuantumProgramDataclass | None]
program_id: Mapped[int | None]
result_type: Mapped[str]