qp to qs