We use the standard fact that an n-qubit state is a pure stabilizer state exactly
when it is the unique joint +1 eigenvector of an abelian group S of 2n Pauli
operators (with signs) not containing −I, generated by n independent elements,
and that then ∣ψ⟩⟨ψ∣=2−n∑g∈Sg
(Gottesman;
Aaronson and Gottesman). Such an S is a maximal
abelian subgroup: a Hermitian Pauli operator that commutes with every element of S
lies in ±S.
Step 1: elementary operations on pure stabilizer states.
- Tensor products and ancillas. If ∣ψ⟩=U∣0⟩⊗n and
∣ϕ⟩=V∣0⟩⊗k with U,V Clifford, then
∣ψ⟩⊗∣ϕ⟩=(U⊗V)∣0⟩⊗(n+k) and
U⊗V is Clifford. Adding an ancilla ∣0⟩ is the case V=I.
- Clifford unitaries. WU∣0⟩⊗n is a stabilizer state because
WU is Clifford.
- Pauli measurement. Measure a Hermitian Pauli operator P on ∣ψ⟩ with
stabilizer group S. If P∈±S the outcome is deterministic and the state is
unchanged. Otherwise P fails to commute with some element of S (by maximality),
so it anticommutes with some g1∈S; choose generators g1,…,gn of
S such that g2,…,gn commute with P (multiply any generator that
anticommutes with P by g1). Each outcome s=±1 occurs with
probability 1/2, and the post-measurement state (I+sP)∣ψ⟩/∥(I+sP)∣ψ⟩∥
is stabilized by sP,g2,…,gn, which are n independent commuting Pauli
operators. So it is again a pure stabilizer state.
- Discarding qubits. Split the qubits as AB with nA+nB=n. Since every
non-identity Pauli operator is traceless,
TrB∣ψ⟩⟨ψ∣=2−nA∑g∈SAg, where SA consists of
the restrictions to A of those g∈S that act as the identity on B. SA
is an abelian group of Pauli operators on A without −I; let it have r
independent generators, so ∑g∈SAg=2rΠ with Π the
projector onto its joint +1 eigenspace, of dimension 2nA−r. Extend the
generators by nA−r further independent Pauli operators h1,…,hnA−r that commute with SA and with each other (for example logical Z
operators of the stabilizer code SA). Then
Π=∑t∈{±1}nA−r∣ψt⟩⟨ψt∣, where ∣ψt⟩
is the pure stabilizer state stabilized by SA and t1h1,…,tnA−rhnA−r. Therefore TrB∣ψ⟩⟨ψ∣=2−(nA−r)Π is the
uniform mixture of the 2nA−r states ∣ψt⟩, an element of
STABnA.
Step 2: mixed inputs. Write each ρj=∑iqi(j)σi(j) as a
convex combination of pure stabilizer states. Expanding the tensor product,
ρ1⊗⋯⊗ρm is a convex combination of tensor products of
pure stabilizer states, which are pure stabilizer states by Step 1. So the input is
ρ=∑kqkσk with qk≥0, ∑kqk=1 and σk pure
stabilizer states.
Step 3: induction over the protocol, with post-selection. Each step of the
protocol is one of the elementary operations, possibly chosen according to earlier
outcomes. Suppose that after some steps, conditioned on the outcome record o, the
state is ρo=∑kqk∣oσk,o with σk,o pure stabilizer
states or elements of STAB. Apply the next operation, which is determined by
o. A Clifford unitary or an ancilla preparation maps each σk,o into
STAB by Step 1 and linearity. Discarding qubits is linear and maps each
term into STAB. For a Pauli measurement with outcome s, let
Πs=(I+sP)/2; the conditioned state is
ρo,s=Tr(Πsρo)ΠsρoΠs=k∑Tr(Πsρo)qk∣oTr(Πsσk,o)⋅Tr(Πsσk,o)Πsσk,oΠs,
summing over the terms with Tr(Πsσk,o)>0. The weights are
non-negative and sum to one, and each normalised term is in STAB by Step 1
(applied to the pure components of σk,o in the same way). So ρo,s
is in STAB. Random choices of operations average conditioned states, which
keeps them in the convex set STAB. By induction the state conditioned on
the full outcome record is in STAB; the unconditioned output, and the
output conditioned on any set of accepting records, are convex combinations of these
and so lie in STAB too.
Corollary. σ↦⟨ψ∣σ∣ψ⟩ is linear, so on the convex
set STAB it is at most its maximum over that set, which bounds the
fidelity of every output with ∣ψ⟩. □