Thermal state with quadratic interaction