Skip to content

Commit

Permalink
TensorMap(zeros, ...) -> zeros(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
tangwei94 committed Nov 29, 2024
1 parent 579f527 commit f3f80ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/square_lattice_SU2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/test_spatial_operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)),
Expand Down

0 comments on commit f3f80ee

Please sign in to comment.