Repository navigation
Research: execute the A13 native climb with 209,920 fewer CNOTs - #3150
Merged
Mister-Meeseeks merged 1 commit intoOct 17, 2026
Merged
Conversation
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.
Summary
Implement the reached forward A13 source83 warp, target126 rank-one climb and half-ADD in both pinned PR3076 providers using reversible Boolean gates.
At 69 bits, the complete local boundary saves 209,920 CNOTs against the constructed physical-shift control, with the same 996,672 Toffolis. Both counts charge native permutation SWAPs, phase signs and the final half-ADD. The implementation uses no component scratch and returns its 68 clean carries.
The proof covers the quarter grid and P+5 signed bits for P=3..128, conditional on PR3086's exact physical entrance. The package retains the reproducible generator, exact source pins, proof, controls and evidence. Credit PR3086's native-format boundary, PR3094's scalar circuits, PR3080's shifted adder and the retained supplier lineage.
Evidence
After: direct native boundary: 1,916,736 CNOTs and 996,672 Toffolis.
uv run --python 3.12 --no-project python -B scripts/research_package.py --package research/rank7-reversible-native-climb. The README gives external-output commands and exact coverage.Merge Danger
Door: two-way
Blast Radius: package
This is a conditional local construction. The producer/residual adapters, clean-stock production, physical routing/access, later consumers and complete supplier bill remain open. Gate counts use unit-cost arbitrary-wire Boolean operations. No circuit optimum, new kappa or selected-frontier change is claimed. Hosted CI is separate from the recorded local checks.