only take real component of sqrtm for quad_form