Generalized quantum microcanonical ensemble from random matrix product states