Hey all!

I am trying to write down an Hamiltonian of the form `Sum(J(i,j,a,b)*S(i,a)*S(j,b)`

where S is the spin operator `Sx+Sy+Sz`

and J is just some normal rendom numbers, and i>j .

So my problem is that I can't figure out how to store an array inside an index. For example I want that whan a.b= 1 I will get Sx a,b=2 I will get Sy and for a,b=3 I will get Sz.

and to match a random number to each of them (J ).

Can anyone please help me ?

Thank you, Tomer