Closed GTorlai closed 2 years ago
More minimal:
julia> ITensors.indpairs(ITensor(j, k', i', k, j', i))
((dim=2|id=27|"j") => (dim=2|id=337|"i")', (dim=2|id=900|"k") => (dim=2|id=27|"j")', (dim=2|id=337|"i") => (dim=2|id=900|"k")')
Must be a permutation that is wrong, thanks for catching that!
This should be fixed by https://github.com/ITensor/ITensors.jl/pull/750.
However, I can't get the example you wrote above to run. It looks like there is a bug when calling choimatrix(circuit; noise = ("DEP",(p=0.01,)))
: https://github.com/GTorlai/PastaQ.jl/blob/00f47b9c2df4901f6ea2063e70c6a53b9da9722d/src/circuits/runcircuit.jl#L354-L355
Also, is choimatrix
supposed to be exported?
Yeah I think I already fixed this locally. Thanks for the fix on ITensor, will update shortly.
I could track the issue to here (which is called in the
tr(T::ITensor,...)
function: