Skip to content

Commit

Permalink
Restrict KrylovAlgorithm types
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Jan 16, 2025
1 parent 0dbca73 commit 3839495
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/MPSKit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ module MPSKit
using TensorKit
using TensorKit: BraidingTensor
using BlockTensorKit
using KrylovKit, OptimKit, FastClosures
using KrylovKit
using KrylovKit: KrylovAlgorithm
using OptimKit, FastClosures
using Base.Threads, FLoops, Transducers, FoldsThreads
using Base.Iterators
using RecipesBase
Expand Down
5 changes: 2 additions & 3 deletions src/algorithms/excitation/chepigaansatz.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Single-site optimization algorithm for excitations on top of MPS groundstates.
## Fields
$(TYPEDFIELDS)
- `alg::A = Defaults.eigsolver`: algorithm to use for the eigenvalue problem.
## Constructors
Expand All @@ -21,7 +20,7 @@ keyword arguments to `Arnoldi`.
- [Chepiga et al. Phys. Rev. B 96 (2017)](@cite chepiga2017)
"""
struct ChepigaAnsatz{A} <: Algorithm
struct ChepigaAnsatz{A<:KrylovAlgorithm} <: Algorithm
"algorithm used for the eigenvalue solvers"
alg::A
end
Expand Down Expand Up @@ -84,7 +83,7 @@ keyword arguments to `Arnoldi`.
- [Chepiga et al. Phys. Rev. B 96 (2017)](@cite chepiga2017)
"""
struct ChepigaAnsatz2{A} <: Algorithm
struct ChepigaAnsatz2{A<:KrylovAlgorithm} <: Algorithm
alg::A
trscheme::Any
end
Expand Down

0 comments on commit 3839495

Please sign in to comment.