The main moto of this problem is to seperate the whole set of nodes in two subsets
In other words, we have to find a partition through the whole graph, such that sum of weights of edges that the partition passes becomes the maximum among all possible cuts.
We can convert this to a simple mathematical expression.
Here
As we have already defined a score value for a cut, we have to define that in terms of unitary ooperators that can be implemented on the quantum circuit.
While representing the partition using computational basis states, we can represent the terms in
Here the $\alpha$th edge is the edge connecting $j$th and $k$th nodes. For each node
Initially the circuit is converted to equal superposition state by applying Hadamard gate in each individual qubit, also known as
The circuit consists of
Now coming to each of the layers,
Detailed discussion and respective code, you can access here
Here the MAXCUT solution is quite simple and sum of weiights of cut edges is
The partition passes through all four edges present in the graph. Sum of weights herre is
In this test case, the solution partition passes through
For complex graphs like this test case 3, circuits with lesser number of layers doesn't have 100% accuracy, its possible that sometimes they give incorrect result, as seen from previous experimental results.