Skip to content

Example: writing an adder using @bloqify syntax#1864

Merged
mpharrigan merged 7 commits into
quantumlib:mainfrom
mpharrigan:2026-05/bloqify-add
May 22, 2026
Merged

Example: writing an adder using @bloqify syntax#1864
mpharrigan merged 7 commits into
quantumlib:mainfrom
mpharrigan:2026-05/bloqify-add

Conversation

@mpharrigan
Copy link
Copy Markdown
Collaborator

Example that exercises some of the features of #1741

@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a quantum-quantum adder implementation using the @bloqify syntax, including components for majority computation (maj), its inverse (un_maj), and a ripple-carry adder (add_bits). The changes also include a Jupyter notebook demonstration and unit tests. A review comment identified a bug in the add_bits function where the logic fails for the single-bit edge case (n=1), resulting in incorrect outputs.

Comment thread qualtran/bloqify_syntax/bloqify_examples/add_test.py Outdated
@mpharrigan mpharrigan merged commit fbb1793 into quantumlib:main May 22, 2026
13 checks passed
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