Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

What survives the moves

Label the inputs and outputs separately. Four kinds of moves are allowed: locally complement at any vertex (toggle every edge between two of its neighbors); permute the inputs or outputs within their own bank; add one input row to a different row modulo two (change only the cross-bank wires); or delete an edge joining two inputs. The equivalence relation allows walking either way through these moves. In particular, the middle of a walk need not be bipartite. Only the endpoints are required to have cross-bank wires exclusively. We omit output Clifford decorations.

Theorem 0.1 (Move reduction at bipartite endpoints)LEAN ✓

For any nonnegative , let be bipartite encoder graphs with inputs and outputs. If , a finite sequence of output permutations, input permutations and additions of distinct binary input rows takes to . Every graph along this sequence is bipartite. (Manuscript Theorem 1.)

1. Count independent patterns across a cut

Pick a set of outputs and separate them from all the other vertices. Write a 0–1 table for just the wires crossing this cut. Its rank is the maximum number of independent row patterns under addition modulo two: a pattern you can make from the others does not add another independent row. For example, together have rank two because the third is the sum of the first two. Write for the rank of the cut table.

Remark 0.2 (The output cut-rank invariant (manuscript Lemma 2))

If , a single output relabeling makes their cut ranks agree for every output subset . This statement does not require bipartite endpoints.

If the center of a local complementation lies in , add its row to the other rows on its side that are adjacent to it. If the center is on the other side, do the analogous column additions. These operations undo themselves and preserve rank. An input row addition becomes a column addition in the cut table because all inputs are outside . Deleting an input–input edge does not touch the cut. Input permutations reorder columns; output permutations relabel the family of cuts. Combine the successive output relabelings to get one relabeling that works for every .

2. Recover the choices of columns that sum to zero

At a bipartite endpoint, no wire crosses from to an output outside . The cut rank is just the rank of the columns of the cross-bank matrix. There are ways of selecting columns inside whose sum is zero: there is one free binary choice per missing independent constraint. The exact set of selected columns is called the support. Work up from smaller sets. Subtract the counts for all proper exact supports from the count for selections inside , leaving the count for exact support . In binary arithmetic there is only one selection with that support: every selected coefficient is one.

Remark 0.3 (Subset ranks, zero sums and row space (manuscript Lemma 3))

For equal-size binary matrices, agreement of ranks on every column subset is equivalent to agreement of their kernels (the 0–1 vectors whose weighted column sums vanish), and to agreement of their row spaces (the sets of all binary row sums).

The counting argument gives ranks to kernel. A zero-sum vector has dot product zero with every row. Taking the orthogonal complement twice returns the original space in finite-dimensional binary linear algebra, so the kernel and row space determine one another. Conversely, restrict the row-space vectors to coordinates in : the dimension of this smaller space gives the rank of the columns in .

3. Turn a row space back into a sequence of moves

Remark 0.4 (From equal row spaces to row moves (manuscript Lemma 4))

If are binary matrices with equal row spaces, an invertible binary matrix satisfies . Row swaps and additions of distinct rows take to .

Reduce both tables to the same reduced row echelon form and run the second reduction backwards. There is no scaling step other than multiplying by one. At bipartite endpoints the cross-bank matrix determines the entire graph, so every step can stay bipartite. For zero inputs or zero outputs the only bipartite graph is edgeless and the empty sequence suffices.

Remark 0.5 (Three equivalent tests (manuscript Corollary 5))

For bipartite encoder graphs of the same size, these conditions are equivalent: equivalence under the original moves; equality of row spaces after some output relabeling; equality of all output cut ranks after some output relabeling. Steps 1 and 2 give graph equivalence to cut ranks to row spaces. Step 3 gives the reverse implication from row spaces to graph equivalence.

Remark 0.6 (Row additions can swap inputs (manuscript Corollary 6))

Permutations are made of swaps, and . Thus output permutations and additions of distinct input rows suffice. With fewer than two inputs there is no input swap to replace.

Where the argument stops

The pinned Lean declaration for Theorem 1 matches the graph moves in the paper. The supporting and derived statements above explain its mechanism; the book does not present them as separately verified public declarations. Trying all output permutations is not a polynomial-time algorithm for general size. The step that reads a matrix from cut ranks needs bipartite endpoints, and the cut ranks tested here are not a complete invariant of arbitrary graphs. Completeness of the graph moves for quantum-code equivalence is the separate Khesin–Li Conjecture 6.3, not a consequence of this proof.