Skip to content

Commit 7290e86

Browse files
committed
Function name improvement
1 parent 4df2f08 commit 7290e86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TensorNetworkGenerators/ising_network.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using Graphs: degree, dst, edges, src
33
using LinearAlgebra: Diagonal, eigen
44
using NamedDimsArrays: apply, dename, inds, operator, randname
55

6-
function sqrt_ising_bonds(β; h1 = zero(typeof(β)), h2 = zero(typeof(β)))
6+
function sqrt_ising_bond(β; h1 = zero(typeof(β)), h2 = zero(typeof(β)))
77
f11 = exp* (1 + h1 + h2))
88
f12 = exp* (-1 + h1 - h2))
99
f21 = exp* (-1 - h1 + h2))
@@ -38,7 +38,7 @@ function ising_network(
3838
v2 = dst(e)
3939
deg1 = degree(tn, v1)
4040
deg2 = degree(tn, v2)
41-
m = sqrt_ising_bonds(β; h1 = h / deg1, h2 = h / deg2)
41+
m = sqrt_ising_bond(β; h1 = h / deg1, h2 = h / deg2)
4242
t = operator(m, ((e),), (f(e),))
4343
tn[v1] = apply(t, tn[v1])
4444
tn[v2] = apply(t, tn[v2])

0 commit comments

Comments
 (0)