diff --git a/src/models/phi4_complex.jl b/src/models/phi4_complex.jl index 03f04be8..c0782e1c 100644 --- a/src/models/phi4_complex.jl +++ b/src/models/phi4_complex.jl @@ -117,8 +117,7 @@ end """ $(SIGNATURES) -Constructs the partition function tensor for a 2D square lattice -for the complex ϕ^4 model with a given approximation (and bond dimension) `K`, bare mass ``µ_0^2`` `μ0`, interaction constant `λ` and external field `h`. +Constructs the partition function tensor for a 2D square lattice for the complex ϕ^4 model with a given approximation `K`, bare mass µ_0^2 `μ0` and interaction constant `λ`. It is based on [Gauss-Hermite quadrature](https://en.wikipedia.org/wiki/Gauss%E2%80%93Hermite_quadrature). @@ -147,7 +146,7 @@ function phi4_complex(K::Integer, μ0::Float64, λ::Float64) U, S, V = svd_compact!(f) N = K^2 - T_arr = zeros(eltype(S), N, N, N, N) + T_arr = zeros(ComplexF64, N, N, N, N) weights = [ws[α] * ws[β] * exp(ys[α]^2 + ys[β]^2) for α in 1:K, β in 1:K] @@ -184,8 +183,7 @@ end """ $(SIGNATURES) -Constructs the impurity tensor for a 2D square lattice -for the complex ϕ^4 model with a given approximation (and bond dimension) `K`, bare mass ``µ_0^2`` `μ0`, interaction constant `λ` and external field `h`. +Constructs the impurity tensor for a 2D square lattice for the complex ϕ^4 model with a given approximation `K`, bare mass µ_0^2 `μ0` and interaction constant `λ`. The impurity is a ϕ operator on this site. @@ -254,8 +252,7 @@ end """ $(SIGNATURES) -Constructs the impurity tensor for a 2D square lattice -for the complex ϕ^4 model with a given approximation (and bond dimension) `K`, bare mass ``µ_0^2`` `μ0`, interaction constant `λ` and external field `h`. +Constructs the impurity tensor for a 2D square lattice for the complex ϕ^4 model with a given approximation `K`, bare mass µ_0^2 `μ0` and interaction constant `λ`. The impurity is a ϕ† operator on this site. @@ -323,8 +320,7 @@ end """ $(SIGNATURES) -Constructs the impurity tensor for a 2D square lattice -for the complex ϕ^4 model with a given approximation (and bond dimension) `K`, bare mass ``µ_0^2`` `μ0`, interaction constant `λ` and external field `h`. +Constructs the impurity tensor for a 2D square lattice for the complex ϕ^4 model with a given approximation `K`, bare mass µ_0^2 `μ0` and interaction constant `λ`. The impurity is a √(ϕϕ†) operator on this site. @@ -392,8 +388,7 @@ end """ $(SIGNATURES) -Constructs the impurity tensor for a 2D square lattice -for the complex ϕ^4 model with a given approximation (and bond dimension) `K`, bare mass ``µ_0^2`` `μ0`, interaction constant `λ` and external field `h`. +Constructs the impurity tensor for a 2D square lattice for the complex ϕ^4 model with a given approximation `K`, bare mass µ_0^2 `μ0` and interaction constant `λ`. The impurity is a ϕϕ† operator on this site. @@ -462,8 +457,7 @@ end """ $(SIGNATURES) -Constructs all the tensors: the partition function tensor and all the impurity tensors for a 2D square lattice -for the complex ϕ^4 model with a given approximation (and bond dimension) `K`, bare mass ``µ_0^2`` `μ0`, interaction constant `λ` and external field `h`. +Constructs all the tensors: the partition function tensor and all the impurity tensors for a 2D square lattice for the complex ϕ^4 model with a given approximation `K`, bare mass µ_0^2 `μ0` and interaction constant `λ`. It is faster to compute them all at once then one for one individually. @@ -556,8 +550,7 @@ end """ $(SIGNATURES) -Constructs the partition function tensor for a 2D square lattice -for the complex ϕ^4 model with a given approximation (and bond dimension) `K`, bare mass ``µ_0^2`` `μ0`, interaction constant `λ`. +Constructs the partition function tensor for a 2D square lattice for the complex ϕ^4 model with a given approximation `K`, bare mass µ_0^2 `μ0` and interaction constant `λ`. This tensor has explicit U(1) symmetry on each of its spaces.