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

Calculate the exact distance of binary codes with brute force in cython #211

Merged
merged 67 commits into from
Jan 30, 2025

Conversation

perlinm
Copy link
Collaborator

@perlinm perlinm commented Jan 30, 2025

Two main tricks:

  • represent bitstrings by integers
  • iterate over all combinations (subsets) of N code words, logical operators, or stabilizers using the Gray code for an N-bit string.

Note: this is the first PR to introduce cython into this repo.

@perlinm perlinm changed the title Fast (cyphon-based) calculation of code distance for binary codes Calculate the exact distance of binary codes with brute force in cython Jan 30, 2025
@perlinm perlinm merged commit 746561e into main Jan 30, 2025
4 checks passed
@perlinm perlinm deleted the fast-distance branch January 30, 2025 18:47
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.

1 participant