You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# We define an anti-ferromagnetic spin glass problem as
37
+
problem =HyperSpinGlass(num_vertices, hyperedges; weights);
38
+
39
+
# ### Theory (can skip)
40
+
# Let ``H = (V, E)`` be a hypergraph. The tensor network for the partition function of the energy model for ``H`` can be defined as the following tiple of (alphabet of labels, input tensors, output labels).
41
+
# ```math
42
+
# \begin{cases}
43
+
# \Lambda &= \{s_v \mid v \in V\}\\
44
+
# \mathcal{T} &= \{B^{(c)}_{s_{N(c, 1),N(c, 2),\ldots,N(c, d(c))}} \mid c \in E\} \cup \{W^{(v)}_{s_v} \mid v \in V\}\\
45
+
# \sigma_o &= \varepsilon
46
+
# \end{cases}
47
+
# ```
48
+
# where ``s_v \in \{0, 1\}`` is the boolean degreen associated to vertex ``v``,
49
+
# ``N(c, k)`` is the ``k``th vertex of hyperedge ``c``, and ``d(c)`` is the degree of ``c``.
50
+
# The edge tensor ``B^{(c)}`` is defined as
51
+
# ```math
52
+
# B^{(c)} = \begin{cases}
53
+
# x^{w_c} & (\sum_{v\in c} s_v) \;is\; even, \\
54
+
# x^{-w_c} & otherwise.
55
+
# \end{cases}
56
+
# ```
57
+
# and the vertex tensor ``W^{(v)}`` (used to carry labels) is defined as
0 commit comments