Skip to content

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Aug 13, 2023
1 parent bd6cca7 commit c16ea7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/algorithms/expval.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/algorithms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

2 comments on commit c16ea7e

@lkdvos
Copy link
Member Author

@lkdvos lkdvos commented on c16ea7e Aug 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/89548

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.9.0 -m "<description of version>" c16ea7eed691f451ac4f81080f726dbfa7b7dab2
git push origin v0.9.0

Please sign in to comment.