qiskit-community / qiskit-qec

Qiskit quantum error correction framework
https://qiskit-community.github.io/qiskit-qec/
Apache License 2.0
84 stars 35 forks source link

Corrected preset for xyz2 hexagonal stabilizer code #343

Closed dsvandet closed 1 year ago

dsvandet commented 1 year ago

Summary

Corrected Issue #342 where the problem was that the preset for the weight 6 operators was incorrect as per the issue.

Details and comments

"cYZX2-hXX": [
            PauliList(["YZXYZX"], input_qubit_order="left-to-right"),  # 0
            PauliList(["YZXYZX"], input_qubit_order="left-to-right"),  # 1
            PauliList(["YZXYZX"], input_qubit_order="left-to-right"),  # 2
            None,  # 3
            PauliList(["XX"]),  # 4
            None,  # 5
            None,  # 6
            PauliList(["XX"]),  # 7
            None,  # 8
            None,  # 9
            PauliList(["XX"]),  # 10
            None,  # 11
        ],

Closes #342

dsvandet commented 1 year ago

Not for the Tile since the presets can be used for a range of codes of which some will be correct and others will not be correct. I guess that we could write a test for the builder that is using the tile and preset that would check that the code being generated is the code in question. That is probably a good idea.