Repository navigation
Conversation
Signed-off-by: Scott Thornton <wsttiger@gmail.com>
The primitives guide described the kernel factories by contrast with QROM.kernel and the pinned QROM variant as a property of "the current LCU implementation". Say what they are: kernel()/adjoint_kernel() are zero-argument methods whose kernels take (index, garbage), and LCUBlockEncoding pins the "select" variant so SELECT reuses the clean ladder. Signed-off-by: Scott Thornton <wsttiger@gmail.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a self-verifying alias-sampling tutorial that reconstructs the complete prepared state and exact rational index probabilities from public tables, demonstrates entangled garbage, and verifies complete preparation cleanup. It then composes
0.6 X_0 - 0.4 CZ_01with a work-assisted SELECT body and checks the represented block, clean SELECT work, and shared Walk/QSVT consumers against independent NumPy models. Ideal-versus-discretized error is reported separately from circuit error.Validation on CUDA-Q 0.16.0, Python 3.12.3, qpp-cpu:
python3 -m pytest tests/python/test_examples.py -k alias_sampling_lcu -q: 1 passed.python3 -m sphinx -W --keep-going -b html docs/sphinx docs/sphinx/_build/html: passed.Independent plan 04 PR against main; all documentation/navigation is included. No PauliLCU-demo changes, other proposed tutorials, or new dependencies are required.