Quantum defects The code in action Calculate topological defects formed when crossing the quantum phase transition in a simple spin model.