def isket(state):
    """Checks whether a state is a ket based on its shape.
    
    Args:
        state (:obj:`jnp.ndarray`): input state

    Returns:
        bool: ``True`` if state is a ket and ``False`` otherwise
    """
    return state.shape[1] == 1