Skip to content

Add block_tt_id: learn n functions simultaneously#3

Merged
yurielnf merged 1 commit into
mainfrom
claude/heuristic-kowalevski-1b2e7b
May 20, 2026
Merged

Add block_tt_id: learn n functions simultaneously#3
yurielnf merged 1 commit into
mainfrom
claude/heuristic-kowalevski-1b2e7b

Conversation

@yurielnf
Copy link
Copy Markdown
Owner

Implements block_tt_id, a variant of tt_id that learns n functions at once by carrying a function index alpha at the moving sweep center.

The single output TensorTrain has one "fat" core at the center site with local dim n*d_center; all other cores have normal shape [r, d, r']. Shared Iset/Jset are kept alpha-free by placing alpha on the right in the right sweep (row ID on M[i,(alpha,j)]) and on the left in the left sweep (col ID on M[(alpha,i),j]).

Also adds test_block_tt_id.cpp with 4 test cases covering accuracy, fat-core shape, n=1 degeneracy, and bond-dimension efficiency.

…ructure

Implements block_tt_id<T>, a variant of tt_id that learns n functions
at once by carrying a function index alpha at the moving sweep center.

The single output TensorTrain has one "fat" core at the center site with
local dim n*d_center; all other cores have normal shape [r, d, r'].
Shared Iset/Jset are kept alpha-free by placing alpha on the right in
the right sweep (row ID on M[i,(alpha,j)]) and on the left in the left
sweep (col ID on M[(alpha,i),j]).

Also adds test_block_tt_id.cpp with 4 test cases covering accuracy,
fat-core shape, n=1 degeneracy, and bond-dimension efficiency.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@yurielnf yurielnf merged commit 994e38d into main May 20, 2026
1 check 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.

1 participant