Skip to content

Commit

Permalink
Reexport linsolve from KrylovKit
Browse files Browse the repository at this point in the history
  • Loading branch information
emstoudenmire committed Apr 25, 2024
1 parent 2e1f1ad commit f78b291
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/ITensorTDVP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ module ITensorTDVP

using Reexport: @reexport
@reexport using ITensors.ITensorMPS: contract, dmrg_x, tdvp

@reexport using KrylovKit: linsolve
using ITensors.ITensorMPS: ITensorMPS, MPS

function dmrg(operator, init_state::MPS; kwargs...)
return ITensorMPS.itensortdvp_dmrg(operator, init_state; kwargs...)
end
Expand Down
3 changes: 1 addition & 2 deletions test/test_linsolve.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@eval module $(gensym())
using ITensors: ITensors, MPO, OpSum, apply, randomMPS, siteinds
using ITensorTDVP: ITensorTDVP, dmrg
using KrylovKit: linsolve
using ITensorTDVP: ITensorTDVP, dmrg, linsolve
using LinearAlgebra: norm
using Test: @test, @testset
using Random: Random
Expand Down

0 comments on commit f78b291

Please sign in to comment.