Skip to content

Commit add5f3b

Browse files
authored
Update HyperSpinGlass.jl
1 parent babc5da commit add5f3b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/HyperSpinGlass.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ weights = [-1, 1, -1, 1, -1, 1, -1, 1];
2626
# The energy function is
2727
# ```math
2828
# \begin{align*}
29-
# E = &-s_1s_3s_4s_6s_7 + s_4s_7s_8s_{12} - s_2s_5s_9s_{11}s_{13} +\\
30-
# &s_1s_2s_{14}s_{15} - s_3s_6s_{10}s_{12}s_{14} + s_8s_{14}s_{15} +\\
31-
# &s_1s_2s_6s_{11} - s_1s_2s_4s_6s_8s_{12}
29+
# E = &-S_1S_3S_4S_6S_7 + S_4S_7S_8S_{12} - S_2S_5S_9S_{11}S_{13} +\\
30+
# &S_1S_2S_{14}S_{15} - S_3S_6S_{10}S_{12}S_{14} + S_8S_{14}S_{15} +\\
31+
# &S_1S_2S_6S_{11} - S_1s_2S_4S_6S_8S_{12}
3232
# \end{align*}
3333
# ```
3434

@@ -92,4 +92,4 @@ ground_state = solve(problem, SingleConfigMin())[].c.data
9292

9393
Emin_verify = hyperspinglass_energy(hyperedges, ground_state; weights)
9494

95-
# You should see a consistent result as above `Emin`.
95+
# You should see a consistent result as above `Emin`.

0 commit comments

Comments
 (0)