Skip to content

add fusion-blossom #21

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
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Fe-r-oz
Copy link

@Fe-r-oz Fe-r-oz commented Mar 16, 2025

This PR aims to introduce fusion blossom python call so that fusion blossom decoder extension namely FusionBlossomInterface can be made in QuantumClifford.jl following the guidance in QuantumSavory/QuantumClifford.jl#14 (comment)!

The following now works as a quick test :)

using PythonCall
const fb = PythonCall.pyimport("fusion_blossom")
code = fb.CodeCapacityPlanarCode(d=11, p=0.05, max_half_weight=500)
syndrome = code.generate_random_errors()
initializer = code.get_initializer()
solver = fb.SolverSerial(initializer)
solver.solve(syndrome)
subgraph = solver.subgraph()
println("Minimum Weight Parity Subgraph (MWPS): ", subgraph)
  • The code is properly formatted and commented.
  • Substantial new functionality is documented within the docs.
  • All new functionality is tested.
  • All of the automated tests on github pass.
  • We recently started enforcing formatting checks. If formatting issues are reported in the new code you have written, please correct them.

Copy link

codecov bot commented Mar 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (0f65f4a) to head (1e289cb).

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #21   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines            7         8    +1     
=========================================
+ Hits             7         8    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Fe-r-oz
Copy link
Author

Fe-r-oz commented Mar 16, 2025

Please help review this PR, thank you!

It seems that Documentation CI error is not related to this PR. I am not sure about the performance tracking error 😅

There was no original ReadMe in https://github.com/yuewuo/fusion-blossom so I just took example from https://tutorial.fusionblossom.com/demo/example-qec-codes.html!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant