From classical to quantum dynamics at Rokhsar–Kivelson points