One of the most popular approaches used to describe such phenomena is the TSH method, in particular when combined with Tully's fewest switches algorithm. In TSH a given trajectory can hop from one electronic state to another in a stochastic way, depending on the probability of the transition to occur. In order to get the transition probabilities one generally has to solve a time-dependent equation for the electrons of the system,