Skip to content

Commit 3839495

Browse files
committed
Restrict KrylovAlgorithm types
1 parent 0dbca73 commit 3839495

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/MPSKit.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ module MPSKit
33
using TensorKit
44
using TensorKit: BraidingTensor
55
using BlockTensorKit
6-
using KrylovKit, OptimKit, FastClosures
6+
using KrylovKit
7+
using KrylovKit: KrylovAlgorithm
8+
using OptimKit, FastClosures
79
using Base.Threads, FLoops, Transducers, FoldsThreads
810
using Base.Iterators
911
using RecipesBase

src/algorithms/excitation/chepigaansatz.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Single-site optimization algorithm for excitations on top of MPS groundstates.
66
## Fields
77
88
$(TYPEDFIELDS)
9-
- `alg::A = Defaults.eigsolver`: algorithm to use for the eigenvalue problem.
109
1110
## Constructors
1211
@@ -21,7 +20,7 @@ keyword arguments to `Arnoldi`.
2120
2221
- [Chepiga et al. Phys. Rev. B 96 (2017)](@cite chepiga2017)
2322
"""
24-
struct ChepigaAnsatz{A} <: Algorithm
23+
struct ChepigaAnsatz{A<:KrylovAlgorithm} <: Algorithm
2524
"algorithm used for the eigenvalue solvers"
2625
alg::A
2726
end
@@ -84,7 +83,7 @@ keyword arguments to `Arnoldi`.
8483
8584
- [Chepiga et al. Phys. Rev. B 96 (2017)](@cite chepiga2017)
8685
"""
87-
struct ChepigaAnsatz2{A} <: Algorithm
86+
struct ChepigaAnsatz2{A<:KrylovAlgorithm} <: Algorithm
8887
alg::A
8988
trscheme::Any
9089
end

0 commit comments

Comments
 (0)