Q_vs_T_run2 code