In March 1956, Xia taught China's first course in computer theory. She also wrote "Principles of the Electronic Computer" which was the first computer science textbook in China. When the University of Science and Technology of China was founded in 1958, Xia set up its computer science department. She taught more than 700 students from 1956 to 1962.