Skip to content

Commit 0b2426c

Browse files
committed
Formatting
1 parent dc57695 commit 0b2426c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/apply.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,13 +449,13 @@ function optimise_p_q(
449449
qs_ind = setdiff(inds(q_cur), collect(Iterators.flatten(inds.(vcat(envs, p_cur)))))
450450
ps_ind = setdiff(inds(p_cur), collect(Iterators.flatten(inds.(vcat(envs, q_cur)))))
451451

452-
function b(p::ITensor, q::ITensor, o::ITensor, envs::Vector{ITensor}, r::ITensor;)
452+
function b(p::ITensor, q::ITensor, o::ITensor, envs::Vector{ITensor}, r::ITensor)
453453
ts = vcat(ITensor[p, q, o, dag(prime(r))], envs)
454454
sequence = contraction_sequence(ts; alg="optimal")
455455
return noprime(ITensors.contract(ts; sequence))
456456
end
457457

458-
function M_p(envs::Vector{ITensor}, p_q_tensor::ITensor, s_ind, apply_tensor::ITensor;)
458+
function M_p(envs::Vector{ITensor}, p_q_tensor::ITensor, s_ind, apply_tensor::ITensor)
459459
ts = vcat(
460460
ITensor[
461461
p_q_tensor, replaceinds(prime(dag(p_q_tensor)), prime(s_ind), s_ind), apply_tensor

src/caches/beliefpropagationcache.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ function environment(bpc::BeliefPropagationCache, verts::Vector; kwargs...)
9494
return vcat(messages, central_tensors)
9595
end
9696

97-
function region_scalar(bp_cache::BeliefPropagationCache, pv::PartitionVertex;)
97+
function region_scalar(bp_cache::BeliefPropagationCache, pv::PartitionVertex)
9898
incoming_mts = incoming_messages(bp_cache, [pv])
9999
local_state = factors(bp_cache, pv)
100100
ts = vcat(incoming_mts, local_state)
101101
sequence = contraction_sequence(ts; alg="optimal")
102102
return contract(ts; sequence)[]
103103
end
104104

105-
function region_scalar(bp_cache::BeliefPropagationCache, pe::PartitionEdge;)
105+
function region_scalar(bp_cache::BeliefPropagationCache, pe::PartitionEdge)
106106
ts = vcat(message(bp_cache, pe), message(bp_cache, reverse(pe)))
107107
sequence = contraction_sequence(ts; alg="optimal")
108108
return contract(ts; sequence)[]

0 commit comments

Comments
 (0)