def METHOD_NAME(
    self,
    ansatz: UVCC | None = None,
    problem: BaseProblem | None = None,
) -> None:
    """Compute the initial point parameter for each excitation.
    See class documentation for more information.
    Args:
        problem: The :attr:`problem`.
        ansatz: The :attr:`ansatz`.
    Raises:
        QiskitNatureError: If :attr:`ansatz` is not set.
    """
    if ansatz is not None:
        # The ansatz setter also sets the private excitation_list.
        self.ansatz = ansatz
    if self._ansatz is None:
        raise QiskitNatureError(
            "The ansatz property has not been set. "
            "Not enough information has been provided to compute the initial point. "
            "Set the ansatz or call compute with it as an argument. "
        )
    self._compute()