-
Notifications
You must be signed in to change notification settings - Fork 212
Tutorial: Decoding Quantum Errors on the Steane code with Belief Propagation & Catalyst #1371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
beitom
wants to merge
42
commits into
PennyLaneAI:master
Choose a base branch
from
beitom:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,211
−0
Conversation
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
…f Propagation & Catalyst"
…d preview images check-jsonschema \ --schemafile metadata_schemas/demo.metadata.schema.0.1.5.json \ demonstrations/tutorial_bp_catalyst.metadata.json fails but does not return any error messages
Co-authored-by: Paul Finlay <[email protected]>
Your preview is ready 🎉!You can view your changes here |
Comment on lines
1
to
8
{ | ||
"title": "Decoding Quantum Errors on the Steane code with Belief Propagation & Catalyst", | ||
"authors": [ | ||
{ | ||
"username": "tomginsberg" | ||
} | ||
], | ||
"dateOfPublication": "2025-05-14T00:00:00+00:00", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and any files in demonstrations/
directory can be deleted.
Co-authored-by: Alan Martin <[email protected]>
svg to png
we were repeating the image
Include hero image and correct missing one
daniela-angulo
approved these changes
Aug 18, 2025
alvaro-at-xanadu
approved these changes
Aug 18, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Please update metadata date before merging
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.
Title: Decoding Quantum Errors on the Steane code with Belief Propagation & Catalyst
Summary:$[[7,1,3]]$
This tutorial walks you through a simplified error correction cycle using the Steane
code. You’ll encode a logical qubit, introduce noise, extract syndromes, and apply decoding using
two different strategies: a simple lookup table and a belief propagation (BP) decoder. Both decoders
are implemented in JAX and JIT-compiled by Catalyst, allowing everything to run inside a single
@qml.qjit
circuit.Relevant references:
Possible Drawbacks:
The tutorial uses a simplified noise model (code capacity) where errors occur only once. Real-world quantum computers have errors at every step (circuit-level noise), which creates a much more complex decoding challenge involving errors in space and time.
Related GitHub Issues:
N/A
If you are writing a demonstration, please answer these questions to facilitate the marketing process.
GOALS — Why are we working on this now?
I work on fault tolerant compilation of quantum circuits which involves making classical decoding algorithms run alongside quantum circuit with measurements and feedforward operations. Catalyst is a great new technology to enable these kinds of high performance hybrid quantum-classical workflows essential for quantum error correction.
AUDIENCE — Who is this for?
KEYWORDS — What words should be included in the marketing post?
quantum error correction
,css code
,hybrid quantum-classical
,belief propagation decoding
,JAX
,Catalyst
(more details here note this requires a Xanadu email to view)
Notes:
suggested thumbail is to make a graphic of the Steane code in it's usual triangle layout

The hero image should have some theme of quantum/classical QEC circuits my idea is roughly this where S is the syndrome and R is the recovery operator:
[sc-93094]