Skip to content
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

Make sure hyperedges are correctly handled #412

Open
quantumjim opened this issue Dec 11, 2023 · 0 comments
Open

Make sure hyperedges are correctly handled #412

quantumjim opened this issue Dec 11, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@quantumjim
Copy link
Member

Steps to reproduce the problem

from qiskit_qec.decoders import DecodingGraph
from qiskit_qec.circuits import ArcCircuit

code = ArcCircuit([(0,1,2),(2,3,4),(4,5,6),(6,7,8),(8,9,0)],1)
dg = DecodingGraph(code)
print(dg.hyperedges)

What is the current behavior?

For some codes, such as a periodic repetition code, boundary nodes should be part of a hyperedge. But the hyperedges generated in the above only possess a single edge each (and hence are just normal edges).

What is the expected behavior?

The hyperedges should be checked and made to work properly for ArcCircuit and the stim compatibility.

@quantumjim quantumjim added the bug Something isn't working label Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant