(a) Invariant. After the first s gates, claim that
Cs∣x⟩=ωps(x)∣Lsx⟩ with Ls invertible over F2 and
ps=∑aca(s)(a⋅x). Initially L0=I, p0=0. Write ℓq for
row q of Ls, so wire q currently holds the parity ℓq⋅x; the rows are
linearly independent and hence nonzero.
- A CNOT with control q and target r replaces row r by ℓr⊕ℓq. This is
an invertible row operation, so Ls+1 is invertible; the phase is unchanged.
- Tc on wire q multiplies ∣Lsx⟩ by ωc(ℓq⋅x), so
ps+1=ps+c(ℓq⋅x), i.e. cℓq(s+1)=cℓq(s)+c;
L is unchanged.
Induction over the gates gives (a), with the coefficients obtained by summing the powers
applied whenever a wire carried each parity.
(b) Counting. By the construction in (a), the final coefficient ca is the sum of
the powers c of the gates applied while some wire carried parity a. If ca is odd,
at least one of those powers is odd. Distinct a with odd ca therefore need distinct
odd-power gates, so there are at most t of them.
For the converse, let a(1),…,a(m) be the parities with ca=0, of which
k have odd coefficient. For each j in turn: choose a wire q such that a(j) has
a 1 in position q; apply CNOTs from every other wire r with ar(j)=1 onto q,
so wire q holds a(j)⋅x; apply Tca(j) to wire q; then undo the
CNOTs in reverse order. Each block contributes exactly ca(j)(a(j)⋅x) to
the phase and leaves the wires as they were. Finally apply a CNOT circuit implementing
x↦Lx (any invertible matrix over F2 is a product of elementary row
operations, each a CNOT, possibly after reordering wires, and a wire permutation is a
product of SWAPs, each three CNOTs). The resulting circuit implements
∣x⟩↦ωp(x)∣Lx⟩ with exactly one gate Tc for each nonzero
ca, of which exactly k have odd c; the others are S, Z or S†, which are
Clifford. This is the representation used by
Amy, Maslov and Mosca.