On the fly quantum dynamics of electronic and nuclear wave packets