estimation_operator
¶
Core module for oqtopus-client.
Classes:
-
OqtopusEstimationOperator–Typed operator wrapper for estimation-style job specifications.
OqtopusEstimationOperator
dataclass
¶
OqtopusEstimationOperator(
pauli: str, coeff: float | None = None
)
Typed operator wrapper for estimation-style job specifications.
Methods:
-
from_model–Build a wrapper from a REST
JobsS3OperatorItemmodel. -
to_model–Convert this wrapper to the REST
JobsS3OperatorItemmodel.
from_model
classmethod
¶
from_model(
operator: JobsS3OperatorItem,
) -> OqtopusEstimationOperator
Build a wrapper from a REST JobsS3OperatorItem model.
Parameters:
-
(operator¶Required) –REST model to convert.
Returns:
-
OqtopusEstimationOperator–The converted operator wrapper.
to_model
¶
to_model() -> JobsS3OperatorItem
Convert this wrapper to the REST JobsS3OperatorItem model.
Returns:
-
JobsS3OperatorItem–The API model for this operator.