Skip to content

Commit 3c1f658

Browse files
committed
Adds modulo for basis.
1 parent 332f80c commit 3c1f658

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/pqnstack/app/api/routes/chsh.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ async def _chsh( # Complexity is high due to the nature of the CHSH experiment.
4040

4141
expectation_values = []
4242
expectation_errors = []
43+
basis = [0, abs(basis[0] - basis[1]) % 90]
4344
for angle in basis: # Going through my basis angles
4445
for i in range(2): # Going through follower basis angles
4546
counts = []

0 commit comments

Comments
 (0)