The Toric code Hamiltonian is:
$\sum_{x,y}\left( \prod_{i\in p(x,y)} Z_{ixy} + \prod_{i\in v(x,y)} X_{ixy} \right),$
where the $v$ and $p$ are defined according to this picture (courtesy of James Wooton's contribution to Wikipedia):
At the moment we have an infinite 2D lattice:
$x\rightarrow \pm \infty$
$y\rightarrow \pm \infty$.
But if we set periodic boundary conditions such that (and feel free to edit the question if I am incorrect about this):
$p(x+10,y)=p(x,y)$
$v(x,y+10)=v(x,y)$,
We get the follownig torus (image courtesy of James Wooton's contribution to Wikipedia) :
Now in my periodic boundary conditions, I chose to add $+10$ but could have added some other number instead. How does this "size of the torus" affect the function of the toric code?