I have a problem understanding how changing the boundaries from a periodic lattice to a finite lattice. For example, if we have a 2D square lattice of lattice constant $a$ whose $x$ axis has only $N_x$ cells with one atom each and no spin degeneracy, and periodic boundary conditions on $y$ with $N_y$ cells, how can we even solve the corresponding Hamiltonian?
Normally, if we had a periodic system in both directions, we would simply use Bloch's theorem to transform our Hamiltonian into momentum space. Nevertheless, since we don't have translation symmetry in the $x$ direction, we can't do that. What other option do we have? Can we use the periodicity of the $y$ direction to use Bloch's theorem somehow?