Approximate Boltzmann distributions in quantum approximate optimization