Task 10: use exact bounded-rank MPS/MPO contraction (4.90x) - #15
Open
QingyunQian wants to merge 5 commits into
Open
Task 10: use exact bounded-rank MPS/MPO contraction (4.90x)#15QingyunQian wants to merge 5 commits into
QingyunQian wants to merge 5 commits into
Conversation
Member
|
but the hyperedge gate should be cheaper than the mpo gate proposed by the agent? deserve further abalation and investigation |
Author
|
Follow-up: a deeper cold-JIT ablation changes the attribution.
So the native hyperedge is not intrinsically slower. Its I updated the PR description, concise report, and ablation figure in |
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.
Take-home insight
The 4.90x result is a cold graph-specialization win, not an intrinsic MPO-gate or contraction-FLOP advantage. The candidate replaces a generic TensorNetwork that must be built, planned, differentiated, and compiled in every fresh process with a fixed exact sequence of local MPS/MPO contractions. The bond bound
1 -> 2 -> 4guarantees exactness.Result
Public expert:
18.931 s; candidate:3.869 s; five-pair speedup:4.898x(95% t-CI4.598–5.199x).1.626x(1.373–1.878x)1.011x(0.965–1.057x)1.210x(1.161–1.258x)1.158x(1.119–1.198x)The native hyperedge and MPO have the same contraction width and nearly identical FLOPs. Once the path is fixed, their runtimes are indistinguishable. Profiling instead locates the headline gain in cold lowering plus XLA compilation:
17.514 s→3.541 s.Reviewer-facing files:
optimized_solutions/challenge-10/README.mdoptimized_solutions/challenge-10/solution_10_exact_mps.pyoptimized_solutions/challenge-10/factor-ablation.svg