GithubHelp home page GithubHelp logo

apozas / fullnn Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 231 KB

Code repository for Phys. Rev. Lett. 128, 010403 (2022) [arXiv:2105.09325]

License: GNU General Public License v3.0

Jupyter Notebook 100.00%

fullnn's Introduction

DOI

Computational appendix of Full network nonlocality

Alejandro Pozas-Kerstjens, Nicolas Gisin and Armin Tavakoli

This is a repository containing the computational appendix of the article "Full network nonlocality. Alejandro Pozas-Kerstjens, Nicolas Gisin, and Armin Tavakoli. Phys. Rev. Lett. 128, 010403 (2022) [arXiv:2105.09325]." It provides a detailed explanation of how to write the linear programming problems associated to hybrid classical-nonsignaling inflations, and the necessary codes for obtaining the full network Bell inequalities depicted in the manuscript.

All code is written in Python.

Libraries required:

  • mosek for solving the linear programming problems
  • numpy for numerical manipulations
  • picos <= 2.2 for setting up the linear programming problems
  • qutip for quantum mechanical operations
  • sympy for symbolic manipulations

If you would like to cite this work, please use the following format:

A. Pozas-Kerstjens, N. Gisin, and A. Tavakoli, Full network nonlocality, Phys. Rev. Lett. 128, 010403 (2022)

@article{fullnn,
  title = {Full Network Nonlocality},
  author = {Pozas-Kerstjens, Alejandro and Gisin, Nicolas and Tavakoli, Armin},
  journal = {Phys. Rev. Lett.},
  volume = {128},
  issue = {1},
  pages = {010403},
  numpages = {6},
  year = {2022},
  month = {Jan},
  publisher = {American Physical Society},
  doi = {10.1103/PhysRevLett.128.010403},
  url = {https://link.aps.org/doi/10.1103/PhysRevLett.128.010403}
}

fullnn's People

Contributors

apozas avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

fullnn's Issues

About: 'before define the value of a variable, try to change the shape of the variable'

Brief description of bug

Self-Diagnosis

  • I have reviewed the documentation.
  • I have reviewed the Wiki.
  • I have tried to use the latest version of Picos, Numpy and other required interface.
  • I have searched the issues for an answer to my question.
  • I have searched the web for an answer to my question.

Environment(for bug reports)

  • Operating System:MacOs(12.0.1)
  • IDE version:VS code 1.65.1 (Universal)
  • Python version:Python 3.9.7

My configuration/Related code

import numpy as np
import picos as pic

probabilities = pic.RealVariable('pinf',
                                   shape=3456,
                                   lower=0)
pinf = np.reshape(probabilities, (2,4,4,2,2,3,3,3))

Steps to Reproduce the Issue

  1. The issue arise in Deriving (again) Equation 6, function:set_problem_C_NS() and a similar section that follows.

  2. By picos.RealVariable() introduce a variable (probabilities) which value is None.

  3. With numpy.reshape() on the variable, and report a Bug: picos.valuable.NotValued: Mutable pinf is not valued.

Current Result

  1. picos.valuable.NotValued: Mutable pinf is not valued.
  2. And you cannot reshape a variable which value is None.

Expected Result

Please check if you forgot to define the value of the probabilities, or if I got it wrong, please let me know.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.