-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
If you create a symmetric Hamiltonians containing the identity
lat = FiniteChain(N);
idd = id(U1Space( 1 => 1,0 => 1,-1 => 1))
H_heisenberg = @mpoham sum(J1*((S_exchange(ComplexF64,U1Irrep,spin=1))⊗idd){lat[i],lat[i+1],lat[i+2]} for i in 1:N-2)
or
idd = id(ComplexF64,SU2Space(1 => 1))
H_heisenberg = @mpoham sum(J1*((S_exchange(ComplexF64,SU2Irrep,spin=1))⊗idd){lat[i],lat[i+1],lat[i+2]} for i in 1:N-2)
you encounter issues when printing the Hamiltonian (It still creates it perfectly).
TypeError: in typeassert, expected DataType, got Type{Union{BraidingTensor{ComplexF64, GradedSpace{SU2Irrep, TensorKit.SortedVectorDict{SU2Irrep, Int64}}}, TensorMap{ComplexF64, GradedSpace{SU2Irrep, TensorKit.SortedVectorDict{SU2Irrep, Int64}}, 2, 2, Vector{ComplexF64}}}}
Metadata
Metadata
Assignees
Labels
No labels