Quantum fluctuation theorem to benchmark quantum annealers