Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 8 additions & 15 deletions src/models/phi4_complex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down Expand Up @@ -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]

Expand Down Expand Up @@ -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.

Expand Down Expand Up @@ -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.

Expand Down Expand Up @@ -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.

Expand Down Expand Up @@ -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.

Expand Down Expand Up @@ -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.

Expand Down Expand Up @@ -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.

Expand Down
Loading