English
Languages
English
Shortcuts



SolutionSample

class SolutionSample(x, fval, probability, status)[source]

Bases: object

A sample of an optimization solution

x

the values of variables

Type

numpy.ndarray

fval

the objective function value

Type

float

probability

the probability of this sample

Type

float

status

the status of this sample

Type

qiskit_optimization.algorithms.optimization_algorithm.OptimizationResultStatus

Methods