Add AlphaSyndrome measurement strategy (arXiv:2601.12509)#422
Add AlphaSyndrome measurement strategy (arXiv:2601.12509)#422acasta-yhliu wants to merge 71 commits intomainfrom
Conversation
Implementing AlphaSyndrome into qLDPC
|
I've moved to a local branch to make changes easier.
Please check the |
perlinm
left a comment
There was a problem hiding this comment.
I took a pass through alpha_syndrome.py to add comments and simplify data structures somewhat (for example, removing WrapCSS and making TreeNode problem-agnostic).
@acasta-yhliu if you have the time, could you please take one more look through the file to make sure the new version with my changes looks correct? If you approve of the current version, we can merge into main.
| dem=dem, dets=dets, decoder=self.decoder, custom_decoders=self.custom_decoders | ||
| ) | ||
| num_logical_errors = np.sum(np.any(predictions != observable_flips, axis=1)) | ||
| node.backpropagate(self.shots_per_iter / (num_logical_errors + 1)) |
There was a problem hiding this comment.
Can you help me understand this reward?
There was a problem hiding this comment.
The reward in MCTS is the higher the better, so I use
|
I think everything looks fine and clean now. If you need further help in implementing some features in the qLDPC package, I'm also willing to contribute my effort! I should start practicing how to work with open-source projects now. |
|
@acasta-yhliu thank you! There was a recent flurry of papers on arXiv right before the QEC2026 submission date, and I believe some of them included some interesting codes that would be nice to add to Regarding this PR, though: can you comment on your attempts to parallelize My first thought was to parallelize the iterations in |
|
Thanks! I'll look at the issues and see what I can contribute. For parallelization, I tried to parallelize the BTW, |
|
I see, so it's really a multiprocessing problem to be solved by |
|
Alright, I think the last thing to do is add an example notebook for |
|
I added a tentative example notebook ( |
|
@acasta-yhliu maybe you know a nice example to show off in the notebook? |
This is a local merge request for #421 to make modifications easier.
I've implemented the AlphaSyndrome syndrome measurement scheduler. A few notes:
src/qLDPC/circuits/alphasyndrome.py.Some other things to be checked: