I will not bother to write down the tensor product in the joint basis of A and B here in this post, where A and B are atoms/electrons and m denotes a unit cell.
The Hamiltonian for this model is given by:
$H = v \sum_{m=1}^{N} \left( |m,B\rangle \langle m,A| + \text{h.c.} \right) + w \sum_{m=1}^{N-1}\left( |m+1,B\rangle \langle m,A| + \text{h.c.} \right)$
The matrix is given by:
\begin{bmatrix} 0 & v & 0 & 0 & 0 & 0 & 0 & 0\\ v & 0 & w & 0 & 0 & 0 & 0 & 0\\ 0 & w & 0 & v & 0 & 0 & 0 & 0\\ 0 & 0 & v & 0 & w & 0 & 0 & 0\\ 0 & 0 & 0 & w & 0 & v & 0 & 0\\ 0 & 0 & 0 & 0 & v & 0 & w & 0\\ 0 & 0 & 0 & 0 & 0 & w & 0 & 0\\ 0 & 0 & 0 & 0 & 0 & 0 & v & 0\\ \end{bmatrix}
I think the sum in the Hamiltonian is being done over the unit cells which are denoted by m and A,B are the atoms/electrons respectively. I assume no spin or Couloumb interaction. I tried to write the Hamiltonian with the completeness relation on either side to figure out the matrix like this:
IHI, where I is the completeness relation written using the basis $|m, A\rangle|m, B\rangle$
However I think I did it wrong as when I supplied the completeness relation, I ended up with kronecker delta's in A,A' and B,B' with a leftover basis in the ket, but I do not know how to proceed or what to do next. My QM knowledge is at the level of Griffiths/Zettili. I can't seem to derive the matrix representation of this Hamiltonian for N=4.