qiskit-documentation/docs/api/qiskit/0.29/qiskit.chemistry.algorithms...

78 lines
3.0 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: NumPyEigensolverFactory (v0.29)
description: API reference for qiskit.chemistry.algorithms.NumPyEigensolverFactory in qiskit v0.29
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.chemistry.algorithms.NumPyEigensolverFactory
---
# NumPyEigensolverFactory
<Class id="qiskit.chemistry.algorithms.NumPyEigensolverFactory" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.9/qiskit/chemistry/algorithms/excited_states_solvers/eigensolver_factories/numpy_eigensolver_factory.py" signature="NumPyEigensolverFactory(filter_criterion=None, k=100, use_default_filter_criterion=False)" modifiers="class">
Bases: `qiskit.chemistry.algorithms.excited_states_solvers.eigensolver_factories.eigensolver_factory.EigensolverFactory`
A factory to construct a NumPyEigensolver.
**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 default filter criteria or not
* **k** (`int`) How many eigenvalues are to be computed, has a min. value of 1.
* **use\_default\_filter\_criterion** whether to use the transformations default filter criterion if `filter_criterion` is `None`.
## Methods
<span id="qiskit-chemistry-algorithms-numpyeigensolverfactory-get-solver" />
### get\_solver
<Function id="qiskit.chemistry.algorithms.NumPyEigensolverFactory.get_solver" signature="NumPyEigensolverFactory.get_solver(transformation)">
Returns a NumPyEigensolver with the desired filter
**Parameters**
**transformation** (`Transformation`) a fermionic/bosonic qubit operator transformation.
**Return type**
`Eigensolver`
**Returns**
A NumPyEigensolver suitable to compute the ground state of the molecule transformed by `transformation`.
</Function>
## Attributes
### filter\_criterion
<Attribute id="qiskit.chemistry.algorithms.NumPyEigensolverFactory.filter_criterion">
returns filter criterion
**Return type**
`Callable`\[\[`Union`\[`List`, `ndarray`], `float`, `Optional`\[`List`\[`float`]]], `bool`]
</Attribute>
### k
<Attribute id="qiskit.chemistry.algorithms.NumPyEigensolverFactory.k">
returns k (number of eigenvalues requested)
**Return type**
`int`
</Attribute>
### use\_default\_filter\_criterion
<Attribute id="qiskit.chemistry.algorithms.NumPyEigensolverFactory.use_default_filter_criterion">
returns whether to use the default filter criterion
**Return type**
`bool`
</Attribute>
</Class>