Unconstrained quadratic program

Hi guys, I am trying to solve a QP of the form $$x^T A x$$ for $$x$$, by computing gradients with respect to x. But for some reason it doesn’t work. Is there something i should be careful about? The derivative wrt x is trivial on paper, i am surprised why autograd is finding it so hard

Could you post the code?