Yang was born on 28 May 1928 in Ji County, Henan province as Yang Haiyu. During the Second Sino-Japanese War, he joined the Communist guerrillas at the age of 14 and became a member of the Communist Party of China the next year. He fought in the Chinese Civil War and was wounded in battle in July 1947. After the founding of the People's Republic of China in 1949, Yang worked as a party official in Ji county and Tangyin county. In the summer of 1953, when the party secretary of Lin County was hospitalized, the prefectural government of Anyang sent Yang to assist the Lin County party committee. He was appointed as the county's party secretary in May 1954, and promoted to First Secretary of the county in 1958. Lin's achievement was endorsed by the senior committees, thus Yang was invited to have a speech at a national forum for discussion about production in mountainous areas, in November 1957, Beijing. He made reference to the local endemic esophageal cancer, which evoked Beijing's attention. Premier Zhou Enlai then requested a medical team to go to Lin County.
Lin County was plagued by severe water shortage and frequent droughts. According to the local gazetteer, there were some twenty major droughts that destroyed most crops, in the five centuries before 1920. When Lin County was hit by a severe drought in the summer of 1957, Yang organized the digging of 7,000 wells and water cellars. Two years later, however, the county encountered an unprecedented drought. All four main rivers in the territory, which were the sources of the canals that had been built, ran dry. Most residents had to make long treks to fetch water. In the face of severe difficulties, Yang and the county party committee decided to bring water from the Zhang River across the Taihang Mountains. The irrigation project, originally called Yin Zhang Ru Lin, was launched in February 1960, and was officially named the Red Flag Canal the next month. Yang was the leader and chief designer of the project. The project proceeded under very difficult conditions, as China was in the throes of the famine of the Great Leap Forward, and resources and technical skills were severely lacking. The entire county had only 28 hydrological technicians and three million yuan of reserve fund. The monumental project took 30,000 labourers ten years to complete. It comprised a trunk canal, of water channels, of tunnels, and of aqueducts. Workers dammed three rivers, flattened 1,250 hills, and moved of earth and stone. Out of the total cost of some 69 million yuan, about 85% was donated by the local residents. When the Cultural Revolution started in 1966, Yang was dismissed from his government positions and subjected to struggle sessions. He escaped to Beijing via Shanxi in 1967. Premier Zhou Enlai protected him and restored him to the government in April 1968, enabling him to supervise the project to completion in 1969. After its completion, the Red Flag Canal became a showcase project of China, attracting nearly 10,000 visitors from all over the country on a daily basis. An eponymous documentary film was made and screened countrywide; it was even shown at the United Nations by the Chinese delegation in 1974. Zhou Enlai called it one of the two "miracles" of new China, together with the Nanjing Yangtze River Bridge.
Yang retired in June 1995, but was hired by the Shanxi Provincial Government as an advisor to the Yellow River diversion project in 1996. In 2006, the Chinese national government officially elevated him to the rank of vice-minister. Yang died in the early morning of 10 April 2018, at the age of 89.