The Exercise
Encoding a stabilizer code on qubits starts from , whose stabilizer is generated by ; the generator is on qubit and the identity on every other qubit.✦ A unitary carries this stabilizer to the one generated by the , and it encodes the code when these are the generators of the code together with its encoded operators.
A Pauli string on qubits is a tensor product of single qubit operators , taken up to an overall phase. The check bits of a single qubit Pauli operator are its bit, which is for and and for and , and its bit, which is for and and for and .✦ The check row of lists the check bits of its factors, (1)✦ and the check matrix of a family of Pauli strings has their check rows as its rows.
Let the code encode qubits, with its generators in standard form. Their check matrix, with the check rows of the encoded operators below it, is (2) where and are identity and zero blocks, are binary matrices, is the number of generators with an part, and the columns on either side of the bar fall into blocks of , and . The check matrix of is , and Problem 10.3 asks for a circuit that takes it to (2).
Gates and Circuits
An elementary Clifford gate on wires, one for each qubit, is a Hadamard gate on a wire , a phase gate on a wire , or a controlled NOT gate (CNOT) with control and a different target .✦ A Clifford circuit is a finite sequence of such gates; the sequence stands for the unitary , in which acts first.✦
A gate acts on a Pauli string by conjugation, taking it to up to phase: and change only the factor on wire , a CNOT only the factors on its two wires.✦ A circuit acts gate by gate, and is the Pauli string that the circuit makes of .✦
The controlled gate on two different wires and is the circuit (3)✦
The Encoding Circuit
Standard form data on wires consist of three pairwise disjoint groups of wires, the pivots and the data wires , each listed without repetition, and the middle wires , together with a list of distinct targets for every wire ; the targets of a pivot are middle or data wires, and those of a data wire are middle wires.✦ For (2) the pivots are the first wires, the middle wires the next and the data wires the last ; is the support of row of , and the support of column of .
The Hadamard layer puts a Hadamard on every pivot.✦ The CNOT fan from a wire to its targets applies for each in in turn✦, and the CNOT network runs over the pivots and then the data wires , in the order listed.✦ The core is the Clifford circuit made of the Hadamard layer followed by the CNOT network , (4)✦
For a list of wires, the phase layer puts a phase gate on every wire of ✦; for a list of pairs of wires, the controlled network is the product of over the pairs of with .✦ The phase and controlled network placed after the core gives the encoding circuit (5)✦
The Claim
For a set of wires, is its indicator vector, and is the vector that agrees with on and vanishes off it; is , and the subscript on a matrix marks its row .
Theorem 1. Let , , and be standard form data on wires, with core .
(a) Let be a list of distinct wires and a list of pairs of distinct wires. Then for every data wire (6)✦ and for every middle wire (7)✦
(b) Let and be matrices over , with whenever is not a data wire, such that for all pivots and (8) Then there are a list of distinct wires and a list of pairs of distinct wires, with no middle wire in or in any pair of , such that for every pivot (9)✦
What Is Checked
The claim is stated over the encoding circuit (5) of standard form data, and over the check rows of the images of the generators under its action by conjugation. For every list of distinct wires and every list of pairs of distinct wires, the check rows of on the data wires✦ and of on the middle wires equal those of the core alone.✦ For and satisfying (8), phase and controlled gates away from the middle wires can be chosen so that the pivot rows take the form (9).✦