[BUG] hassameinds
in deprecate_make_inds_match!
gives false even when @show siteinds((A,x))
@show siteinds(ydag)
give the same result
#100
Labels
bug
Something isn't working
I'm performing
inner(psi', A, psi)
where psi is an MPS with a link between the first and last site, while A is an MPO where the first and the last are not linked. What happens is thatA*psi
deletes the bound between the first and the last site, so when performing the multiplication withpsi'
the links do not match, but the site inds (which should be the important ones) do. In particular:hassameinds(siteinds, ydag, (A, x))
returnsFalse
But
@show siteinds((A,x)) @show siteinds(ydag)
Shows
siteinds((A, x)) = Vector{Index{Int64}}[[(dim=3|id=207|"R54_qp,Site,n=1")'], [(dim=3|id=812|"R54_qp,Site,n=2")'], [(dim=3|id=57|"R54_qp,Site,n=3")'], [(dim=3|id=140|"R54_qp,Site,n=4")']]
siteinds(ydag) = Index{Int64}[(dim=3|id=207|"R54_qp,Site,n=1")', (dim=3|id=812|"R54_qp,Site,n=2")', (dim=3|id=57|"R54_qp,Site,n=3")', (dim=3|id=140|"R54_qp,Site,n=4")']
I tried to bypass this check by commenting the line:
ydag, A, x = deprecate_make_inds_match!(dot, ydag, A, x; make_inds_match)
in the function
_log_or_not_dot
, and it does not give any errorThe text was updated successfully, but these errors were encountered: