After the pair traded frames, the finish turned on a mistake. O'Sullivan went in off the blue in a nervy end to the 10th frame, and Trump capitalised to close the match without a decider.
The win ended the run of the event's most decorated champion and left a last four that will also include an all-Chinese semi-final between Wu and Zhang Anda.
O'Sullivan made a break of 125 in the second frame, but Trump largely controlled the match. Breaks of 77 and 66 put him 3-1 ahead at the interval.
Trump stretched that advantage when play restarted. A miss on the pink let O'Sullivan steal a scrappy sixth frame, and the 50-year-old then made a 95 to cut the deficit to 4-3.
Wu also reached the last four. He will play his compatriot Zhang Anda on Saturday at 19:00 GMT.
The first two frames of Wu's match were shared. He then put together 340 unanswered points, including a break of 127, to establish a 4-1 lead.
Murphy responded with a break of 89. Wu took frame seven and later confirmed his place in the semi-finals with another half century.
In the last frame Murphy had a chance to finish in one visit, but he called a foul on himself when his cue caught a red after he had potted the pink.
Zhang Anda defeated Mark Allen 6-4. He set the tone with a break of 122 in the opening frame, then added runs of 97 and 90 to lead 4-1.
Allen rallied, but Zhang was able to keep him at bay and won at the end of a lengthy 10th frame.
"Now there is a new generation of Chinese players that are more confident and can win any match,"Zhang said.
Williams, who had ended Kyren Wilson's long unbeaten run in the last 16, had no answer in his next match. His highest break was 27, and the contest finished in well under three hours.