i found this tutorial about MaxCut and QAOA from pennylane and i do not understand how the equation and the circuit should be equal.
When i do the math i come to this conclusion:
When i change the equation to
So if I remove the identity matrix and the minus sign, I get the result of the circuit, but is that correct? And if so, why?
Thanks for your help!