Hey all!

Maybe someone can tell me waht is the problem in my code here with the expo ?

I'm getting an error about this

using ITensors

N=8

s= siteinds("S=1/2",N)

J=randn(N,N)

cutoff = 1E-8

tau = 0.1

ttotal = 5.0

## Compute the number of steps to do

Nsteps = Int(ttotal/tau)

gates= ITensor[] #creating an empty array for Trotter gate

for i=1:N-1

for j=2:N

hj= op("Sz",s[i])*op("Sz",s[j])
Gj = exp(-1.0im*tau/2*hj)

push!(gates,Gj)

end

end