Skip to content

Commit 5b6ca7b

Browse files
authored
Update test_phys_site_types.jl
Adding a test for Sy to match Sx to insure the right Pauli operator is being applied to tJ site types.
1 parent 0fe9c96 commit 5b6ca7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/base/test_phys_site_types.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,10 @@ using ITensors.SiteTypes: has_fermion_string, op, siteind, siteinds, state
742742
@test Sx [0.0 0.0 0; 0 0 0.5; 0 0.5 0]
743743
Sx = Array(op(s, ""), s', s)
744744
@test Sx [0.0 0.0 0; 0 0 0.5; 0 0.5 0]
745+
Sy = Array(op(s, "Sy"), s', s)
746+
@test Sy [0.0 0.0 0; 0 0 -0.5im; 0 0.5im 0]
747+
Sy = Array(op(s, ""), s', s)
748+
@test Sy [0.0 0.0 0; 0 0 -0.5im; 0 0.5im 0]
745749
Sp = Array(op(s, "Splus"), s', s)
746750
@test Sp [0.0 0.0 0; 0 0 1.0; 0 0 0]
747751
Sp = Array(op(s, "Sp"), s', s)

0 commit comments

Comments
 (0)