René's URL Explorer Experiment


Title: Tropical TN decoder scalability: d>=5 infeasible due to high tree width - investigate approximate contraction methods · Issue #71 · TensorBFS/BPDecoderPlus · GitHub

Open Graph Title: Tropical TN decoder scalability: d>=5 infeasible due to high tree width - investigate approximate contraction methods · Issue #71 · TensorBFS/BPDecoderPlus

X Title: Tropical TN decoder scalability: d>=5 infeasible due to high tree width - investigate approximate contraction methods · Issue #71 · TensorBFS/BPDecoderPlus

Description: Problem Summary The current tropical tensor network MAP decoder implementation works perfectly for d=3 but fails for d>=5 due to prohibitively high tree width (space complexity). Current Results Distance Variables Factors Tree Width (sc)...

Open Graph Description: Problem Summary The current tropical tensor network MAP decoder implementation works perfectly for d=3 but fails for d>=5 due to prohibitively high tree width (space complexity). Current Results Di...

X Description: Problem Summary The current tropical tensor network MAP decoder implementation works perfectly for d=3 but fails for d>=5 due to prohibitively high tree width (space complexity). Current Results...

Opengraph URL: https://github.com/TensorBFS/BPDecoderPlus/issues/71

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tropical TN decoder scalability: d\u003e=5 infeasible due to high tree width - investigate approximate contraction methods","articleBody":"## Problem Summary\n\nThe current tropical tensor network MAP decoder implementation works perfectly for d=3 but **fails for d\u003e=5** due to prohibitively high tree width (space complexity).\n\n### Current Results\n\n| Distance | Variables | Factors | Tree Width (sc) | Memory Required |\n|----------|-----------|---------|-----------------|-----------------|\n| d=3 | 78 | 102 | 9 | **~4 KB** ✓ |\n| d=5 | 502 | 622 | 36 | **~550 GB** ✗ |\n| d=7 | 1558 | 1894 | 80 | **~10¹⁵ GB** ✗ |\n\nFor d=3, the tropical TN decoder achieves **exact agreement with MWPM** (differs=0 across all error rates), validating the implementation correctness.\n\n### Root Cause\n\nThe factor graph for circuit-level noise rotated surface codes has tree width that grows exponentially with distance. This is a **fundamental limitation of exact MAP inference**, not an implementation issue.\n\nKey observations:\n1. The time dimension (d rounds) creates high connectivity in the factor graph\n2. Standard variable elimination/contraction ordering cannot reduce tree width below ~36 for d=5\n3. Slicing only splits the network into disconnected components without reducing per-component tree width\n\n---\n\n## Potential Solutions: Approximate Tensor Network Contraction\n\nBased on literature survey, several approximate methods could enable d\u003e=5 decoding:\n\n### 1. **Bond Dimension Truncation (MPS/MPO)**\n- **Reference**: Bravyi et al., \"Efficient Algorithms for Maximum Likelihood Decoding in the Surface Code\" [arXiv:1405.4883]\n- **Method**: Use Matrix Product States to approximate intermediate tensors during contraction\n- **Complexity**: O(n χ³) where χ is bond dimension (approximation parameter)\n- **Results**: Significant improvement over MWPM with χ≥4 for code capacity noise\n- **Key insight**: Uses DMRG-style boundary contraction\n\n### 2. **Sweep Line Contraction**\n- **Reference**: Chubb, \"General tensor network decoding of 2D Pauli codes\" [arXiv:2101.04125]\n- **Implementation**: [SweepContractor.jl](https://github.com/chubbc/SweepContractor.jl)\n- **Method**: Sweep a line across the 2D tensor network, maintaining bounded bond dimension\n- **Complexity**: O(n log n + n χ³)\n- **Results**: State-of-the-art thresholds, numerically consistent with optimal\n\n### 3. **Belief Propagation on Tensor Networks**\n- Combine BP messages with tensor structure\n- May inherit BP's limitations on loopy graphs\n\n### 4. **Variational Methods**\n- Optimize tensor network structure variationally\n- Potentially slower but more general\n\n---\n\n## Proposed Implementation Plan\n\n### Phase 1: MPS-based Approximate Contraction\nImplement MPS boundary contraction following Bravyi et al.:\n1. Arrange factor graph on a cylinder/strip\n2. Contract row-by-row using MPO-MPS multiplication\n3. Truncate to bond dimension χ after each step\n4. Recover approximate MPE assignment via backtracking\n\n### Phase 2: Sweep Contraction\nPort/adapt SweepContractor.jl approach:\n1. Planarize the tensor network\n2. Use sweep line algorithm with truncation\n3. Works for general 2D tensor networks\n\n### Phase 3: Benchmarking\nCompare approximate TN decoder against:\n- MWPM baseline\n- BP-OSD decoder\n- Measure threshold degradation vs χ\n\n---\n\n## Technical Considerations\n\n### For Circuit-Level Noise\nThe factor graph is **3D** (space × time), not 2D. This complicates:\n1. Boundary contraction ordering\n2. Sweep line direction selection\n3. Bond dimension requirements may be higher\n\n### Tropical Semiring Adaptation\nStandard MPS truncation uses SVD on probability semiring. For tropical (max-plus) semiring:\n- Need tropical SVD analog or\n- Convert to log-probabilities and use standard SVD approximation\n- May lose exactness of tropical operations\n\n---\n\n## Related Issues\n- This explains why slicing alone doesn't help: sliced components maintain same tree width\n- Connected component handling was fixed in recent commits but doesn't address core scalability\n\n## References\n1. Bravyi et al., [arXiv:1405.4883](https://arxiv.org/abs/1405.4883) - MPS decoder\n2. Chubb, [arXiv:2101.04125](https://arxiv.org/abs/2101.04125) - Sweep contraction\n3. Schotte et al., [arXiv:2012.04610](https://arxiv.org/abs/2012.04610) - TN for Fibonacci code\n\n/cc @maintainers","author":{"url":"https://github.com/ChanceSiyuan","@type":"Person","name":"ChanceSiyuan"},"datePublished":"2026-01-25T16:34:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/71/BPDecoderPlus/issues/71"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:690b928f-e0e2-a3b9-bbf1-16b9d672f853
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA294:F4108:2DFE25C:3E4F04C:698DBB57
html-safe-nonce562b1835d553637c75ba2b07bceab058753dba13f5a47e0597aab97a633a2a0f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjk0OkY0MTA4OjJERkUyNUM6M0U0RjA0Qzo2OThEQkI1NyIsInZpc2l0b3JfaWQiOiIzOTE3MDIyODE4ODY0ODEyMzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8550602cb388fa7eba9749d6e4c58e8c3b3e9c0cb84f8749b68143ffaab029a0
hovercard-subject-tagissue:3853511371
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/TensorBFS/BPDecoderPlus/71/issue_layout
twitter:imagehttps://opengraph.githubassets.com/22845ca43ebbb71d1b1b34f00eed06a2ef0585a763f1cf03f71104536371b0b3/TensorBFS/BPDecoderPlus/issues/71
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/22845ca43ebbb71d1b1b34f00eed06a2ef0585a763f1cf03f71104536371b0b3/TensorBFS/BPDecoderPlus/issues/71
og:image:altProblem Summary The current tropical tensor network MAP decoder implementation works perfectly for d=3 but fails for d>=5 due to prohibitively high tree width (space complexity). Current Results Di...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameChanceSiyuan
hostnamegithub.com
expected-hostnamegithub.com
Noned9c5a945db9d79f5476dbe75d3700f24739ef28ab02037163bdeac4050cd4ded
turbo-cache-controlno-preview
go-importgithub.com/TensorBFS/BPDecoderPlus git https://github.com/TensorBFS/BPDecoderPlus.git
octolytics-dimension-user_id54710663
octolytics-dimension-user_loginTensorBFS
octolytics-dimension-repository_id1134101933
octolytics-dimension-repository_nwoTensorBFS/BPDecoderPlus
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1134101933
octolytics-dimension-repository_network_root_nwoTensorBFS/BPDecoderPlus
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release650e13e6e6d3957db6415d62f055e6a5fd0037db
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/TensorBFS/BPDecoderPlus/issues/71#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FTensorBFS%2FBPDecoderPlus%2Fissues%2F71
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FTensorBFS%2FBPDecoderPlus%2Fissues%2F71
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=TensorBFS%2FBPDecoderPlus
Reloadhttps://patch-diff.githubusercontent.com/TensorBFS/BPDecoderPlus/issues/71
Reloadhttps://patch-diff.githubusercontent.com/TensorBFS/BPDecoderPlus/issues/71
Reloadhttps://patch-diff.githubusercontent.com/TensorBFS/BPDecoderPlus/issues/71
TensorBFS https://patch-diff.githubusercontent.com/TensorBFS
BPDecoderPlushttps://patch-diff.githubusercontent.com/TensorBFS/BPDecoderPlus
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FTensorBFS%2FBPDecoderPlus
Fork 0 https://patch-diff.githubusercontent.com/login?return_to=%2FTensorBFS%2FBPDecoderPlus
Star 3 https://patch-diff.githubusercontent.com/login?return_to=%2FTensorBFS%2FBPDecoderPlus
Code https://patch-diff.githubusercontent.com/TensorBFS/BPDecoderPlus
Issues 27 https://patch-diff.githubusercontent.com/TensorBFS/BPDecoderPlus/issues
Pull requests 0 https://patch-diff.githubusercontent.com/TensorBFS/BPDecoderPlus/pulls
Actions https://patch-diff.githubusercontent.com/TensorBFS/BPDecoderPlus/actions
Projects 0 https://patch-diff.githubusercontent.com/TensorBFS/BPDecoderPlus/projects
Security 0 https://patch-diff.githubusercontent.com/TensorBFS/BPDecoderPlus/security
Insights https://patch-diff.githubusercontent.com/TensorBFS/BPDecoderPlus/pulse
Code https://patch-diff.githubusercontent.com/TensorBFS/BPDecoderPlus
Issues https://patch-diff.githubusercontent.com/TensorBFS/BPDecoderPlus/issues
Pull requests https://patch-diff.githubusercontent.com/TensorBFS/BPDecoderPlus/pulls
Actions https://patch-diff.githubusercontent.com/TensorBFS/BPDecoderPlus/actions
Projects https://patch-diff.githubusercontent.com/TensorBFS/BPDecoderPlus/projects
Security https://patch-diff.githubusercontent.com/TensorBFS/BPDecoderPlus/security
Insights https://patch-diff.githubusercontent.com/TensorBFS/BPDecoderPlus/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/TensorBFS/BPDecoderPlus/issues/71
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/TensorBFS/BPDecoderPlus/issues/71
Tropical TN decoder scalability: d>=5 infeasible due to high tree width - investigate approximate contraction methodshttps://patch-diff.githubusercontent.com/TensorBFS/BPDecoderPlus/issues/71#top
https://github.com/ChanceSiyuan
https://github.com/ChanceSiyuan
ChanceSiyuanhttps://github.com/ChanceSiyuan
on Jan 25, 2026https://github.com/TensorBFS/BPDecoderPlus/issues/71#issue-3853511371
SweepContractor.jlhttps://github.com/chubbc/SweepContractor.jl
arXiv:1405.4883https://arxiv.org/abs/1405.4883
arXiv:2101.04125https://arxiv.org/abs/2101.04125
arXiv:2012.04610https://arxiv.org/abs/2012.04610
@maintainershttps://github.com/maintainers
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.