Quantum optimization using variational algorithms on near-term quantum devices. (19th June 2018)