Skip to content

Commit

Permalink
[tet.py] Update the singlet and triplet in Parity_Hubbard.
Browse files Browse the repository at this point in the history
The results of singlet and triplet does not change. But the previous
code follow the different site-index scheme than CSCS operators. So
update it to keep the consistency of the code.
  • Loading branch information
hzhangxyz committed Oct 10, 2023
1 parent c2d947c commit 600b8b7
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tetragono/tetragono/common_tensor/Parity_Hubbard.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@
rename_io(CP2, [0, 3]),
rename_io(I, [1]),
rename_io(I, [2]),
) - kronecker_product(
) + kronecker_product(
rename_io(CP2, [1, 2]),
rename_io(I, [0]),
rename_io(I, [3]),
) + kronecker_product(
rename_io(CM2, [3, 0]),
rename_io(I, [1]),
rename_io(I, [2]),
) - kronecker_product(
) + kronecker_product(
rename_io(CM2, [2, 1]),
rename_io(I, [0]),
rename_io(I, [3]),
Expand All @@ -58,15 +58,15 @@
rename_io(CP2, [0, 3]),
rename_io(I, [1]),
rename_io(I, [2]),
) + kronecker_product(
) - kronecker_product(
rename_io(CP2, [1, 2]),
rename_io(I, [0]),
rename_io(I, [3]),
) + kronecker_product(
rename_io(CM2, [3, 0]),
rename_io(I, [1]),
rename_io(I, [2]),
) + kronecker_product(
) - kronecker_product(
rename_io(CM2, [2, 1]),
rename_io(I, [0]),
rename_io(I, [3]),
Expand All @@ -79,16 +79,16 @@
"O1": ["O1", "O3"],
}, put_sign_in_H, {"O0", "O1"})
singlet = singlet.merge_edge({
"I0": ["I0", "I1"],
"O0": ["O0", "O1"],
"I1": ["I2", "I3"],
"O1": ["O2", "O3"],
"I0": ["I0", "I2"],
"O0": ["O0", "O2"],
"I1": ["I1", "I3"],
"O1": ["O1", "O3"],
}, put_sign_in_H, {"O0", "O1"})
triplet = triplet.merge_edge({
"I0": ["I0", "I1"],
"O0": ["O0", "O1"],
"I1": ["I2", "I3"],
"O1": ["O2", "O3"],
"I0": ["I0", "I2"],
"O0": ["O0", "O2"],
"I1": ["I1", "I3"],
"O1": ["O1", "O3"],
}, put_sign_in_H, {"O0", "O1"})

NN = kronecker_product(rename_io(N, [0]), rename_io(N, [1]))
Expand Down

0 comments on commit 600b8b7

Please sign in to comment.