\sum \sqrt{p_i^2 + q_i^2} 