Sampling rare conformational transitions with a quantum computer