Statistical mechanical theory for steady state systems. IV. Transition probability and simulation algorithm demonstrated for heat flow.