Skip to content

Commit 3b9eceb

Browse files
Add magic square game (#7109)
* Add magic square game * fix test function name * lint * coverage * nits from viathor * nits from Nour * add copyright notice
1 parent 6ff3d66 commit 3b9eceb

File tree

3 files changed

+524
-0
lines changed

3 files changed

+524
-0
lines changed

examples/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ Here is a summary of the examples found in this directory:
3636
by Harrow, Hassidim, and Lloyd.
3737
* [`hidden_shift_algorithm.py`](hidden_shift_algorithm.py):
3838
demonstration of a Hidden Shift algorithm.
39+
* [`magic_square.py`](magic_square.py):
40+
demonstration of the Mermin-Peres magic square game.
3941
* [`noisy_simulation_example.py`](noisy_simulation_example.py): example
4042
of a noisy circuit using the `cirq.ConstantQubitNoiseModel` class.
4143
* [`phase_estimator.py`](phase_estimator.py): example of a phase

0 commit comments

Comments
 (0)