-
Notifications
You must be signed in to change notification settings - Fork 158
Open
Description
URL to the relevant course
Select all that apply
- new content request
- typo
- code bug
- out-of-date content
- broken link
- other
Describe the fix or the content request.
I encountered an issue in the CHSH game code example where the input bits
x, y = random.randint(0, 2), random.randint(0, 2)But random.randint(0, 2) ranges from 0 to 2, which doesn't make sense for a bit.
in fact, if you run the whole code, you get:
Fraction of games won: 0.617
Which is wrong for my understanding. I believe the correct code sould be:
x, y = random.randint(0, 1), random.randint(0, 1)With this fix, the code correctly outputs a win fraction of ~0.85.
For new content requests - if the request is accepted, do you want to write the content?
I will write (or already have written) a draft of the proposed content
Metadata
Metadata
Assignees
Type
Projects
Status
No status