Test example for K=2, one link

These are mesons in large N limit with antiperiodic boundary conditions for fermions and periodic boundry conditions for bosons (no zero modes).
No symmetries.  This uses Simon's form for the Fermion self-intertias.

<< "/home/jdbratt/hamiltonianMatrices.m"

Write out matrix

These are the |ket> 's with daggers implicit.

listOfStates[2, 1, none]

Length[%]

generalMatrix[makeham, 2, 1, 0, 
      1, {(Subscript[μ, B]), (Subscript[μ, F]), 
        (g^2), (Subscript[κ, S]), (Subscript[κ, A]), β, (Subscript[λ, 1]), (Subscript[λ, 2]), (Subscript[λ, 3]), (Subscript[λ, 4]), (Subscript[λ, 5])}, none]

Eigenvalues for just (g^2) interactions

expr = 
        N[generalMatrix[makeham, 2, 1, 0, 
            1, {0, 0, 1, -0.323, 0.162, 0, 0, 0, 0, 0, 0}, 
            none]];

This is a list of the different elements of the matrix

Union[Flatten[expr]]

Sort[Chop[Eigenvalues[expr]]]

These are the diagonal matrix elements

diag = Table[expr[[i, i]], {i, Length[expr]}]

Eigenvalues for mass,  (g^2),  and kappa interactions

The gluon effective potential interactions are not relevant here.

expr = 
        N[generalMatrix[makeham, 2, 1, 0, 
            1, {0.1803, 0.362, 1, -0.323, 0.162, 0, 0, 0, 0, 0, 0}, 
            none]];

This is a list of the different elements of the matrix

Union[Flatten[expr]]

Sort[Chop[Eigenvalues[expr]]]

These are the diagonal matrix elements

diag = Table[expr[[i, i]], {i, Length[expr]}]