Skip to content

Commit

Permalink
uncommented code from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos de Gois committed Jul 25, 2024
1 parent 5771b28 commit 3c2177c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/entanglement.jl
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,9 @@ function entanglement_dps(
JuMP.@constraint(model, LA.tr(reduced) == sn)
end
if ppt

ssys = Int.(1:ceil(n / 2) + 1)
JuMP.@constraint(model, LA.Hermitian(partial_transpose(lifted, ssys, dims)) in JuMP.HermitianPSDCone())
# for i in 2:n+1
# JuMP.@constraint(model, LA.Hermitian(partial_transpose(lifted, 2:i, dims)) in JuMP.HermitianPSDCone())
# end
for i in 2:n+1
JuMP.@constraint(model, LA.Hermitian(partial_transpose(lifted, 2:i, dims)) in JuMP.HermitianPSDCone())
end
end

JuMP.set_optimizer(model, solver)
Expand Down

0 comments on commit 3c2177c

Please sign in to comment.