Skip to content

Add magic square game#7109

Merged
eliottrosenberg merged 7 commits intomainfrom
u/eliottrosenbrg/contextuality
Mar 3, 2025
Merged

Add magic square game#7109
eliottrosenberg merged 7 commits intomainfrom
u/eliottrosenbrg/contextuality

Conversation

@eliottrosenberg
Copy link
Copy Markdown
Collaborator

Add the Mermin-Peres magic square game described in https://en.wikipedia.org/wiki/Quantum_pseudo-telepathy#The_magic_square_game

@eliottrosenberg eliottrosenberg requested review from a team and vtomole as code owners March 2, 2025 02:12
@CirqBot CirqBot added the size: L 250< lines changed <1000 label Mar 2, 2025
@eliottrosenberg eliottrosenberg requested a review from viathor March 2, 2025 02:29
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 2, 2025

Codecov Report

Attention: Patch coverage is 99.15966% with 1 line in your changes missing coverage. Please review.

Project coverage is 98.15%. Comparing base (2ad4136) to head (d5c530a).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
examples/magic_square.py 99.07% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7109      +/-   ##
==========================================
- Coverage   98.15%   98.15%   -0.01%     
==========================================
  Files        1089     1091       +2     
  Lines       95251    95374     +123     
==========================================
+ Hits        93497    93614     +117     
- Misses       1754     1760       +6     

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

Comment thread examples/magic_square.py Outdated
Comment thread examples/magic_square.py
Comment thread examples/magic_square.py Outdated
Comment thread examples/magic_square.py Outdated
@eliottrosenberg eliottrosenberg added this pull request to the merge queue Mar 3, 2025
@NoureldinYosri NoureldinYosri removed this pull request from the merge queue due to a manual request Mar 3, 2025
@eliottrosenberg eliottrosenberg added this pull request to the merge queue Mar 3, 2025
Merged via the queue into main with commit 3b9eceb Mar 3, 2025
42 checks passed
@eliottrosenberg eliottrosenberg deleted the u/eliottrosenbrg/contextuality branch March 3, 2025 23:26
BichengYing pushed a commit to BichengYing/Cirq that referenced this pull request Jun 20, 2025
* Add magic square game

* fix test function name

* lint

* coverage

* nits from viathor

* nits from Nour

* add copyright notice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: L 250< lines changed <1000

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants