Mitigating algorithmic errors in quantum optimization through energy extrapolation. (1st January 2023)