Skip to content

Commit f43eca0

Browse files
authored
Update tj.jl
I've added an Sy operator for the tJ site types
1 parent f6ebba6 commit f43eca0

File tree

1 file changed

+7
-1
lines changed
  • src/lib/SiteTypes/src/sitetypes

1 file changed

+7
-1
lines changed

src/lib/SiteTypes/src/sitetypes/tj.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,13 @@ function op!(Op::ITensor, ::OpName"Sx", ::SiteType"tJ", s::Index)
183183
Op[s' => 2, s => 3] = 0.5
184184
return Op[s' => 3, s => 2] = 0.5
185185
end
186-
186+
function op!(Op::ITensor, ::OpName"Sy", ::SiteType"tJ", s::Index)
187+
Op[s' => 2, s => 3] = -1im*0.5
188+
return Op[s' => 3, s => 2] = 1im*0.5
189+
end
190+
function op!(Op::ITensor, ::OpName"Sʸ", st::SiteType"tJ", s::Index)
191+
return op!(Op, OpName("Sy"), st, s)
192+
end
187193
function op!(Op::ITensor, ::OpName"Sˣ", st::SiteType"tJ", s::Index)
188194
return op!(Op, OpName("Sx"), st, s)
189195
end

0 commit comments

Comments
 (0)