Nevermind. I found it was easier and much faster to just convert it to hessian normal form.