Skip to content

Commit

Permalink
Revert "Implement spatially symmetric LoopTNR (#7)"
Browse files Browse the repository at this point in the history
This reverts commit dc6d972.
  • Loading branch information
VictorVanthilt authored Jan 24, 2025
1 parent dc6d972 commit 679aae7
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 93 deletions.
4 changes: 0 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@ version = "0.1.0"
[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
LoggingExtras = "e6f89c97-d47a-5376-807f-9c37f3926c36"
OptimKit = "77e91f04-9b3b-57a6-a776-40b61faaebe0"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
TensorKit = "07d1fe3e-3e46-537d-9eac-e9e13d0d4cec"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[compat]
LoggingExtras = "1.1.0"
OptimKit = "0.3.1"
TensorKit = "0.14"
Zygote = "0.7.3"

[extras]
QuadGK = "1fd47b50-473d-5c70-9696-f719f8f3bcdc"
Expand Down
3 changes: 0 additions & 3 deletions src/TRGKit.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module TRGKit
using TensorKit, LinearAlgebra
using LoggingExtras, Printf
using Zygote, OptimKit

# stop criteria
include("utility/stopping.jl")
Expand All @@ -16,15 +15,13 @@ include("schemes/hotrg.jl")
include("schemes/gilt.jl")
include("schemes/gilt-tnr.jl")
include("schemes/atrg.jl")
include("schemes/slooptnr.jl")

export TRGScheme
export TRG, trg_convcrit
export BTRG, btrg_convcrit
export HOTRG, hotrg_convcrit
export ATRG, atrg_convcrit
export GILTTNR, gilttnr_convcrit
export SLoopTNR

export run!

Expand Down
69 changes: 0 additions & 69 deletions src/schemes/slooptnr.jl

This file was deleted.

2 changes: 1 addition & 1 deletion src/utility/finalize.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const simple_scheme = Union{TRG,GILTTNR,SLoopTNR}
const simple_scheme = Union{TRG,GILTTNR}
const turning_scheme = Union{HOTRG,ATRG}

# 1x1 unitcell finalize
Expand Down
16 changes: 0 additions & 16 deletions test/ising.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,3 @@ end
relerror = abs((fs - f_onsager) / f_onsager)
@test relerror < 2e-6
end

# SLoopTNR
@testset "SLoopTNR - Ising Model" begin
scheme = SLoopTNR(classical_ising(Ising_βc)) # SLoopTNR is not compatible yet with symmetric tensors
data = run!(scheme, truncdim(8), maxiter(25))

lnz = 0
for (i, d) in enumerate(data)
lnz += log(d) * 2.0^(1 - i)
end

fs = lnz * -1 / Ising_βc

relerror = abs((fs - f_onsager) / f_onsager)
@test relerror < 1e-5
end

0 comments on commit 679aae7

Please sign in to comment.