diff --git a/examples/firstgenrepeater_v2/2_swapper_example.jl b/examples/firstgenrepeater_v2/2_swapper_example.jl index 0301c31b..4f8fa34e 100644 --- a/examples/firstgenrepeater_v2/2_swapper_example.jl +++ b/examples/firstgenrepeater_v2/2_swapper_example.jl @@ -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 diff --git a/test/test_entanglement_tracker.jl b/test/test_entanglement_tracker.jl index b75ac758..7462d4f0 100644 --- a/test/test_entanglement_tracker.jl +++ b/test/test_entanglement_tracker.jl @@ -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) @@ -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)