11#=
22Should not be constructed by the user - acts like a vector (used in eigsolve)
33I 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
77struct LeftGaugedQP{S, T1, T2, E <: Number }
@@ -14,8 +14,6 @@ struct LeftGaugedQP{S, T1, T2, E <: Number}
1414
1515 momentum:: E
1616end
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
2018struct 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
2927end
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
3329function 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
221217TensorKit. spacetype (:: Union{QP{S}, Type{<:QP{S}}} ) where {S} = spacetype (S)
222218TensorKit. 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)
223220TensorKit. storagetype (:: Type{<:QP{S, T1, T2}} ) where {S, T1, T2} = storagetype (T2)
224221
225222physicalspace (state:: QP , i:: Int ) = physicalspace (state. left_gs, i)
0 commit comments