Quartic formulation of standard quadratic optimization