Off-diagonal series expansion for quantum partition functions. (2nd May 2018)