Magic and Communication Complexity

1 Preliminaries: quantum and algebraic background

Definition 1 Binary entropy function
#

The binary entropy function is

\[ h(\epsilon ) = -\epsilon \log \epsilon - (1-\epsilon )\log (1-\epsilon ), \qquad \epsilon \in [0,1], \]

with the convention \(0\log 0 = 0\). (Recalled only so later magic-count lower bounds can refer to it.)

Definition 2 Pauli operators and Pauli strings
#

The single-qubit Pauli operators are

\[ X = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, \qquad Z = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, \qquad Y = iXZ. \]

They satisfy \(X^2 = Z^2 = I\) and the anticommutation relation \(ZX = -XZ\). For \(\vec a = (a_1,\dots ,a_n), \vec b \in \{ 0,1\} ^n\) an (\(n\)-qubit) Pauli string is

\[ X^{\vec a} Z^{\vec b} = \bigotimes _{i=1}^n X^{a_i} Z^{b_i}, \]

possibly multiplied by a global phase in \(\{ \pm 1, \pm i\} \). The set of all such operators (with phases) forms the \(n\)-qubit Pauli group. We freely use \(X^{\vec x}\lvert 0\cdots 0\rangle = \lvert \vec x\rangle \) for \(\vec x\in \{ 0,1\} ^n\).

Definition 3 Phase gate
#

The phase gate is \(P = \begin{pmatrix} 1 & 0 \\ 0 & i \end{pmatrix}\). It satisfies the conjugation relation \(P X P^\dagger = i X Z\) (so conjugating a Pauli \(X\) by \(P\) produces a Pauli up to phase) and \(PZP^\dagger = Z\).

Definition 4 Clifford group and Clifford circuit

A unitary \(C\) on \(n\) qubits is a Clifford operator if it normalizes the Pauli group, i.e. \(C\, Q\, C^\dagger \) is a Pauli string (up to global phase) for every Pauli string \(Q\). The Clifford group is generated by the Hadamard gate \(H\), the phase gate \(P\) (Definition 3), and \(\mathrm{CNOT}\). A Clifford circuit is a circuit composed only of Clifford gates.

Definition 5 Magic gate, weight, \(T\) gate, Clifford+\(T\)

A magic gate (equivalently, non-Clifford gate) is any unitary that is not a Clifford operator. The weight of a gate is the number of qubits on which it acts. The \(T\) gate is \(T = \begin{pmatrix} 1 & 0 \\ 0 & e^{i\pi /4} \end{pmatrix}\), a weight-\(1\) magic gate; the Clifford\(+T\) gate set is \(\{ H,P,\mathrm{CNOT},T\} \). A Clifford\(+\)Magic circuit is a circuit composed of Clifford gates and magic gates. The \(T\) gate satisfies \(T X T^\dagger = e^{-i\pi /4} P X\) and \(TZ = ZT\) (it commutes with Pauli \(Z\)).

Definition 6 \(T\)-depth and magic-depth

Write a Clifford\(+T\) circuit as a sequence of layers, where each layer is either a Clifford circuit or a layer of (parallel) \(T\) gates. The \(T\)-depth of the circuit is the number of \(T\)-layers in such a decomposition; the \(T\)-depth of a unitary \(U\) is the minimum \(T\)-depth over Clifford\(+T\) circuits implementing \(U\). The magic-depth is defined analogously with general magic-gate layers in place of \(T\)-layers.

Definition 7 Density operator, trace norm, trace distance
#

A density operator \(\rho \) is a positive semidefinite operator with \(\operatorname {Tr}\rho = 1\). The trace norm of an operator \(A\) is \(\lVert A \rVert _{1} = \operatorname {Tr}\! \sqrt{A^\dagger A}\), and the trace distance between density operators \(\rho ,\sigma \) is \(\tfrac 12\lVert \rho -\sigma \rVert _{1}\).

Definition 8 Diamond norm of a superoperator

For a Hermicity-preserving superoperator \(\Phi \) (e.g. a difference of quantum channels), the diamond norm is

\[ \lVert \Phi \rVert _{\diamond } = \max _{\rho } \lVert (\Phi \otimes \mathrm{id})(\rho ) \rVert _{1}, \]

the maximum taken over density operators \(\rho \) on the input space tensored with an ancilla of the same dimension. For unitaries \(U,U'\) we write \(\lVert U-U' \rVert _{\diamond }\) for the diamond norm of the difference of the channels \(\rho \mapsto U\rho U^\dagger \) and \(\rho \mapsto U'\rho U'^\dagger \).

Definition 9 Parity function

For subsets \(S_A, S_B \subseteq [n]\), the associated parity function on inputs \(x,y \in \{ 0,1\} ^n\) is

\[ p(x,y) = \sum _{i \in S_A} x_i + \sum _{i \in S_B} y_i \pmod2 . \]

More generally a parity function of \((x,y)\) is any \(\mathbb {F}_2\)-affine function of the bits of \((x,y)\).

Definition 10 EPR pairs, Bell-basis measurement, teleportation

An EPR pair is the two-qubit state \(\tfrac {1}{\sqrt2}(\lvert 00\rangle +\lvert 11\rangle )\). A Bell-basis measurement on two qubits projects onto the four maximally entangled states \((X^a Z^b \otimes I)\tfrac {1}{\sqrt2}(\lvert 00\rangle +\lvert 11\rangle )\), \(a,b\in \{ 0,1\} \), returning the outcome \((a,b)\). Teleportation: if Alice holds a state \(\lvert \phi \rangle \) and one half of an EPR pair whose other half is held by Bob, then a Bell-basis measurement by Alice on \(\lvert \phi \rangle \) and her EPR half, with outcome \((a,b)\), leaves Bob’s half in the state \(X^a Z^b \lvert \phi \rangle \). The outcome \((a,b)\) is uniformly random and independent of \(\lvert \phi \rangle \).