Algorithms, QEC and Lattice Gauge Theories