Quantum Information and Channels: A formalization blueprint

33 Two-level words, dilations and exact amplification

Throughout this chapter \(I\) is a finite set and matrices in \(\mathbb {C}^{I\times I}\) act on \(\mathbb {C}^I\) with basis \(\{ |x\rangle \} _{x\in I}\). The chapter proves that every unitary of determinant one on \(\mathbb {C}^I\) is a product of at most \(3|I|^2\) two-level rotations and phases, the commutator identity that removes one factor from the control of a controlled element of a ring, the unitary dilation of a partial isometry on two copies of its space, and the exact amplification of a uniform success probability by two reflections. The first two results are the matrix steps in the decomposition of a gate of constant size into elementary gates in  [ 113 , caption of Fig. 1 and paragraph “The sequential-RG circuit” ] .

33.1 Real square roots in the complex numbers

Theorem 33.1.1 Complex square of a real square root
✓

Let \(x\geq 0\) be real and regard \(\sqrt x\) as a complex number. Then \((\sqrt x)^2=x\) and \((\sqrt x)^{-1}(\sqrt x)^{-1}=x^{-1}\).

Proof ▶

The inclusion \(\mathbb {R}\to \mathbb {C}\) is multiplicative and \(\sqrt x\, \sqrt x=x\) in \(\mathbb {R}\); the second identity is the inverse of the first.

Definition 33.1.2 The numbers \(1/\sqrt x\)
✓
#

For a real number \(x\) put \(c_x=(\sqrt x)^{-1}\in \mathbb {C}\), and \(c=c_2=(\sqrt2)^{-1}\).

For \(x\geq 0\) the number \(c_x=1/\sqrt x\) satisfies \(c_x\cdot c_x=c_x^2=x^{-1}\), \(|c_x|^2=x^{-1}\), \(\overline{c_x}=c_x\) and \(c_{x^n}=c_x^n\); for \(x{\gt}0\), \(c_x\neq 0\), \(c_x\sqrt x=\sqrt x\, c_x=1\) and \(c_x^nc_x^nx^n=1\) for every integer \(n\geq 0\). In particular \(c=1/\sqrt2\) satisfies \(c\neq 0\), \(c\cdot c=c^2=|c|^2=\tfrac 12\), \(c\sqrt2=\sqrt2\, c=1\), \(\overline c=c\) and \(c^nc^n2^n=1\).

Proof ▶

For \(x{\gt}0\), \(\sqrt x{\gt}0\), so its inverse is nonzero and \(c_x\sqrt x=\sqrt x\, c_x=1\). For \(x\geq 0\), \((\sqrt x)^2=x\) (Theorem 33.1.1) gives \(c_x\cdot c_x=x^{-1}\), hence \(c_x^nc_x^nx^n=(c_x\cdot c_x\cdot x)^n=1\) for \(x{\gt}0\). The number \(c_x\) is real, so conjugation fixes it, and \(\sqrt{x^n}=(\sqrt x)^n\) for \(x\geq 0\) by induction on \(n\). The identities for \(c\) are those at \(x=2\).

33.2 Two-level operators

Definition 33.2.1 Two-level operator
✓

Let \(a,b\in I\) and \(g\in \mathbb {C}^{2\times 2}\), with rows and columns of \(g\) indexed by \(\{ 0,1\} \). For \(x\in I\) put \(\iota _a(x)=0\) if \(x=a\) and \(\iota _a(x)=1\) otherwise. The two-level operator \(G_{ab}(g)\in \mathbb {C}^{I\times I}\) has the entries

\begin{align} G_{ab}(g)_{xy}= \begin{cases} g_{\iota _a(x)\, \iota _a(y)} & \text{if } x,y\in \{ a,b\} , \\ \delta _{xy} & \text{otherwise.} \end{cases} \label{eq:gate_two_level} \end{align}

For \(a\neq b\) it acts as \(g\) on \(\operatorname{span}\{ |a\rangle ,|b\rangle \} \), in this order of the two vectors, and as the identity on the other basis vectors.

If \(x\notin \{ a,b\} \) or \(y\notin \{ a,b\} \), then \(G_{ab}(g)_{xy}=\delta _{xy}\). The index map satisfies \(\iota _a(a)=0\), and \(\iota _a(b)=1\) when \(a\neq b\).

Proof ▶

Both statements are read off from (3) and the definition of \(\iota _a\).

For all \(a,b\in I\) and \(g\in \mathbb {C}^{2\times 2}\), \(G_{ab}(1)=1\) and \(G_{ab}(g)^\dagger =G_{ab}(g^\dagger )\). If \(a\neq b\), then \(G_{ab}(g)G_{ab}(h)=G_{ab}(gh)\) for all \(g,h\in \mathbb {C}^{2\times 2}\), hence \(G_{ab}(g_1\cdots g_k)=G_{ab}(g_1)\cdots G_{ab}(g_k)\) for every finite list \(g_1,\ldots ,g_k\), and \(G_{ab}(g)\) is unitary whenever \(g\) is.

Proof ▶

For the product, fix \(x,y\). If \(x,y\in \{ a,b\} \), the sum \(\sum _zG_{ab}(g)_{xz}G_{ab}(h)_{zy}\) has only the terms \(z=a\) and \(z=b\), by Theorem 33.2.2, and these give \((gh)_{\iota _a(x)\, \iota _a(y)}\). If \(x\notin \{ a,b\} \) or \(y\notin \{ a,b\} \), one of the two factors has the entries of the identity and the sum collapses to \(\delta _{xy}\). The identities for \(1\) and for the adjoint are entrywise, the formula for a list follows by induction on its length, and unitarity follows from \(G_{ab}(g)^\dagger G_{ab}(g)=G_{ab}(g^\dagger g)=1\) and the same computation in the other order.

Theorem 33.2.4 Action of a two-level operator
✓

Let \(a\neq b\). For \(v\in \mathbb {C}^I\) the vector \(G_{ab}(g)v\) has the coordinates \(g_{00}v_a+g_{01}v_b\) at \(a\), \(g_{10}v_a+g_{11}v_b\) at \(b\), and \(v_x\) at every \(x\notin \{ a,b\} \). Consequently, for \(Y\in \mathbb {C}^{I\times I}\) the rows of \(G_{ab}(g)Y\) at \(a\) and \(b\) are \(g_{00}Y_{a\, \cdot }+g_{01}Y_{b\, \cdot }\) and \(g_{10}Y_{a\, \cdot }+g_{11}Y_{b\, \cdot }\), and the other rows are those of \(Y\).

Proof ▶

In \(\sum _zG_{ab}(g)_{xz}v_z\) only \(z\in \{ a,b\} \) contribute when \(x\in \{ a,b\} \), and only \(z=x\) otherwise, by Theorem 33.2.2. The statement for \(Y\) is the statement for each of its columns.

Theorem 33.2.5 Determinant of a two-level operator
✓

If \(a\neq b\), then \(\det G_{ab}(g)=\det g\).

Proof ▶

Order the basis so that \(a,b\) come first. By Theorem 33.2.2 the matrix of \(G_{ab}(g)\) is then block diagonal with blocks \(g\) and \(1\), and the determinant does not depend on the order of the basis.

Definition 33.2.6 Rotations and phases
✓

For \(z,\nu \in \mathbb {C}\) put

\begin{align} R(z)=\begin{pmatrix} \operatorname {Re}z & -\operatorname {Im}z \\ \operatorname {Im}z & \operatorname {Re}z \end{pmatrix}, \qquad D(\nu )=\begin{pmatrix} \nu & 0 \\ 0 & \overline\nu \end{pmatrix}, \qquad J=\begin{pmatrix} i & 0 \\ 0 & -i \end{pmatrix}, \qquad Q=\begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix}. \end{align}

For all \(z,w,\nu \in \mathbb {C}\), \(R(z)R(w)=R(zw)\), \(R(1)=1\), \(R(z)^\dagger =R(\overline z)\), \(D(\nu )^\dagger =D(\overline\nu )\) and \(Q=R(-i)\). The matrices \(J\) and \(Q\) are unitary, and \(R(z)\) and \(D(\nu )\) are unitary when \(|z|=1\) and \(|\nu |=1\).

Proof ▶

The identities are verified entry by entry; the product formula is the formula for the real and imaginary parts of \(zw\). For \(|z|=1\), \(R(z)^\dagger R(z)=R(\overline zz)=R(1)=1\), and likewise in the other order. For \(D(\nu )\), \(J\) and \(Q\) the two products with the adjoint are computed entry by entry, using \(\overline\nu \nu =1\) for \(D(\nu )\).

For every \(w\in \mathbb {C}\),

\begin{align} R(w^2)=R(w)\, J\, R(\overline w)\, J^\dagger , \qquad D(w^2)=D(w)\, Q\, D(\overline w)\, Q^\dagger . \end{align}
Proof ▶

An entrywise computation gives \(JR(\overline w)J^\dagger =R(w)\), so the first right-hand side is \(R(w)R(w)=R(w^2)\) by Theorem 33.2.7. The second identity is verified entry by entry: \(QD(\overline w)Q^\dagger =D(w)\).

Definition 33.2.9 Rotations and phases of unit modulus
✓
#

A matrix \(g\in \mathbb {C}^{2\times 2}\) is a rotation or phase of unit modulus if \(g=R(z)\) for some \(z\) with \(|z|=1\), or \(g=D(\nu )\) for some \(\nu \) with \(|\nu |=1\).

Theorem 33.2.10 Rotations and phases of unit modulus are special unitary
✓

If \(g\) is a rotation or phase of unit modulus, then \(g\) is unitary, \(\det g=1\), and \(g^\dagger \) is again a rotation or phase of unit modulus.

Proof ▶

Unitarity and the form of the adjoint are Theorem 33.2.7. The determinants are \(\det R(z)=(\operatorname {Re}z)^2+(\operatorname {Im}z)^2=|z|^2\) and \(\det D(\nu )=\nu \overline\nu =|\nu |^2\).

Theorem 33.2.11 Square roots on the unit circle
✓

Every \(z\in \mathbb {C}\) with \(|z|=1\) has a square root \(w\) with \(|w|=1\).

Proof ▶

The field \(\mathbb {C}\) is algebraically closed, so \(w^2=z\) has a solution, and \(|w|^2=|z|=1\) gives \(|w|=1\).

Every rotation or phase \(g\) of unit modulus has the form \(g=g_1g_2g_1^\dagger g_2^\dagger \) with \(g_1\) a rotation or phase of unit modulus and \(g_2\in \mathbb {C}^{2\times 2}\) unitary.

Proof ▶

If \(g=R(z)\), choose \(w\) with \(|w|=1\) and \(w^2=z\) by Theorem 33.2.11; Theorem 33.2.8 and \(R(w)^\dagger =R(\overline w)\) give \(g=R(w)JR(w)^\dagger J^\dagger \). If \(g=D(\nu )\), the same argument with \(w^2=\nu \) gives \(g=D(w)QD(w)^\dagger Q^\dagger \).

33.3 The Givens decomposition

Definition 33.3.1 Two-level word
✓

For an integer \(K\geq 0\), a matrix \(X\in \mathbb {C}^{I\times I}\) is a two-level word of length at most \(K\) if \(X=G_{a_1b_1}(g_1)\cdots G_{a_kb_k}(g_k)\) with \(k\leq K\), \(a_j\neq b_j\) and every \(g_j\) a rotation or phase of unit modulus.

  1. The identity is a two-level word of length at most \(K\) for every \(K\geq 0\), and a two-level word of length at most \(K\) has length at most \(K'\) for every \(K'\geq K\).

  2. If \(X\) and \(Y\) are two-level words of lengths at most \(K\) and \(K'\), then \(XY\) is one of length at most \(K+K'\).

  3. If \(a\neq b\) and \(g\) is a rotation or phase of unit modulus, then \(G_{ab}(g)\) is a two-level word of length at most \(1\); if \(g_1,\ldots ,g_k\) are rotations or phases of unit modulus, then \(G_{ab}(g_1\cdots g_k)\) is one of length at most \(k\).

  4. If \(X\) is a two-level word of length at most \(K\), then so is \(X^\dagger \), and \(X\) is unitary with \(\det X=1\).

Proof ▶

Items (1)–(3) concatenate lists of factors; the last part of (3) uses the product formula for a list in Theorem 33.2.3. For (4), the adjoint of a product is the product of the adjoints in the reverse order, with \(G_{ab}(g)^\dagger =G_{ab}(g^\dagger )\) and \(g^\dagger \) again a rotation or phase of unit modulus (Theorems 33.2.3 and 33.2.10). Each factor is unitary, and has determinant \(\det g_j=1\) by Theorems 33.2.5 and 33.2.10.

Definition 33.3.3 Operators fixing the basis vectors outside a set
✓
#

For \(T\subseteq I\), a matrix \(X\in \mathbb {C}^{I\times I}\) fixes the basis vectors outside \(T\) if \(X_{xy}=\delta _{xy}\) whenever \(x\notin T\) or \(y\notin T\).

If \(X\) fixes the basis vectors outside \(T\) and \(T\subseteq T'\), it fixes those outside \(T'\). If \(X\) and \(Y\) fix the basis vectors outside \(T\), so does \(XY\). The operator \(G_{ab}(g)\) fixes the basis vectors outside \(\{ a,b\} \), and a matrix fixing the basis vectors outside \(\emptyset \) is the identity.

Proof ▶

For the product, if \(x\notin T\) then \(X_{xz}=\delta _{xz}\) for all \(z\), so \((XY)_{xy}=Y_{xy}=\delta _{xy}\); the case \(y\notin T\) is symmetric. The statement for \(G_{ab}(g)\) is Theorem 33.2.2. The other two statements are immediate from the definition.

Theorem 33.3.5 Eliminating one coordinate of a pair
✓

For all \(x,y\in \mathbb {C}\) there are \(k\leq 2\) and rotations or phases \(g_1,\ldots ,g_k\) of unit modulus such that \(g=g_1\cdots g_k\) satisfies \(g_{10}x+g_{11}y=0\).

Proof ▶

If \(y=0\) take \(k=0\). If \(y\neq 0\) and \(x=0\) take \(g=Q=R(-i)\) (Theorem 33.2.7). Otherwise write \(x=|x|p\) and \(y=|y|q\) with \(|p|=|q|=1\), choose \(\nu \) with \(|\nu |=1\) and \(\nu ^2=\overline pq\) by Theorem 33.2.11, so that \(\overline\nu q=\nu p\), and put \(r=\sqrt{|x|^2+|y|^2}\) and \(z=(|x|-i|y|)/r\), so that \(|z|=1\). Then \(g=R(z)D(\nu )\) has \(g_{10}=-|y|\nu /r\) and \(g_{11}=|x|\overline\nu /r\), and \(g_{10}x+g_{11}y=\bigl(-|x||y|\nu p+|x||y|\overline\nu q\bigr)/r=0\).

Let \(a\in I\), \(X\in \mathbb {C}^{I\times I}\) and \(R\subseteq I\) with \(a\notin R\). There is a two-level word \(W\) of length at most \(2|R|\) that fixes the basis vectors outside \(R\cup \{ a\} \) and satisfies \((WX)_{ca}=0\) for every \(c\in R\).

Proof ▶

By induction on \(R\). For \(R=\emptyset \) take \(W=1\). For \(R\cup \{ b\} \) with \(b\notin R\) and \(b\neq a\), let \(W\) be the word for \(R\) and choose \(g=g_1\cdots g_k\), \(k\leq 2\), by Theorem 33.3.5 with \(g_{10}(WX)_{aa}+g_{11}(WX)_{ba}=0\). Put \(W'=G_{ab}(g)W\). It is a two-level word of length at most \(2+2|R|\) (Theorem 33.3.2) and fixes the basis vectors outside \(R\cup \{ a,b\} \) (Theorem 33.3.4). By Theorem 33.2.4, the row of \(W'X\) at \(b\) is \(g_{10}(WX)_{a\, \cdot }+g_{11}(WX)_{b\, \cdot }\), which vanishes in the column \(a\), and the rows at \(c\in R\) are those of \(WX\).

Let \(X\in \mathbb {C}^{I\times I}\) be unitary with \(\det X=1\). If \(X\) fixes the basis vectors outside \(T\subseteq I\), then \(X\) is a two-level word of length at most \(3|T|^2\). In particular every unitary \(X\) with \(\det X=1\) is a two-level word of length at most \(3|I|^2\).

Proof ▶

By induction on \(T\). If \(T=\emptyset \), then \(X=1\) (Theorem 33.3.4). For \(T\cup \{ a\} \) with \(a\notin T\), Theorem 33.3.6 gives a two-level word \(W\) of length at most \(2|T|\), fixing the basis vectors outside \(T\cup \{ a\} \), such that \(Y=WX\) has \(Y_{ca}=0\) for all \(c\neq a\). The matrix \(Y\) is unitary with \(\det Y=1\) and fixes the basis vectors outside \(T\cup \{ a\} \). Put \(\lambda =Y_{aa}\). The column of \(Y\) at \(a\) is \(\lambda |a\rangle \), so \(|\lambda |=1\), and orthogonality of the columns gives \(Y_{ac}=0\) for \(c\neq a\).

If \(T=\emptyset \), then \(Y\) is diagonal with the entry \(\lambda \) at \(a\) and \(1\) elsewhere, so \(\lambda =\det Y=1\), \(Y=1\) and \(X=W^\dagger \). Otherwise choose \(b\in T\) and put \(Z=G_{ab}(D(\overline\lambda ))Y\). By Theorem 33.2.4, \(Z\) fixes the basis vectors outside \(T\); it is unitary with \(\det Z=1\) (Theorems 33.2.5 and 33.2.10). By the induction hypothesis \(Z\) is a two-level word of length at most \(3|T|^2\), and

\begin{align} X=W^\dagger \, G_{ab}(D(\lambda ))\, Z \end{align}

is a two-level word of length at most \(2|T|+1+3|T|^2\leq 3(|T|+1)^2\) by Theorem 33.3.2. The last statement is the case \(T=I\).

33.4 Controlled elements of a ring

Definition 33.4.1 Controlled element
✓
#

For elements \(p,x\) of a ring put \(C(p,x)=px+(1-p)\).

Let \(p,q,p_1,p_2,x,y,v,v',w\) be elements of a ring.

  1. \(C(p,1)=1\) and \(C(p_1,C(p_2,w))=C(p_1p_2,w)\).

  2. If \(p^2=p\) and \(px=xp\), then \(C(p,x)C(p,y)=C(p,xy)\).

  3. If \(pv=vp\) and \(vv'=1\), then \(vC(p,w)v'=C(p,vwv')\).

  4. If \(p\) commutes with \(q\) and with \(x\), then \(p\) commutes with \(C(q,x)\).

Proof ▶

Item (1) is an expansion. For (2), expand the product into four terms: \(px\, py=p(xy)\), \(px(1-p)=0\), \((1-p)py=0\) and \((1-p)^2=1-p\). For (3), \(vC(p,w)v'=vpwv'+vv'-vpv'=p\, vwv'+1-p\). Item (4) holds because \(C(q,x)\) is built from \(q\), \(x\) and \(1\) by sums and products.

Theorem 33.4.3 Controlled commutators
✓

Let \(p_1,p_2\) be commuting idempotents of a ring and let \(v,v',w,w'\) satisfy \(vv'=1\) and \(ww'=1\). Suppose that \(p_1\) commutes with \(v\) and \(w\), and that \(p_2\) commutes with \(v\), \(v'\) and \(w\). Then

\begin{align} C(p_1,v)\, C(p_2,w)\, C(p_1,v’)\, C(p_2,w’)=C(p_1p_2,\, vwv’w’). \label{eq:gate_ctrl_commutator} \end{align}
Proof ▶

Put \(A=C(p_1,v)\) and \(A'=C(p_1,v')\). By Theorem 33.4.2, \(AA'=C(p_1,vv')=1\), and \(p_2\) commutes with \(A\) and \(A'\). Expanding and using that \(p_1\) is an idempotent commuting with \(v\) and \(w\) gives \(AwA'=p_1\, vwv'+(1-p_1)w\), hence \(AwA'w'=C(p_1,vwv'w')\). Therefore, by items (3), (2) and (1) of Theorem 33.4.2,

\begin{align} A\, C(p_2,w)\, A’\, C(p_2,w’) =C(p_2,AwA’)\, C(p_2,w’) =C(p_2,C(p_1,vwv’w’)) =C(p_2p_1,vwv’w’), \end{align}

and \(p_2p_1=p_1p_2\).

33.5 Basis inclusions

Definition 33.5.1 Basis inclusion
✓
#

For an injective map \(e:K\to I\) of finite sets, the basis inclusion along \(e\) is the matrix \(J_e\in \mathbb {C}^{I\times K}\) with \(J_e|k\rangle =|e(k)\rangle \), that is \((J_e)_{xk}=1\) if \(x=e(k)\) and \(0\) otherwise.

Lemma 33.5.2 Basis inclusions are isometries
✓
#

A basis inclusion is an isometry: \(J_e^\dagger J_e=1\).

Proof ▶

The entry \((J_e^\dagger J_e)_{kl}\) counts the \(x\) with \(x=e(k)\) and \(x=e(l)\), which is \(1\) if \(k=l\) and \(0\) otherwise because \(e\) is injective.

33.6 The unitary dilation of a partial isometry

Definition 33.6.1 A two-copy dilation
✓
#

For \(A\in \mathbb {C}^{I\times I}\) define the matrix on \(\mathbb {C}^I\oplus \mathbb {C}^I\)

\begin{align} \mathcal D_A= \begin{pmatrix} A & 1-AA^\dagger \\ 1-A^\dagger A & -A^\dagger \end{pmatrix}. \end{align}

If \(AA^\dagger A=A\), then \(\mathcal D_A\) is unitary. For every matrix \(V\) with rows indexed by \(I\),

\begin{align} \mathcal D_A\binom V0=\binom {AV}{(1-A^\dagger A)V}. \label{eq:gate_dilation_action} \end{align}

If \(AA^\dagger A=A\), the Gram matrix of the left-hand side of (10) is \(V^\dagger V\). For arbitrary \(A\), the Gram matrix of its first block is \((AV)^\dagger AV\).

Proof ▶

If \(AA^\dagger A=A\), both \(A^\dagger A\) and \(AA^\dagger \) are idempotent, and block multiplication gives \(\mathcal D_A^\dagger \mathcal D_A=1\). Block multiplication also gives (10) and the Gram matrix of its first block; the total Gram matrix follows from unitarity.

33.7 Exact amplification of a uniform success probability

In this section \(I\) and \(M\) are finite sets, maps \(\mathbb {C}^M\to \mathbb {C}^I\) are matrices in \(\mathbb {C}^{I\times M}\), and \(P\in \mathbb {C}^{I\times I}\).

Definition 33.7.1 Two-reflection subspace amplification
✓

For \(P\in \mathbb {C}^{I\times I}\) put \(R_P=1-2P\). For \(G,H\in \mathbb {C}^{I\times M}\) and real \(\theta \) put

\begin{align} V_\theta =\sin \theta \, G+\cos \theta \, H, \qquad Q_\theta =-R_{V_\theta V_\theta ^\dagger }R_P. \end{align}

If \(P\) is an orthogonal projection, \(R_P\) is unitary. If \(V^\dagger V=1\), then \(VV^\dagger \) is an orthogonal projection. If \(G^\dagger G=H^\dagger H=1\) and \(G^\dagger H=0\), then \(V_\theta ^\dagger V_\theta =1\) for every real \(\theta \); if, in addition, \(P\) is an orthogonal projection, \(Q_\theta \) is unitary.

Proof ▶

For an orthogonal projection \(P\), \(R_P\) is self-adjoint with \(R_P^2=1-4P+4P^2=1\). If \(V^\dagger V=1\), then \((VV^\dagger )^2=V(V^\dagger V)V^\dagger =VV^\dagger \). The Gram matrix of \(V_\theta \) is \((\sin ^2\theta +\cos ^2\theta )\, 1\) because the mixed terms vanish. Finally \(Q_\theta \) is minus a product of two unitary reflections.

Suppose \(G^\dagger G=H^\dagger H=1\), \(G^\dagger H=0\), \(PG=G\) and \(PH=0\). For all real \(\theta ,\phi \) and integers \(k\geq 0\),

\begin{align} Q_\theta V_\phi =V_{\phi +2\theta }, \qquad Q_\theta ^k V_\phi =V_{\phi +2k\theta }. \end{align}

In particular, for every integer \(\ell \geq 0\) and \(\theta =\pi /(4\ell +2)\), \(Q_\theta ^\ell V_\theta =G\).

Proof ▶

Since \(PG=G\) and \(PH=0\), \(R_PV_\phi =-\sin \phi \, G+\cos \phi \, H\), and the Gram identities give \(V_\theta ^\dagger R_PV_\phi =(\cos \theta \cos \phi -\sin \theta \sin \phi )\, 1=\cos (\theta +\phi )\, 1\). Hence

\begin{align} Q_\theta V_\phi & =-R_PV_\phi +2V_\theta V_\theta ^\dagger R_PV_\phi \notag \\ & =\bigl(\sin \phi +2\sin \theta \cos (\theta +\phi )\bigr)G +\bigl(2\cos \theta \cos (\theta +\phi )-\cos \phi \bigr)H \notag \\ & =\sin (\phi +2\theta )\, G+\cos (\phi +2\theta )\, H=V_{\phi +2\theta }, \end{align}

where the last line uses \(\sin (\phi +2\theta )=\sin \phi \cos 2\theta +\cos \phi \sin 2\theta \) and \(\cos (\phi +2\theta )=\cos \phi \cos 2\theta -\sin \phi \sin 2\theta \) with \(\sin 2\theta =2\sin \theta \cos \theta \) and \(\cos 2\theta =1-2\sin ^2\theta =2\cos ^2\theta -1\). Induction on \(k\) gives the second identity, and the final angle is \((2\ell +1)\pi /(4\ell +2)=\pi /2\), where \(V_{\pi /2}=G\).

Definition 33.7.4 Uniform success and failure maps
✓

For \(V\in \mathbb {C}^{I\times M}\), \(P\in \mathbb {C}^{I\times I}\) and real \(p\) put

\begin{align} G=p^{-1}PV,\qquad H=\bigl(\sqrt{1-p^2}\bigr)^{-1}(1-P)V, \qquad Q=-R_{VV^\dagger }R_P. \end{align}
Theorem 33.7.5 Decomposition from a uniform success probability
✓

Suppose \(V^\dagger V=1\), \(P\) is an orthogonal projection, \(0{\lt}p{\lt}1\) and \(V^\dagger PV=p^2\, 1\). The maps \(G,H\) of Definition 33.7.4 satisfy

\begin{align} G^\dagger G=H^\dagger H=1,\qquad G^\dagger H=0, \qquad PG=G,\quad PH=0, \qquad pG+\sqrt{1-p^2}\, H=V. \end{align}
Proof ▶

Since \(P\) is an orthogonal projection, \((PV)^\dagger PV=V^\dagger PV=p^2\) and \(((1-P)V)^\dagger (1-P)V=V^\dagger V-V^\dagger PV=1-p^2\), and the mixed Gram matrix \((PV)^\dagger (1-P)V\) vanishes. Dividing by \(p\) and by \(\sqrt{1-p^2}\), whose square is \(1-p^2\) by Theorem 33.1.1, gives the Gram identities. The identities \(PG=G\) and \(PH=0\) follow from \(P^2=P\), and \(pG+\sqrt{1-p^2}\, H=PV+(1-P)V=V\).

Suppose \(V^\dagger V=1\) and \(P\) is an orthogonal projection. Then \(Q\) is unitary. If \(V^\dagger PV=\sin ^2\theta \, 1\) with \(0{\lt}\theta {\lt}\pi /2\), then the maps \(G,H\) of Definition 33.7.4 at \(p=\sin \theta \) satisfy, for every integer \(k\geq 0\),

\begin{align} V=V_\theta ,\qquad Q^kV=V_{\theta +2k\theta }. \end{align}

For an integer \(\ell \geq 1\) and \(\theta =\pi /(4\ell +2)\), \(Q^\ell V=(\sin \theta )^{-1}PV\). If instead \(V^\dagger PV=1\), then \(PV=V\).

Proof ▶

Unitarity of \(Q\) is Theorem 33.7.2. For \(0{\lt}\theta {\lt}\pi /2\) one has \(0{\lt}\sin \theta {\lt}1\) and \(\sqrt{1-\sin ^2\theta }=\cos \theta \), so Theorem 33.7.5 gives \(V=V_\theta \) together with the hypotheses of Theorem 33.7.3; since \(Q=Q_\theta \), that theorem gives the rotation identity and the value at \(\theta =\pi /(4\ell +2)\), which lies in \((0,\pi /2)\) for \(\ell \geq 1\). If \(V^\dagger PV=1\), the Gram matrix of \((1-P)V\) is \(V^\dagger V-V^\dagger PV=0\), so \((1-P)V=0\).

Definition 33.7.7 Attenuation by one binary flag
✓

For real \(t\) put \(s=\sqrt{1-t^2}\), and for \(V\in \mathbb {C}^{I\times M}\) and \(P\in \mathbb {C}^{I\times I}\) define

\begin{align} R_t=\begin{pmatrix} t & -s \\ s & t \end{pmatrix}, \qquad V_t=\begin{pmatrix} tV \\ sV \end{pmatrix}, \qquad P_t=\begin{pmatrix} P & 0 \\ 0 & 0 \end{pmatrix}. \end{align}

The two row blocks of \(V_t\) and \(P_t\) are the two values of a binary flag.

If \(t^2\leq 1\), then \(R_t\) is unitary, and \(V^\dagger V=1\) implies \(V_t^\dagger V_t=1\). If \(P\) is an orthogonal projection, so is \(P_t\). For all real \(t,p\), if \(V^\dagger PV=p^2\, 1\), then

\begin{align} V_t^\dagger P_tV_t=(tp)^2\, 1. \end{align}
Proof ▶

For \(t^2\leq 1\) the complex number \(z=t+is\) has \(|z|^2=t^2+s^2=1\), and \(R_t=R(z)\) is unitary by Theorem 33.2.7. Block multiplication gives \(V_t^\dagger V_t=(t^2+s^2)V^\dagger V\), with \(s^2=1-t^2\) by Theorem 33.1.1, and \(V_t^\dagger P_tV_t=t^2\, V^\dagger PV\). The matrix \(P_t\) is self-adjoint and idempotent when \(P\) is.

Definition 33.7.9 The number of amplification rounds
✓

For an integer \(r\geq 0\) define

\begin{align} \ell (r)=\lceil \pi r/4\rceil , \qquad \theta (r)=\frac{\pi }{4\ell (r)+2}. \end{align}

For every integer \(r\geq 0\), \(\ell (r)\leq r\) and \(\theta (r){\gt}0\). For \(r\geq 1\),

\begin{align} 1\leq \ell (r),\qquad \theta (r){\lt}\pi /2,\qquad \theta (r)\leq r^{-1},\qquad 0{\lt}\sin \theta (r)\leq r^{-1}. \end{align}
Proof ▶

Since \(\pi \leq 4\), \(\pi r/4\leq r\) and its ceiling is at most \(r\); for \(r\geq 1\) it is positive. The angle is positive, and for \(\ell (r)\geq 1\) it is below \(\pi /2\). From \(\ell (r)\geq \pi r/4\) follows \(4\ell (r)+2\geq \pi r+2\), so \(\theta (r)\leq 1/r\). Finally \(0{\lt}\sin \theta \leq \theta \) on \((0,\pi /2)\).