Skip to content

Reuse low Clifford products across high sectors (no new κ) - #8106

Open
petalas wants to merge 1 commit into
CrocSwap:mainfrom
petalas:research/w1-1201a-grouped-clifford-sectors
Open

petalas wants to merge 1 commit into
CrocSwap:mainfrom
petalas:research/w1-1201a-grouped-clifford-sectors

Conversation

@petalas

@petalas petalas commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Result

Scoped construction for the repeated-chart question in Ali Romman's #7851. When each operand has at most two distinct low charts and each high selector is an affine-quadratic Boolean indicator, compute each low chart pair once. Reuse its carried product across all high addresses. The high contraction gives at most four signed power-of-two shifts per block, so the complete grouped branch takes O(n) time and O(n) space on fixed sequential tapes.

The two 6,561-bit fixtures, one sparse and one dense with opposite defect signs, use four low products versus 256 in the pinned caller. Both agree with direct integer multiplication. The replay also covers 256 small products, nonzero block carries, negative shifts and three rejection controls.

Reproduction

Run from the repository root with CPython 3.12.

python3.12 -I -W error -B research/grouped-clifford-sector-products/verify.py
python3.12 -I -O -W error -B research/grouped-clifford-sector-products/verify.py
python3.12 -B scripts/research_package.py --package research/grouped-clifford-sector-products
python3.12 -B scripts/check_research_commit.py --package research/grouped-clifford-sector-products --check-source-history

Limitations

The tape bound uses the pinned #7851 admission, low contraction and dense assembly arguments. The Python replay checks exact arithmetic and call counts. Arbitrary high selectors and growing low catalogues remain outside this branch. This result carries zero new κ.

Open next questions

  • Can arbitrary high assignments with two low chart types be carried in linear movement? Start with the cubic rejection control and price the long additions its count table needs.
  • With more chart types, when is a grouped pass cheaper than the pair-by-pair schedule? A three-type catalogue is the first comparison.

Related open work

The live overlap check found no open PR on this grouping. The merged predecessor is #7851 at 878218b6efa7ed1373171c26c3a5a67dc012db48.

CI notes

The registered commands and source-history check pass locally on CPython 3.12.15 on Darwin arm64. The hosted planning and package replay jobs passed at fc32428c09fdc663294a14d513061d7994e8a7e1. GitHub Actions run

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