Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/schemes/ctm/ctm_honeycomb.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function run!(
verbosity = 1
)
LoggingExtras.withlevel(; verbosity) do
@infov 1 "Starting simulation\n"
@infov 1 "Starting simulation\n $(scheme)\n"
steps = 0
crit = true
ε = Inf
Expand Down
19 changes: 19 additions & 0 deletions src/schemes/ctm/honeycomb.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ function c3vCTM_honeycomb_init(T::TensorMap{A, S, 0, 3}) where {A, S}
return C, L, R
end

function Base.show(io::IO, scheme::c3vCTM_honeycomb)
println(io, "c3vCTM_honeycomb - Corner Transfer Matrix for honeycomb lattice")
println(io, " * T: $(summary(scheme.T))")
println(io, " * C: $(summary(scheme.C))")
println(io, " * L: $(summary(scheme.L))")
println(io, " * R: $(summary(scheme.R))")
return nothing
end

# Functions to permute (unflipped) tensors under 120 degree rotation
function rotl120_pf_honeycomb(T::TensorMap{A, S, 0, 3}) where {A, S}
return permute(T, ((), (2, 3, 1)))
Expand Down Expand Up @@ -166,3 +175,13 @@ function CTM_honeycomb_init(A::TensorMap{E, S, 0, 3}; B::TensorMap{E, S, 0, 3} =
Tb = [ones(S_type, oneunit(Vp) ⊗ space(A)[mod1(dir + 1, 3)]' ← oneunit(Vp)) for dir in 1:3]
return C, Ta, Tb
end

function Base.show(io::IO, scheme::CTM_honeycomb)
println(io, "CTM_honeycomb - Corner Transfer Matrix for honeycomb lattice")
println(io, " * A: $(summary(scheme.A))")
println(io, " * B: $(summary(scheme.B))")
println(io, " * C: $(summary(scheme.C))")
println(io, " * Ta: $(summary(scheme.Ta))")
println(io, " * Tb: $(summary(scheme.Tb))")
return nothing
end
3 changes: 2 additions & 1 deletion src/schemes/looptnr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ It also allows the user to turn on nuclear norm regularization.
# Krylov parameters
"Use Krylov methods to solve the linear system in loop optimization. Default = false, which uses the backslash operator."
krylov::Bool = false
krylovalg::A = GMRES(; verbosity = 0)
"Default Krylov algorithm is GMRES with maxiter = 250, krylovdim = 128, tol = 1.0e-10, verbosity = 0."
krylovalg::A = GMRES(; maxiter = 250, krylovdim = 128, tol = 1.0e-10, verbosity = 0)

# NNR parameters
"Use Nuclear Norm Regularisation. Default = false"
Expand Down
Loading