Skip to content

Commit

Permalink
Merge pull request #369 from Cytnx-dev/fix_ncon
Browse files Browse the repository at this point in the history
fix ncon bug
  • Loading branch information
jeffry1829 authored Dec 1, 2023
2 parents 8099f2c + 5b260d2 commit 599717c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ncon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ namespace cytnx {
vector<bool> vis(tensor_list_in.size(), 0);
for (cytnx_uint64 i = 0; i < cont_order.size(); i++) {
cytnx_int64 ta = posbond2tensor[cont_order[i]][0], tb = posbond2tensor[cont_order[i]][1];
st.push("*");
if (!vis[ta] or !vis[tb]) st.push("*");
if (!vis[ta]) st.push("t" + to_string(ta));
if (!vis[tb]) st.push("t" + to_string(tb));
vis[ta] = vis[tb] = 1;
Expand Down

0 comments on commit 599717c

Please sign in to comment.