hi,
I have a quick question which is more related to julia than ITensors, but it’s probably an easy answer for you guys working on the internals: I was wondering if it is possible to check for the data type of an MPS (more specifically whether it’s living on the GPU) in a function call, in order to profit from multiple dispatch - I’m thinking of something like
function myf(a::MPS{CUDA data})
b = cu(random_mps(siteinds(a))
inner(a,b) # this should run on the GPU
end
function myf(a::MPS{non-cuda})
b = random_mps(siteinds(a))
inner(a,b) # this is CPU instead
end
would something like this be possible ?
thanks!