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

Add QROAMClean and QROAMCleanAdjoint bloqs for data loading #1291

Merged
merged 5 commits into from
Aug 15, 2024

Conversation

tanujkhattar
Copy link
Collaborator

@tanujkhattar tanujkhattar commented Aug 15, 2024

Addresses #368

The only variation left after this is a QROAMDirty bloq, which allocates k-1 dirty registers and assumes target is in 0 state initially. Since the constant factors of this construction are very similar to SelectSwapQROM (leading order terms are identical), it's not a priority to add this version right now.

More work needs to be done to add (a) Docstrings, (b) Replace uses of QROAM and QROAMTwoRegs in chemistry using the newly added Bloqs and eventually add a decomposition for QROAMCleanAdjoint that uses measurement based un-computation; but everything else is setup correctly.

Here are some pictures:

image image

Copy link
Collaborator

@fdmalone fdmalone left a comment

Choose a reason for hiding this comment

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

Awesome. Looking good just some questions / nits.

@tanujkhattar tanujkhattar enabled auto-merge (squash) August 15, 2024 19:30
@tanujkhattar tanujkhattar merged commit dacaf45 into quantumlib:main Aug 15, 2024
8 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.

2 participants