From classical to quantum criticality