The toric code is defined on a two-dimensional lattice, usually chosen to be the square lattice, with a spin-½ degree of freedom located on each edge. They are chosen to be periodic. Stabilizer operators are defined on the spins around each vertex v and plaquette (or face i.e. a vertex of the dual lattice) p of the lattice as follows,