Quasi-degenerate perturbation theory using matrix product states | Synapse