Skip to content

Commit

Permalink
Int64 -> Int
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Oct 4, 2023
1 parent 7c7531f commit c1e2d41
Show file tree
Hide file tree
Showing 3 changed files with 265 additions and 265 deletions.
6 changes: 3 additions & 3 deletions src/algorithms/expval.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,19 +132,19 @@ end

#the mpo hamiltonian over n sites has energy f+n*edens, which is what we calculate here. f can then be found as this - n*edens
function expectation_value(
st::InfiniteMPS, prevca::MPOHamInfEnv, range::Union{UnitRange{Int64},Int64}
st::InfiniteMPS, prevca::MPOHamInfEnv, range::Union{UnitRange{Int},Int}
)
return expectation_value(st, prevca.opp, range, prevca)
end
function expectation_value(
st::InfiniteMPS, ham::MPOHamiltonian, range::Int64, prevca=environments(st, ham)
st::InfiniteMPS, ham::MPOHamiltonian, range::Int, prevca=environments(st, ham)
)
return expectation_value(st, ham, 1:range, prevca)
end
function expectation_value(
st::InfiniteMPS,
ham::MPOHamiltonian,
range::UnitRange{Int64},
range::UnitRange{Int},
prevca=environments(st, ham),
)
start = map(leftenv(prevca, range.start, st)) do y
Expand Down
6 changes: 3 additions & 3 deletions src/operators/sparsempo/sparseslice.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ struct SparseMPOSlice{S,T,E} <: AbstractArray{T,2}
Union{T,E},
2,
PeriodicArray{Union{T,E},3},
Tuple{Int64,Base.Slice{Base.OneTo{Int64}},Base.Slice{Base.OneTo{Int64}}},
Tuple{Int,Base.Slice{Base.OneTo{Int}},Base.Slice{Base.OneTo{Int}}},
false,
}
domspaces::SubArray{
S,1,PeriodicArray{S,2},Tuple{Int64,Base.Slice{Base.OneTo{Int64}}},false
S,1,PeriodicArray{S,2},Tuple{Int,Base.Slice{Base.OneTo{Int}}},false
}
imspaces::SubArray{
S,1,PeriodicArray{S,2},Tuple{Int64,Base.Slice{Base.OneTo{Int64}}},false
S,1,PeriodicArray{S,2},Tuple{Int,Base.Slice{Base.OneTo{Int}}},false
}
pspace::S
end
Expand Down
Loading

0 comments on commit c1e2d41

Please sign in to comment.