NumPyMinimumEigensolver¶
-
class
NumPyMinimumEigensolver
(operator=None, aux_operators=None, filter_criterion=None)[source]¶ Bases:
qiskit.aqua.algorithms.classical_algorithm.ClassicalAlgorithm
,qiskit.aqua.algorithms.minimum_eigen_solvers.minimum_eigen_solver.MinimumEigensolver
The Numpy Minimum Eigensolver algorithm.
- Parameters
operator (
Union
[OperatorBase
,LegacyBaseOperator
,None
]) – Operator instanceaux_operators (
Optional
[List
[Union
[OperatorBase
,LegacyBaseOperator
,None
]]]) – Auxiliary operators to be evaluated at minimum eigenvaluefilter_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.
Methods
Computes minimum eigenvalue.
Execute the classical algorithm.
Whether computing the expectation value of auxiliary operators is supported.
Attributes
-
aux_operators
¶ - Return type
Optional
[List
[Optional
[OperatorBase
]]]
-
filter_criterion
¶ returns the filter criterion if set
- Return type
Optional
[Callable
[[Union
[List
,ndarray
],float
,Optional
[List
[float
]]],bool
]]
-
operator
¶ - Return type
Optional
[OperatorBase
]
-
random
¶ Return a numpy random.