Applies an event sequence to a state vector. Not very sophisticated or efficient at the moment, further improvements to come. Syntax:
where operators is a cell array of Hamiltonians or Liouvilians and durations is a vector of times for which they act. The events are executed chronologically from left to right.