Many-body localization code