Add Tanner Graph Walkthrough Tutorial with Logical Error Rate Analysis #37
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
This PR adds a comprehensive tutorial demonstrating belief propagation decoding on Tanner graphs for surface code quantum error correction, with a focus on showing logical error rate reduction.
New Features
📚 Documentation
docs/tanner_graph_walkthrough.md(~700 lines): Complete tutorial covering:🔬 Example Scripts
examples/tanner_graph_walkthrough.py(~600 lines): Runnable companion scriptexamples/generate_tanner_visualizations.py: Visualization generator📊 Visualizations
docs/images/tanner_graph/: 6 PNG visualizations🎯 Decoder Performance Results
The BP decoder demonstrates measurable logical error rate reduction:
Key Improvements:
Results shown for d=3, r=3, p=0.03 dataset with 500 test samples
📝 Configuration Updates
mkdocs.yml: Added "Tutorials" navigation sectionpyproject.toml: Added matplotlib, networkx, seaborn dependenciesREADME.md: Added tutorial link and description✅ Testing
🎓 Educational Value
This tutorial provides:
📖 Documentation Preview
The tutorial is organized into 6 parts:
View locally with:
make docs-serve🚀 Usage
🔗 Related
pytorch_bpmodule