Skip to content

Commit

Permalink
revert to findmin and findmax
Browse files Browse the repository at this point in the history
  • Loading branch information
ba2tro committed Feb 6, 2024
1 parent cfe1f31 commit 7547205
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/firstgenrepeater_v2/2_swapper_example.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ for (;src, dst) in edges(network)
@process eprot()
end
for node in vertices(network)
sprot = SwapperProt(sim, network, node; nodeL = <(node), nodeH = >(node), chooseL = argmin, chooseH = argmax)
sprot = SwapperProt(sim, network, node; nodeL = <(node), nodeH = >(node), chooseL = findmin, chooseH = findmax)
@process sprot()
end

Expand Down
6 changes: 3 additions & 3 deletions test/test_entanglement_tracker.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ for i in 1:10
@test [islocked(ref) for i in vertices(net) for ref in net[i]] |> any == false


swapper2 = SwapperProt(sim, net, 2; nodeL = <(2), nodeH = >(2), chooseL = argmin, chooseH = argmax, rounds = 1)
swapper3 = SwapperProt(sim, net, 3; nodeL = <(3), nodeH = >(3), chooseL = argmin, chooseH = argmax, rounds = 1)
swapper2 = SwapperProt(sim, net, 2; nodeL = <(2), nodeH = >(2), chooseL = findmin, chooseH = findmax, rounds = 1)
swapper3 = SwapperProt(sim, net, 3; nodeL = <(3), nodeH = >(3), chooseL = findmin, chooseH = findmax, rounds = 1)
@process swapper2()
@process swapper3()
run(sim, 80)
Expand Down Expand Up @@ -102,7 +102,7 @@ for i in 1:30, n in 2:30
@process eprot()
end
for j in 2:n-1
swapper = SwapperProt(sim, net, j; nodeL = <(j), nodeH = >(j), chooseL = argmin, chooseH = argmax, rounds = 1)
swapper = SwapperProt(sim, net, j; nodeL = <(j), nodeH = >(j), chooseL = findmin, chooseH = findmax, rounds = 1)
@process swapper()
end
run(sim, 200)
Expand Down

0 comments on commit 7547205

Please sign in to comment.