Skip to content

Commit b459e95

Browse files
authored
Fix a few typos in examples (#56)
1 parent d869cac commit b459e95

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/HyperSpinGlass.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ weights = [-1, 1, -1, 1, -1, 1, -1, 1];
3737
problem = HyperSpinGlass(num_vertices, hyperedges; weights);
3838

3939
# ### 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).
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 triple of (alphabet of labels, input tensors, output labels).
4141
# ```math
4242
# \begin{cases}
4343
# \Lambda &= \{s_v \mid v \in V\}\\
@@ -66,7 +66,7 @@ Emin = solve(problem, SizeMin())[]
6666
# While the state correspond to the highest energy has the ferromagnetic order.
6767
Emax = solve(problem, SizeMax())[]
6868

69-
# In this example, the spin configurations can be choosen to make all hyperedges having even or odd spin parity.
69+
# In this example, the spin configurations can be chosen to make all hyperedges having even or odd spin parity.
7070

7171
# ### Counting properties
7272
# ##### partition function and graph polynomial

examples/SpinGlass.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ Emin_verify = spinglass_energy(graph, ground_state)
6767
show_graph(graph; locs=locations, vertex_colors=[
6868
iszero(ground_state[i]) ? "white" : "red" for i=1:nv(graph)], format=:svg)
6969

70-
# where a red vertice and a white vertice correspond to a spin having value 1 and 0 respectively.
70+
# where a red vertex and a white vertex correspond to a spin having value 1 and 0 respectively.

0 commit comments

Comments
 (0)