QED driven QAOA for network-flow optimization