def set_gradient(self, gradient):
        r"""Set the gradient.

        :param gradient: A gradient operator. The gradient is only used for the computation of the kinetic
                         energy :math:`\langle \Psi | T | \Psi^{\prime} \rangle`.
        :type gradient: A :py:class:`Gradient` subclass instance.
        """
        self._gradient = gradient