diff --git a/src/square_lattice_SU2.jl b/src/square_lattice_SU2.jl index ae8bc34..edac553 100644 --- a/src/square_lattice_SU2.jl +++ b/src/square_lattice_SU2.jl @@ -2,7 +2,7 @@ function T_1_3_A1() V = SU2Space(1//2=>1, 0=>1) P = SU2Space(1//2=>1) - T = TensorMap(zeros, ComplexF64, P, V^4) + T = zeros(ComplexF64, P, V^4) # a projector to the subspace with (1//2 ⊕ 0 ⊕ 0 ⊕ 0 -> 1//2) (short-range RVB) P_nocc_1_3 = begin @@ -29,7 +29,7 @@ function T_3_1_A1() V = SU2Space(1//2=>1, 0=>1) P = SU2Space(1//2=>1) - T = TensorMap(zeros, ComplexF64, P, V^4) + T = zeros(ComplexF64, P, V^4) # a projector to the subspace with (1//2 ⊕ 1//2 ⊕ 1//2 ⊕ 0 -> 1//2) (long-range RVB) P_nocc_3_1 = begin diff --git a/test/test_spatial_operations.jl b/test/test_spatial_operations.jl index e18c738..4fe2a2c 100644 --- a/test/test_spatial_operations.jl +++ b/test/test_spatial_operations.jl @@ -2,7 +2,7 @@ # TODO. more test cases V = SU2Space(1//2=>1, 0=>1); P = SU2Space(1//2=>1); - T = TensorMap(zeros, ComplexF64, P, V^4); + T = zeros(ComplexF64, P, V^4); mt = mapping_table(T) num_paras = num_free_parameters(T; _mapping_table=mt) @@ -16,7 +16,7 @@ end @testset "spatial_operations.jl" for _ in 1:10 V = SU2Space(1//2=>1, 0=>1) P = SU2Space(1//2=>1) - T = TensorMap(zeros, ComplexF64, P, V^6) + T = zeros(ComplexF64, P, V^6) permutations = [((1, ), (3, 4, 5, 6, 7, 2)), ((1, ), (4, 5, 6, 7, 2, 3)),