I have the following Hamiltonian to be solved in sesolve or mesolve represented as function based:
args = {'x': x, 'y': y, 'z': z}
H = [H0, [H1(0), S(0, x, y, z)], [H1(1), S(1, x, y, z)], [H1(2), S(2, x, y, z)], [H1(3), S(3, x, y, z)], [H1(4), S(4, x, y, z)]]
I want to use the string based method because it can be faster, but it would be tedious to write the function S manually as a string for each group. Is it possible to combine the string based and function based methods? I would definitely need to write the strings in H as a function of "n" if I had many more groups of [H1(n), S(n, x, y, z)] in H. My primary concern in the code is efficiency and being fast.