Skip to content

Commit

Permalink
Fix initial pivot
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlevy committed Dec 18, 2024
1 parent 051bb48 commit f3a9f86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/ITensorNumericalAnalysisTCIExt/tci_util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ function ITensorTCI.interpolate(
initial_pivot = random_initial_pivot(s_renamed)
else
# manually rename
initial_pivot = [forward_dict[v] => initial_pivot[v] for v in vertices(s)]
# assuming from calculate_ind_values
initial_pivot = [forward_dict[v] => initial_pivot[only(s[v])] + 1 for v in vertices(s)]
end

tn = ITensorTCI.interpolate(
Expand Down

0 comments on commit f3a9f86

Please sign in to comment.