 Qi's father was the chief engineer of the Nanjing University(formally Jingling University) from 1920 to 1950.His mother taught Mathematics in Heiwen High School for Girls (Later became Jinling College).In 1949, Qi graduated from Jinling High School.