surface_sim.layouts.check_code_definition#
- check_code_definition(layout)[source]#
Checks if the QEC code defined in the layout satisfies the following properties:
stabilisers commute with each other
logical Paulis commute with all stabilisers
logical Xi and Zi anticommute
logical Paulis are independent (i.e. no product of them is in the stabilizer group)