How did opening Japan to trade with the West aid Japan in its own imperialist ambitions?
Japan at the time of its opening had no imperialist ambitions. The purpose of opening japan was to use its ports as coaling stations, prevent the maltreatment of us/european sailors shipwrecked there and eventually develop it as a market. It was initially a victim of the imperialist designs of other nations (though this changed over time).