This is the matlab code used for the computation in Nguyen Le et al. "Topological phases of a dimerized Fermi–Hubbard model for semiconductor nano-lattices" published in npj Quantum Information. If you have any question or need a commented version of the code please send an email to Nguyen Le at H.Le@surrey.ac.uk.