def frobenius(point, q):
    """
    The Frobenius endomorphism @f$ \\phi @f$.

    @return    The point @f$ (x^q, y^q) @f$ if @p point is @f$ (x, y) @f$.
    """
    return point.__class__(point.x() ** q, point.y() ** q)
