Updated gradient for new qdotToV.