Skip to content

qec/stab.py

Stabilisers

No Definition provided

py
def Stabilisers(M: int, N: int, edge: str, start: str) -> list[list[str]]
Implementation
python
def Stabilisers(M: int, N: int, edge: str='even', start: str='X') -> list[list[str]]:
    edge = edge.lower()
    start = start.upper()
    if N == 1:
        return _linear(M, edge, start)
    return _grid(M, N, edge, start)