File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ function transfer_spectrum(
9494 init = randomize! (
9595 similar (
9696 above. AL[1 ], left_virtualspace (below, 1 ),
97- ℂ[ typeof (sector)] (sector => 1 )' * left_virtualspace (above, 1 )
97+ spacetype (above) (sector => 1 )' * left_virtualspace (above, 1 )
9898 )
9999 )
100100
@@ -151,7 +151,7 @@ function marek_gap(above::InfiniteMPS; tol_angle = 0.1, kwargs...)
151151 return marek_gap (spectrum; tol_angle)
152152end
153153
154- function marek_gap (spectrum; tol_angle = 0.1 )
154+ function marek_gap (spectrum:: AbstractVector{T} ; tol_angle = 0.1 ) where {T <: Number }
155155 # Remove 1s from the spectrum
156156 inds = findall (abs .(spectrum) .< 1 - 1.0e-12 )
157157 length (spectrum) - length (inds) < 2 || @warn " Non-injective mps?"
@@ -187,7 +187,7 @@ function correlation_length(above::InfiniteMPS; kwargs...)
187187 return 1 / ϵ
188188end
189189
190- function correlation_length (spectrum; kwargs... )
190+ function correlation_length (spectrum:: AbstractVector{T} ; kwargs... ) where {T <: Number }
191191 ϵ, = marek_gap (spectrum; kwargs... )
192192 return 1 / ϵ
193193end
You can’t perform that action at this time.
0 commit comments