Freedom of the mixer rotation axis improves performance in the quantum approximate optimization algorithm