NumPyMinimumEigensolverFactory¶
-
class
NumPyMinimumEigensolverFactory
(filter_criterion=None, use_default_filter_criterion=False)[source]¶ Bases:
qiskit.chemistry.algorithms.ground_state_solvers.minimum_eigensolver_factories.minimum_eigensolver_factory.MinimumEigensolverFactory
A factory to construct a NumPyMinimumEigensolver.
- Parameters
filter_criterion (
Optional
[Callable
[[Union
[List
,ndarray
],float
,Optional
[List
[float
]]],bool
]]) – callable that allows to filter eigenvalues/eigenstates. The minimum eigensolver is only searching over feasible states and returns an eigenstate that has the smallest eigenvalue among feasible states. The callable has the signature filter(eigenstate, eigenvalue, aux_values) and must return a boolean to indicate whether to consider this value or not. If there is no feasible element, the result can even be empty.use_default_filter_criterion (
bool
) – whether to use the transformation’s default filter criterion iffilter_criterion
isNone
.
Methods
Returns a NumPyMinimumEigensolver which possibly uses the default filter criterion provided by the
transformation
.Returns whether the eigensolver generated by this factory supports auxiliary operators.
Attributes
-
filter_criterion
¶ returns filter criterion
- Return type
Callable
[[Union
[List
,ndarray
],float
,Optional
[List
[float
]]],bool
]
-
use_default_filter_criterion
¶ returns whether to use the default filter criterion
- Return type
bool