guanjihuan.com/academic_codes/2019.12.30_calculation of spectral function and QPI