Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-local games check pass #857

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Shivansh20128
Copy link
Contributor

@Shivansh20128 Shivansh20128 commented Oct 12, 2024

Description

Provide a brief description of the PR's purpose here. If your PR is supposed to fix an existing issue, use
a keyword to link your PR to the issue.
This PR is created to pass the check in the non-local games example. Since the optimal value for the chsh quantum probability is getting stuck in a suboptimal range, an approach to overcome this is running the check multiple times so as to maximize the chances to reach the optimal solution.
This has been discussed in detail in the discussionhere.
#Resolves #613

Changes

Notable changes that this PR has either accomplished or will accomplish. Feel free to add more lines to the itemized list
below.

  • The function np.around(chsh.quantum_value_lower_bound(), decimals=2) has been run multiple times (5).

Checklist

Before marking your PR ready for review, make sure you checked the following locally. If this is your first PR, you might be notified of some workflow failures after a maintainer has approved the workflow jobs to be run on your PR.

Additional information is available in the documentation.

  • Use ruff for errors related to code style and formatting.
  • Verify all previous and newly added unit tests pass in pytest.
  • Check the documentation build does not lead to any failures. Sphinx build can be checked locally for any failures related to your PR
  • Use linkcheck to check for broken links in the documentation
  • Use doctest to verify the examples in the function docstrings work as expected.

Copy link

codecov bot commented Oct 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.8%. Comparing base (b563fe7) to head (8af28ce).

Additional details and impacted files
@@          Coverage Diff           @@
##           master    #857   +/-   ##
======================================
  Coverage    97.8%   97.8%           
======================================
  Files         167     167           
  Lines        3263    3263           
  Branches      715     715           
======================================
  Hits         3193    3193           
  Misses         46      46           
  Partials       24      24           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Shivansh20128 Shivansh20128 marked this pull request as ready for review October 12, 2024 11:12
@Shivansh20128
Copy link
Contributor Author

I have run all the checks 3 times after my commit without any failure. So I hope this problem has been resolved now. Although there is still a chance of failure, it has a very low probability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failure in non-local games tutorial
1 participant