You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the Heisenberg Hamiltonian from the test/setup.jl the function convert(::Type{TensorMap}, H::FiniteMPOHamiltonian) fails with AssertionError: iscyclicpermutation(p), see example below:
using MPSKit, TensorKit
functionheisenberg_XXX(::Type{SU2Irrep}; spin=1, L=Inf)
h =ones(ComplexF64, SU2Space(spin =>1)^2←SU2Space(spin =>1)^2)
for (c, b) inblocks(h)
S = (dim(c) -1) /2
b .= S * (S +1) /2- spin * (spin +1)
endscale!(h, 4)
if L ==Inf
lattice =PeriodicArray([space(h, 1)])
returnInfiniteMPOHamiltonian(lattice, (i, i +1) => h for i in1:1)
else
lattice =fill(space(h, 1), L)
returnFiniteMPOHamiltonian(lattice, (i, i +1) => h for i in1:(L -1))
endend
H =heisenberg_XXX(SU2Irrep; L=4)
h =convert(TensorMap, H)
The text was updated successfully, but these errors were encountered:
Using the Heisenberg Hamiltonian from the
test/setup.jl
the functionconvert(::Type{TensorMap}, H::FiniteMPOHamiltonian)
fails withAssertionError: iscyclicpermutation(p)
, see example below:The text was updated successfully, but these errors were encountered: