We use the standard fact that an -qubit state is a pure stabilizer state exactly when it is the unique joint eigenvector of an abelian group of Pauli operators (with signs) not containing , generated by independent elements, and that then (Gottesman; Aaronson and Gottesman). Such an is a maximal abelian subgroup: a Hermitian Pauli operator that commutes with every element of lies in .
Step 1: elementary operations on pure stabilizer states.
- Tensor products and ancillas. If and with Clifford, then and is Clifford. Adding an ancilla is the case .
- Clifford unitaries. is a stabilizer state because is Clifford.
- Pauli measurement. Measure a Hermitian Pauli operator on with stabilizer group . If the outcome is deterministic and the state is unchanged. Otherwise fails to commute with some element of (by maximality), so it anticommutes with some ; choose generators of such that commute with (multiply any generator that anticommutes with by ). Each outcome occurs with probability , and the post-measurement state is stabilized by , which are independent commuting Pauli operators. So it is again a pure stabilizer state.
- Discarding qubits. Split the qubits as with . Since every non-identity Pauli operator is traceless, , where consists of the restrictions to of those that act as the identity on . is an abelian group of Pauli operators on without ; let it have independent generators, so with the projector onto its joint eigenspace, of dimension . Extend the generators by further independent Pauli operators that commute with and with each other (for example logical operators of the stabilizer code ). Then , where is the pure stabilizer state stabilized by and . Therefore is the uniform mixture of the states , an element of .
Step 2: mixed inputs. Write each as a convex combination of pure stabilizer states. Expanding the tensor product, is a convex combination of tensor products of pure stabilizer states, which are pure stabilizer states by Step 1. So the input is with , and 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 , the state is with pure stabilizer states or elements of . Apply the next operation, which is determined by . A Clifford unitary or an ancilla preparation maps each into by Step 1 and linearity. Discarding qubits is linear and maps each term into . For a Pauli measurement with outcome , let ; the conditioned state is
summing over the terms with . The weights are non-negative and sum to one, and each normalised term is in by Step 1 (applied to the pure components of in the same way). So is in . Random choices of operations average conditioned states, which keeps them in the convex set . By induction the state conditioned on the full outcome record is in ; the unconditioned output, and the output conditioned on any set of accepting records, are convex combinations of these and so lie in too.
Corollary. is linear, so on the convex set it is at most its maximum over that set, which bounds the fidelity of every output with .