Alphabeta Math
AlgorithmAlgorithm: AI-adaptedProof: Not applicablePipeline-generated
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

Stabilizer encoder by symplectic elimination

Definition

Inputs. An integer n≥1 and r≤n ordered rows P(ki,xi,zi)=ikiXxiZzi representing independent, pairwise-commuting signed Hermitian Pauli generators on the ordered n-qubit register.

Wire and factor indices. Tableau coordinates and circuit wire labels are q=0,…,n−1. The one-based Pauli factor index corresponding to wire q is j=q+1; factor j occupies tensor position j−1. Thus a one-wire gate on circuit wire q uses supplier factor index q+1, and a CNOT or SWAP on circuit wires q,s uses supplier indices q+1,s+1. The stored coordinates (xi,q,zi,q) use the same zero-based order.

Tableau updates. For a current row P(k,x,z), all phase entries are updated modulo 4 and binary entries modulo 2. Conjugation by Hq sends (k,xq,zq) to (k+2xqzq,zq,xq); by Sq it sends these entries to (k+xq,xq,zq+xq); by Sq† it sends them to (k−xq,xq,zq+xq). Conjugation by Xq adds 2zq to k and leaves the labels unchanged. Conjugation by SWAP⁡q,s interchanges xq with xs and zq with zs and leaves k unchanged. For CNOT⁡q→s, update xs←xs+xq and zq←zq+zs and leave k unchanged; all unmentioned binary coordinates are unchanged. Whenever a gate U is appended to chronological D, replace every current row R by URU†. For a row product P(k,x,z)P(k′,x′,z′), use the exact update (k+k′+2(z⋅x′),x+x′,z+z′).

Validity. If any row is not Hermitian, the binary labels are dependent, two rows fail to commute, or the generated subgroup contains −I, return INVALID. The independent commuting case with r=0 is valid.

Elementary gate alphabet. The output is a finite chronological list over H,S,S†,X,CNOT⁡c→t,SWAP⁡c,t. Here H,S,X,CNOT⁡,SWAP⁡ have the exact matrices in the cited gate definitions; S†=diag⁡(1,−i) is explicitly admitted as one primitive gate of this algorithm. No inverse or controlled black-box access is assumed.

Procedure. Keep the current rows phase-aware, an invertible binary row-operation matrix M∈GL(r,F2), and phase-aware input-combination rows Gi. Initially M=Ir, Gi=gi (the ith input row), and the chronological gate list D is empty. The invariant is that current row i is DGiD† and Gi=∏a=0r−1gaMia=P(κi,xˉi,zˉi),xˉi=∑a=0r−1Miaxa,zˉi=∑a=0r−1Miaza. where sums in the binary labels are in F2n and the product is in increasing input-row order. The input generators commute and square to I, so this product is independent of order. Its phase exponent κi∈Z/4Z is the signed row-operation phase data. On a gate conjugation update the current tableau row and its phase, leaving Gi and M unchanged. On a row multiplication i←i+p, update the current row by the exact phase-aware product, set Mi←Mi+Mp over F2, and set Gi←GiGp using the exact Pauli product rule (thereby updating κi). A row interchange swaps the corresponding rows of the current tableau, M, and G.

For each pivot position j=0,…,r−1:

  1. Among rows j,…,r−1, take the first row that is not identity on the unused wires, and let its row index be s. If s≠j, interchange the complete current rows s and j and interchange the corresponding rows of M and G, including the phase entry of G. This row interchange is not a circuit gate. Take the first unused wire q of the pivot row j with nonzero Pauli label. If q≠j, append the circuit gate SWAP⁡j,q to D and conjugate every current row by it.
  2. On pivot wire j and each later unused wire, normalize the pivot row's local factor: apply H to turn X into Z; apply S† followed by H to turn Y into Z; leave Z and I unchanged. Append each gate and update every row, including its phase.
  3. For each later wire q where the pivot row has a Z, append CNOT⁡q→j and update every row. The pivot becomes either +Zj or −Zj.
  4. If the pivot is −Zj, append Xj and update every row, making it +Zj. For each remaining row with a Zj factor, multiply that row by the pivot row and update the binary row-operation matrix to clear Zj.

For r=0, return the empty gate list, empty M and κ, and the unchanged logical register. On a valid input with r>0, return D, its reversed adjoint list D† as the encoder, and the signed row-operation data (M,κ), with the associated Gi defined by the invariant above. The returned checks satisfy DGiD†=+Zi for i=0,…,r−1. The logical label basis is the ordered computational basis on the remaining n−r wires, prefixed by ∣0r⟩.

Remarks

The procedure uses only finite tableau rows, deterministic first-pivot choices, and the declared gate list. Each appended gate can be read as a one-occurrence layer in Finite circuit syntax and ordered wire labels; the chronological gate list then denotes the product specified in Denotational semantics of a finite layered circuit. The algorithm explicitly lists S† as a primitive gate with its matrix and assumes no inverse-query access.

Depends on

Used by

Dependency tree · two levels

51 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources