Skip to content

Commit

Permalink
exception in states_int
Browse files Browse the repository at this point in the history
  • Loading branch information
annamariadziubyna committed Sep 25, 2023
1 parent 12877c3 commit e46d1bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clustered_hamiltonian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ function truncate_clustered_hamiltonian(cl_h::LabelledGraph{S, T}, states::Dict)
cl = get_prop(cl_h, v, :cluster)
sp = get_prop(cl_h, v, :spectrum)
if sp.states == Vector{Int64}[]
sp = Spectrum(sp.energies[states[v]], sp.states, [])
sp = Spectrum(sp.energies[states[v]], sp.states, [1,])
else
sp = Spectrum(sp.energies[states[v]], sp.states[states[v]])
end
Expand Down

0 comments on commit e46d1bc

Please sign in to comment.