Skip to content

Commit 0742067

Browse files
committed
replace allocator with TensorOperations implementation
1 parent 5d00e9b commit 0742067

4 files changed

Lines changed: 6 additions & 71 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ RecipesBase = "1.1"
5353
TensorKit = "0.16.3"
5454
TensorKitManifolds = "0.7"
5555
TensorKitTensors = "0.2"
56-
TensorOperations = "5"
56+
TensorOperations = "5.5"
5757
Test = "1"
5858
TestExtras = "0.3"
5959
VectorInterface = "0.2, 0.3, 0.4, 0.5"

src/MPSKit.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ using MatrixAlgebraKit: TruncationStrategy, PolarViaSVD, LAPACK_SVDAlgorithm
6666
using BlockTensorKit
6767
using BlockTensorKit: TensorMapSumSpace
6868
using TensorOperations
69-
using TensorOperations: AbstractBackend, DefaultBackend, DefaultAllocator
69+
using TensorOperations: AbstractBackend, DefaultBackend, DefaultAllocator, BufferAllocator
7070
using KrylovKit
7171
using KrylovKit: KrylovAlgorithm
7272
using OptimKit
@@ -99,7 +99,6 @@ include("utility/logging.jl")
9999
using .IterativeLoggers
100100
include("utility/iterativesolvers.jl")
101101

102-
include("utility/allocator.jl")
103102
include("utility/styles.jl")
104103
include("utility/periodicarray.jl")
105104
include("utility/windowarray.jl")

src/algorithms/derivatives/derivatives.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ Base.:*(h::LazySum{<:Union{DerivativeOrMultiplied}}, v) = h(v)
222222
"""
223223
prepare_operator!!(O, [backend], [allocator]) -> O′
224224
225-
Given an operator, try to construct a more efficient representation of that operator for repeated application.
225+
Given an operator, try to construct a more efficient representation of that operator.
226+
This typically consists of precomputing some parts of the application,
227+
and is expected to only pay off for repeated applications.
226228
"""
227-
prepare_operator!!(O, backend::AbstractBackend = DefaultBackend(), allocator = GrowingBuffer()) = O
229+
prepare_operator!!(O, backend::AbstractBackend = DefaultBackend(), allocator = BufferAllocator()) = O

src/utility/allocator.jl

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)