The Ising model on finitely generated groups and the braid group