# qiskit.chemistry.algorithms.ground_state_solvers.minimum_eigensolver_factories.minimum_eigensolver_factory のソースコード

# This code is part of Qiskit.
#
#
# obtain a copy of this license in the LICENSE.txt file in the root directory
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""The minimum eigensolver factory for ground state calculation algorithms."""

from abc import ABC, abstractmethod
from qiskit.aqua.algorithms import MinimumEigensolver
from ....transformations.transformation import Transformation

[ドキュメント]class MinimumEigensolverFactory(ABC):
"""A factory to construct a minimum eigensolver based on a qubit operator transformation."""

[ドキュメント]    @abstractmethod
def get_solver(self, transformation: Transformation) -> MinimumEigensolver:
"""Returns a minimum eigensolver, based on the qubit operator transformation.

Args:
transformation: The qubit operator transformation.

Returns:
A minimum eigensolver suitable to compute the ground state of the molecule transformed
by transformation.
"""
raise NotImplementedError

[ドキュメント]    @abstractmethod
def supports_aux_operators(self) -> bool:
"""Returns whether the eigensolver generated by this factory supports auxiliary operators.
"""
raise NotImplementedError