Repository navigation
Conversation
Signed-off-by: Scott Thornton <wsttiger@gmail.com>
Signed-off-by: Scott Thornton <wsttiger@gmail.com>
Signed-off-by: Scott Thornton <wsttiger@gmail.com>
Keep every validation active and always report failures. Preserve student-facing results, resource tables, and approximation errors in default output. Document --verbose in the scripts and example pages. Signed-off-by: Scott Thornton <wsttiger@gmail.com>
wsttiger
marked this pull request as ready for review
November 12, 2026 04:11
Collaborator
|
I would add another example with high number of qubits (e.g. up to ~100 qubits) where one can appreciate the difference between the mappings more. |
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 host-side lattice tutorial comparing JW, BK, standard superfast, and binary-tree generalized superfast mappings of one four-mode interacting spinless ring. An independent occupation-bit Hamiltonian verifies the tensor coefficients and fermionic signs. Each superfast parity sector is projected onto the public loop stabilizers’ joint +1 eigenspace before comparing all eight physical eigenvalues, including multiplicities. The example also checks stabilizer algebra and reports Pauli weights, code dimensions, and qubit counts without assuming an asymptotic winner.
Validation on CUDA-Q 0.16.0.post1, Python 3.12.3:
python3 -m pytest tests/python/test_examples.py -k fermion_mappings_lattice -q: 1 passed in 1.90 s.-W --keep-going: passed independently.Independent plan 07 PR against main; uses public mapping APIs with no library change or chemistry/phase-generation dependency.
Development is hosted in wsttiger/cudaq-algorithms. This replaces #86 after relocating its branch from upstream to the fork. Existing review discussion remains on that linked PR. The latest commit history is preserved unchanged; this relocation does not rerun scientific validation.