Skip to main contentIBM Quantum Documentation
You are viewing the API reference for an old version of Qiskit SDK. Switch to latest version

NumPyMinimumEigensolver

NumPyMinimumEigensolver(operator=None, aux_operators=None) GitHub(opens in a new tab)

The Numpy Minimum Eigensolver algorithm.

Parameters


Attributes

aux_operators

Optional[List[Optional[qiskit.aqua.operators.operator_base.OperatorBase]]]

Returns the auxiliary operators.

Return type

Optional[List[Optional[OperatorBase]]]

operator

Optional[qiskit.aqua.operators.operator_base.OperatorBase]

Return the operator.

Return type

Optional[OperatorBase]

random

Return a numpy random.


Methods

compute_minimum_eigenvalue

NumPyMinimumEigensolver.compute_minimum_eigenvalue(operator=None, aux_operators=None)

Computes minimum eigenvalue. Operator and aux_operators can be supplied here and if not None will override any already set into algorithm so it can be reused with different operators. While an operator is required by algorithms, aux_operators are optional. To ‘remove’ a previous aux_operators array use an empty list here.

Parameters

Return type

MinimumEigensolverResult

Returns

MinimumEigensolverResult

run

NumPyMinimumEigensolver.run()

Execute the classical algorithm.

Returns

results of an algorithm.

Return type

dict

supports_aux_operators

NumPyMinimumEigensolver.supports_aux_operators()

Whether computing the expectation value of auxiliary operators is supported.

If the minimum eigensolver computes an eigenstate of the main operator then it can compute the expectation value of the aux_operators for that state. Otherwise they will be ignored.

Return type

bool

Returns

True if aux_operator expectations can be evaluated, False otherwise

Was this page helpful?