QAOA-Max-Cut implemented solving of max cut problem throug the method of optimizing Hamiltonian corresponding to this problem