Modular Parity Quantum Approximate Optimization