Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.optimization.algorithms.IntermediateResult

class IntermediateResult(value)

GitHub

Defines whether the intermediate results of RecursiveMinimumEigenOptimizer at each iteration should be stored and returned to the end user.

__init__

__init__()

Initialize self. See help(type(self)) for accurate signature.


Attributes

ALL_ITERATIONSAll intermediate results are stored.
LAST_ITERATIONOnly results from the last iteration are stored.
NO_ITERATIONSNo intermediate results are stored.

ALL_ITERATIONS

Default value: 2

All intermediate results are stored.

LAST_ITERATION

Default value: 1

Only results from the last iteration are stored.

NO_ITERATIONS

Default value: 0

No intermediate results are stored.

Was this page helpful?
Report a bug or request content on GitHub.