Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ZIB-IOL/BellPolytopes.jl into main
Browse files Browse the repository at this point in the history
  • Loading branch information
matbesancon committed Feb 8, 2023
2 parents 226a695 + a877250 commit 15c68a1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://zib-iol.github.io/BellPolytopes.jl/stable/)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://zib-iol.github.io/BellPolytopes.jl/dev/)
[![Build Status](https://github.com/zib-iol/BellPolytopes.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/zib-iol/BellPolytopes.jl/actions/workflows/CI.yml?query=branch%3Amain)
<!-- [![Coverage](https://codecov.io/gh/zib-iol/BellPolytopes.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/zib-iol/BellPolytopes.jl) -->

This package addresses the membership problem for local polytopes: it constructs Bell inequalities and local models in multipartite Bell scenarios with binary outcomes.


## Installation

The most recent release is available via the julia package manager, e.g., with
Expand Down
7 changes: 5 additions & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ makedocs(;
edit_link="main",
assets=String[],
),
pages=["Home" => "index.md"],
pages=[
"Home" => "index.md",
"API reference" => "api.md",
],
)

deploydocs(; repo="github.com/ZIB-IOL/BellPolytopes.jl", devbranch="main")
deploydocs(; repo="github.com/ZIB-IOL/BellPolytopes.jl", devbranch="main", push_preview=true)
5 changes: 5 additions & 0 deletions docs/src/api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# API reference

```@autodocs
Modules = [BellPolytopes]
```
4 changes: 2 additions & 2 deletions src/BellPolytopes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ Arguments:
Returns:
- `x`: a correlation tensor of order `N`, the output of the Frank-Wolfe algorithm,
- `ds`: a deterministic strategy, the atom returned by the last LMO,
- `primal`: ½|x-v0*p|²
- `dual_gap`: <x-v0*p,x-ds>
- `primal`: `½|x-v₀*p|²`
- `dual_gap`: `⟨x-v₀*p, x-ds⟩`
- `traj_data`: trajectory of the algorithm,
- `active_set`: all deterministic strategies used for the decomposition of the last iterate `x`, contains fields `weights`, `atoms`, and `x`,
- `M`: a Bell inequality, meaningful only if the dual gap is small enough
Expand Down
1 change: 0 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ using BellPolytopes
@test abs(bell_frank_wolfe(correlation_matrix(HQVNB17_vec(3)); use_array=true)[3] - 0.613691) <
1e-5
@test abs(bell_frank_wolfe(correlation_matrix(HQVNB17_vec(5)))[3] - 5.69) < 1e-1
@test abs(bell_frank_wolfe(correlation_matrix(HQVNB17_vec(7)))[3] - 23.02) < 1e-1
end

@testset "Testing Bell-Frank-Wolfe with d=2, N=2, and cor/marg matrices " begin
Expand Down

0 comments on commit 15c68a1

Please sign in to comment.