Explorations in Quantum Error Correction and Simulation of Topological Phases