WindowExtrapolator¶
-
class
WindowExtrapolator
(extrapolator=None, window=2)[source]¶ Bases:
qiskit.chemistry.algorithms.pes_samplers.extrapolator.Extrapolator
An extrapolator which wraps another extrapolator, limiting the internal extrapolator’s ground truth parameter set to a fixed window size.
Constructor.
- Parameters
extrapolator (
Union
[PolynomialExtrapolator
,DifferentialExtrapolator
,None
]) – ‘internal’ extrapolator that performs extrapolation on variational parameters based on data windowwindow (
int
) – Number of previous points to use for extrapolation. A value of zero indicates that all previous points will be used for bootstrapping.
Methods
Extrapolate at specified point of interest given a set of variational parameters.
Factory method for constructing extrapolators.
Attributes
-
extrapolator
¶ Returns the internal extrapolator.
- Return type
Extrapolator
- Returns
The internal extrapolator.
-
window
¶ Returns the size of the window.
- Return type
int
- Returns
The size of the window.