VQEResult
Source code in q3as/algo/vqe.py
cost: Optional[float] = None
class-attribute
instance-attribute
The value of the cost function of the best iteration
estimated: Optional[PrimitiveResult[PubResult]] = None
class-attribute
instance-attribute
The result of the estimation of the best iteration
interpreted: Optional[List[Tuple[Any, int]]] = None
class-attribute
instance-attribute
The interpreted results of the sampling as defined by the application if given
iter: int = 0
class-attribute
instance-attribute
The number of iterations
meas_counts: Optional[Dict[str, int]] = None
class-attribute
instance-attribute
The bit string counts after sampling
params: np.ndarray
instance-attribute
The parameters of the best iteration
reason: HaltReason = HaltReason.INTERRUPT
class-attribute
instance-attribute
The reason why the optimization stopped
sampled: Optional[PrimitiveResult[SamplerPubResult]] = None
class-attribute
instance-attribute
The result of the sampling
most_sampled()
Get the the most sampled value from the results. This is the interpreted value as defined by the application if given or otherwise the bitstring