Skip to content

Commit de21294

Browse files
committed
Remove some extra storagetypes
1 parent 0444baf commit de21294

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

src/states/infinitemps.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ struct InfiniteMPS{A <: GenericMPSTensor, B <: MPSBondTensor} <: AbstractMPS
102102
return new{A, B}(AL, AR, C, AC)
103103
end
104104
end
105-
TensorKit.storagetype(imps::InfiniteMPS{A, B}) where {A, B} = storagetype(A)
106-
TensorKit.storagetype(::Type{InfiniteMPS{A, B}}) where {A, B} = storagetype(A)
107105

108106
#===========================================================================================
109107
Constructors

src/states/quasiparticle_state.jl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#=
22
Should not be constructed by the user - acts like a vector (used in eigsolve)
33
I think it makes sense to see these things as an actual state instead of return an array of B tensors (what we used to do)
4-
This will allow us to plot energy density (finite qp) and measure observeables.
4+
This will allow us to plot energy density (finite qp) and measure observables.
55
=#
66

77
struct LeftGaugedQP{S, T1, T2, E <: Number}
@@ -14,8 +14,6 @@ struct LeftGaugedQP{S, T1, T2, E <: Number}
1414

1515
momentum::E
1616
end
17-
TensorKit.storagetype(l::LeftGaugedQP{S, T1, T2, E}) where {S, T1, T2, E} = storagetype(S)
18-
TensorKit.storagetype(::Type{LeftGaugedQP{S, T1, T2, E}}) where {S, T1, T2, E} = storagetype(S)
1917

2018
struct RightGaugedQP{S, T1, T2, E <: Number}
2119
# !(left_gs === right_gs) => domain wall excitation
@@ -27,8 +25,6 @@ struct RightGaugedQP{S, T1, T2, E <: Number}
2725

2826
momentum::E
2927
end
30-
TensorKit.storagetype(l::RightGaugedQP{S, T1, T2, E}) where {S, T1, T2, E} = storagetype(S)
31-
TensorKit.storagetype(::Type{RightGaugedQP{S, T1, T2, E}}) where {S, T1, T2, E} = storagetype(S)
3228

3329
function leftgaugedqptype(::Type{S}, ::Type{E}) where {S, E <: Number}
3430
T1 = eltype(S)
@@ -220,6 +216,7 @@ GeometryStyle(::Type{<:QP{S, T1, T2}}) where {S, T1, T2} = GeometryStyle(S)
220216

221217
TensorKit.spacetype(::Union{QP{S}, Type{<:QP{S}}}) where {S} = spacetype(S)
222218
TensorKit.sectortype(::Union{QP{S}, Type{<:QP{S}}}) where {S} = sectortype(S)
219+
TensorKit.storagetype(qp::QP{S, T1, T2}) where {S, T1, T2} = storagetype(T2)
223220
TensorKit.storagetype(::Type{<:QP{S, T1, T2}}) where {S, T1, T2} = storagetype(T2)
224221

225222
physicalspace(state::QP, i::Int) = physicalspace(state.left_gs, i)

0 commit comments

Comments
 (0)