Counterpart to expect() changes in tdvp_gen.
First try at a DMRG-style left-right sweep optimizer. Seems to work nicely! (Debug prints present!)