The algorithm relies on the Kac-Ward formalism, a mathematical method that allows exact computation of partition functions for planar spin glass systems in polynomial time, making it possible to ...