Skip to content

Commit b9d60cb

Browse files
committed
2 parents 49d9e85 + 30c6a1d commit b9d60cb

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ Tullio = "bc48ee85-29a4-5162-ae0b-a64e1601d4bc"
1818
EntanglementDetectionTullio = "Tullio"
1919

2020
[compat]
21-
FrankWolfe = "0.4.3"
22-
Ket = "0.5"
21+
FrankWolfe = "0.4.1 - 0.5"
22+
Ket = "0.5.1 - 0.6"
2323
Printf = "1.11.0"
2424
Random = "1.11.0"
25-
Roots = "2.2.6"
25+
Roots = "2.2"
2626
Tullio = "0.3.8"
2727

2828
[extras]

src/callback.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function build_callback(trajectory_arr, epsilon, max_active, shortcut, shortcut_
117117
return false
118118
end
119119

120-
if noise_mixture
120+
if noise_mixture
121121
if rp[] > 1 # stop if the noise is fully added
122122
# verbose > 0 && @info "noise is fully added"
123123
return false
@@ -152,10 +152,10 @@ function build_callback(trajectory_arr, epsilon, max_active, shortcut, shortcut_
152152
end
153153

154154
if state.primal < epsilon # stop if the primal is small enough (main stopping criterion)
155-
# verbose > 0 && @info "primal is small enough"
155+
# verbose > 0 && @info "primal is small enough"
156156
return false
157157
end
158-
158+
159159
return true # control when to stop
160160
end
161161
return callback

src/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function Workspace{T, N}(dims::NTuple{N, Int}) where {T <: Real, N}
2525
return Workspace{T, N}(pure_kets, pure_tensors, reduced_setdiffs, reduced_tensors, reduced_matrices, blas_workspaces)
2626
end
2727

28-
struct Fwdata
28+
struct Fwdata
2929
fw_iter::Vector{Int}
3030
fw_time::Vector{Float64}
3131
lmo_counts::Vector{Int}

test/instances.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
fw_algorithm = FrankWolfe.blended_pairwise_conditional_gradient,
66
epsilon = 1e-6,
77
lazy = true,
8-
lazy_tolerance = 2.0,
8+
sparsity_control = 2.0,
99
max_iteration = 10^5,
1010
verbose = false)
1111
@test res.ent
@@ -22,7 +22,7 @@ end
2222
fw_algorithm = FrankWolfe.blended_pairwise_conditional_gradient,
2323
epsilon = 1e-6,
2424
lazy = true,
25-
lazy_tolerance = 2.0,
25+
sparsity_control = 2.0,
2626
max_iteration = 10^4,
2727
verbose = 0)
2828
@test res.ent

test/unit.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ end
108108
FrankWolfe.blended_pairwise_conditional_gradient,
109109
FrankWolfe.frank_wolfe,
110110
FrankWolfe.away_frank_wolfe,
111-
FrankWolfe.lazified_conditional_gradient, # FrankWolfe.VectorCacheLMO
111+
# FrankWolfe.lazified_conditional_gradient, # FrankWolfe.VectorCacheLMO ruins the game
112112
]
113113
for T in [Float64, Double64]
114114
CT = Complex{T}

0 commit comments

Comments
 (0)