From c16ea7eed691f451ac4f81080f726dbfa7b7dab2 Mon Sep 17 00:00:00 2001 From: lkdvos Date: Sun, 13 Aug 2023 18:09:40 +0200 Subject: [PATCH] Fix deprecation warnings --- src/algorithms/expval.jl | 6 +++--- test/algorithms.jl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/algorithms/expval.jl b/src/algorithms/expval.jl index 39f3373b..a6c5920e 100644 --- a/src/algorithms/expval.jl +++ b/src/algorithms/expval.jl @@ -11,10 +11,10 @@ function expectation_value( tr( ac' * transpose( opp * transpose( - ac, (TensorKit.allind(ac)[2:(end - 1)]), (1, TensorKit.numind(ac)) + ac, ((TensorKit.allind(ac)[2:(end - 1)]), (1, TensorKit.numind(ac))) ), - (TensorKit.numind(ac) - 1, TensorKit.allind(ac)[1:(end - 2)]...), - (TensorKit.numind(ac),), + ((TensorKit.numind(ac) - 1, TensorKit.allind(ac)[1:(end - 2)]...), + (TensorKit.numind(ac),)), ), ) end diff --git a/test/algorithms.jl b/test/algorithms.jl index 2d05e7b7..697c0d10 100644 --- a/test/algorithms.jl +++ b/test/algorithms.jl @@ -34,7 +34,7 @@ println("------------------------------------") finite_algs = [ DMRG(; verbose=verbosity > 0), DMRG2(; verbose=verbosity > 0, trscheme=truncdim(10)), - GradientGrassmann(; verbosity=verbosity), + GradientGrassmann(; tol=tol, verbosity=verbosity), ] @testset "Finite $i" for (i, alg) in enumerate(finite_algs)