View source for Quantum approximate optimization algorithm