Efficiently Solve the Max-cut Problem via a Quantum Qubit Rotation Algorithm