41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
---
|
|
title: SolutionSample (v0.31)
|
|
description: API reference for qiskit.optimization.algorithms.SolutionSample in qiskit v0.31
|
|
in_page_toc_min_heading_level: 1
|
|
python_api_type: class
|
|
python_api_name: qiskit.optimization.algorithms.SolutionSample
|
|
---
|
|
|
|
# SolutionSample
|
|
|
|
<Class id="qiskit.optimization.algorithms.SolutionSample" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.9/qiskit/optimization/algorithms/optimization_algorithm.py" signature="SolutionSample(x, fval, probability, status)" modifiers="class">
|
|
Bases: `object`
|
|
|
|
A sample of an optimization solution
|
|
|
|
### x
|
|
|
|
<Attribute id="qiskit.optimization.algorithms.SolutionSample.x">
|
|
the values of variables
|
|
</Attribute>
|
|
|
|
### fval
|
|
|
|
<Attribute id="qiskit.optimization.algorithms.SolutionSample.fval">
|
|
the objective function value
|
|
</Attribute>
|
|
|
|
### probability
|
|
|
|
<Attribute id="qiskit.optimization.algorithms.SolutionSample.probability">
|
|
the probability of this sample
|
|
</Attribute>
|
|
|
|
### status
|
|
|
|
<Attribute id="qiskit.optimization.algorithms.SolutionSample.status">
|
|
the status of this sample
|
|
</Attribute>
|
|
</Class>
|
|
|