Gu began attending Tsinghua University in 1965, where he studied at the Department of Engineering Physics till 1970. After graduation, he taught at the Department of Engineering Physics at Tsinghua University while pursuing postgraduate studies. In 1979, he moved to Denmark to continue pursuing his postgraduate studies at the Aarhus University of Denmark, where he received his Doctoral Degree in Natural Sciences in 1982.