From 20f95ed95f53607119049d7a1c568f78cae645ab Mon Sep 17 00:00:00 2001 From: Andrew Hardy Date: Mon, 7 Apr 2025 14:35:32 -0400 Subject: [PATCH] Update test_phys_site_types.jl Adding Sy test --- test/base/test_phys_site_types.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/base/test_phys_site_types.jl b/test/base/test_phys_site_types.jl index 5fb6733c70..5d0cf38f32 100644 --- a/test/base/test_phys_site_types.jl +++ b/test/base/test_phys_site_types.jl @@ -742,6 +742,10 @@ using ITensors.SiteTypes: has_fermion_string, op, siteind, siteinds, state @test Sx ≈ [0.0 0.0 0; 0 0 0.5; 0 0.5 0] Sx = Array(op(s, "Sˣ"), s', s) @test Sx ≈ [0.0 0.0 0; 0 0 0.5; 0 0.5 0] + Sy = Array(op(s, "Sy"), s', s) + @test Sy ≈ [0.0 0.0 0; 0 0 -0.5im; 0 0.5im 0] + Sy = Array(op(s, "Sʸ"), s', s) + @test Sy ≈ [0.0 0.0 0; 0 0 -0.5im; 0 0.5im 0] Sp = Array(op(s, "Splus"), s', s) @test Sp ≈ [0.0 0.0 0; 0 0 1.0; 0 0 0] Sp = Array(op(s, "Sp"), s', s)