Skip to content

Conversation

tanujkhattar
Copy link
Collaborator

Part of a larger effort to add bloqs that perform arithmetic over polynomials with coefficients in a galois field.

Adds bloqs for

  • GFPolySplit: Split a register of type QGFPoly into n + 1 registers of type QGF where n is the degree of the polynomial.
  • GFPolyJoin: Join n + 1 registers of type QGF, where n is the degree of the polynomial, into a register of type QGFPoly.
  • GF2PolyAddK: Bloq to add a constant polynomial into a quantum register of type QGFPoly.

@tanujkhattar tanujkhattar changed the title [QGFPoly] Add GF2PolyAddK, GFPolySplit and GFPolyJoin bloqs [QGFPoly] Add GF2PolyAddK, GFPolySplit and GFPolyJoin bloqs Apr 8, 2025
@tanujkhattar
Copy link
Collaborator Author

@NoureldinYosri I've added tests for gate counts, as you had pointed out in the review for the bigger PR. Can you LGTM this first so I can merge this first, rebase the second PR, and then merge that as well ?

@tanujkhattar tanujkhattar enabled auto-merge (squash) April 8, 2025 23:34
@tanujkhattar tanujkhattar merged commit f7262f8 into quantumlib:main Apr 8, 2025
8 checks passed
wjhuggins pushed a commit to wjhuggins/Qualtran that referenced this pull request May 31, 2025
…antumlib#1622)

* Add GF2PolyAddK, GFPolySplit and GFPolyJoin bloqs

* Fix tests, mypy and pylint

* Mark symbolic only when degree is symbolic

* Add tests for gate counts
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.

2 participants