Quantum Information and Channels: A formalization blueprint

50 Circuits with measurements

A circuit of Chapter 45 may measure sites in the computational basis and choose its later layers by the outcomes. The measurement circuits of this chapter have unitary gates and onsite families that are unitaries or measurements; the outcomes are communicated to every later layer at no cost, the measurements and the onsite unitaries are free, and only the layers using a cell of positive cost are counted in the depth, as in the model of local circuits with classical communication of  [ 124 ] . A circuit implements a matrix on a set of vectors when, whatever the outcomes, it acts there as that matrix up to a scalar, and a vector is converted deterministically into another when every outcome gives a multiple of the second. Conversions compose with additive depths, and a deterministic conversion of unit vectors is an adaptive conversion of their density matrices in the sense of Chapter 49.

50.1 Measurement circuits and implementations

A Kraus family from \(\mathbb {C}^\alpha \) to \(\mathbb {C}^\beta \) is a local family of a measurement circuit if it consists of one unitary operator, or if its operators are \(|f(a)\rangle \langle a|\) for the elements \(a\) of \(\alpha \), indexed by its outcomes through a bijection, for a bijection \(f\colon \alpha \to \beta \): the measurement of the basis followed by a relabelling. A measurement circuit is a circuit of plain gates all of whose gates and onsite families are local families of a measurement circuit. Unitary families and the measurement of a basis are local families of a measurement circuit.

Lemma 50.1.2 Measurement circuits preserve the trace
✓

Every local family of a measurement circuit is trace-preserving. Hence every measurement circuit is an adaptive protocol of its depth.

Proof ▶

A unitary \(V\) has \(V^\dagger V=\mathbf{1}\). For the operators \(K_a=|f(a)\rangle \langle a|\), \(K_a^\dagger K_a=|a\rangle \langle a|\) and \(\sum _a|a\rangle \langle a|=\mathbf{1}\).

Definition 50.1.3 Implementation of a matrix
✓

A circuit \(c\) from \(X\) to \(Z\) implements a matrix \(W\) from \(\mathcal H_X\) to \(\mathcal H_Z\) on a set \(E\) of vectors if for every branch \(p\) of \(c\) and every \(v\in E\) there is \(z\in \mathbb {C}\) with \(K_p v=z\, Wv\), where \(K_p\) is the Kraus operator of the branch.

An implementation on \(E\) is one on every subset of \(E\). The empty circuit implements \(\mathbf{1}\), and a circuit all of whose Kraus operators are scalar multiples of \(U\) implements \(U\) on every set; in particular a unitary circuit implements its operator. If \(c\) implements \(W\) on \(E\), \(W\) maps \(E\) into \(E'\), and the continuation attached to every branch of \(c\) implements \(W'\) on \(E'\), then the composite circuit implements \(W'W\) on \(E\); in particular so does \(c\) followed by one circuit implementing \(W'\) on \(E'\).

Proof ▶

A branch of the composite is a branch \(p\) of \(c\) followed by a branch \(q\) of its continuation, with Kraus operator \(K'_qK_p\). For \(v\in E\), \(K_pv=zWv\) with \(Wv\in E'\), so \(K'_qK_pv=z\, K'_qWv=zz'\, W'Wv\).

Lemma 50.1.5 Branch scalars on a subspace
✓

Let \(c\) implement an isometry \(W\) on a linear subspace \(E\). Then for every branch \(p\) there is one \(z\in \mathbb {C}\), possibly zero, with \(K_pv=z\, Wv\) for all \(v\in E\).

Proof ▶

The map \(v\mapsto W^\dagger K_pv\) sends \(E\) to \(E\), since \(K_pv=z_vWv\) and \(W^\dagger W=\mathbf{1}\) give \(W^\dagger K_pv=z_vv\). A linear endomorphism under which every vector is an eigenvector is a scalar \(z\), and for \(v\neq 0\) the equation \(z_vv=zv\) gives \(z_v=z\).

Theorem 50.1.6 Removal of measurements on a subspace
✓

Let a circuit whose gates and onsite families are trace-preserving implement an isometry \(W\) on a linear subspace \(E\). Then its map sends \(|u\rangle \langle v|\) to \(W|u\rangle \langle v|W^\dagger \) for all \(u,v\in E\): averaged over the outcomes, the circuit acts on the operators supported in \(E\) as the coherent operation \(W\).

Proof ▶

By Lemma 50.1.5, \(K_p=z_pW\) on \(E\) for every branch \(p\), so the map sends \(|u\rangle \langle v|\) to \(\bigl(\sum _p|z_p|^2\bigr)W|u\rangle \langle v|W^\dagger \). If \(E=0\) both sides vanish. Otherwise, for \(w\in E\) nonzero, trace preservation gives \(\| w\| ^2=\sum _p\| K_pw\| ^2=\bigl(\sum _p|z_p|^2\bigr)\| Ww\| ^2=\bigl(\sum _p|z_p|^2\bigr)\| w\| ^2\), hence \(\sum _p|z_p|^2=1\).

Lemma 50.1.7 A nonzero branch
✓

If every gate and onsite family of a circuit is trace-preserving, then for every nonzero vector \(v\) some branch \(p\) has \(K_pv\neq 0\).

Proof ▶

The circuit is trace-preserving, so \(\sum _pK_p^\dagger K_p=\mathbf{1}\); if every \(K_pv\) vanished, \(v=\sum _pK_p^\dagger K_pv=0\).

For a region \(D\) and matrices \(V_{m,s}\) on \(\mathbb {C}^{X_s}\) indexed by the configurations \(m\) of \(D\) and the sites \(s\), the measurement of \(D\) with the corrections \(V\) is the circuit that measures \(D\) in the computational basis and then applies the onsite layer \(\bigotimes _sV_{m,s}\) chosen by the outcome \(m\). Its Kraus operator on a branch with outcome \(m\) is \((\bigotimes _sV_{m,s})P_m\), with \(P_m\) the projection onto \(|m\rangle \) placed on \(D\); its depth is \(0\), and it is a measurement circuit when the \(V_{m,s}\) are unitary.

Lemma 50.1.9 A round implementing a matrix
✓

Let every Kraus operator of the circuit \(u\) be a scalar multiple of \(U\). If for every configuration \(m\) of \(D\) there is \(z\in \mathbb {C}\) with \((\bigotimes _sV_{m,s})P_mUv=z\, Wv\) for every \(v\in E\), then \(u\) followed by the measurement of \(D\) with the corrections \(V\) implements \(W\) on \(E\).

Proof ▶

A branch of the composite has Kraus operator \(\mu (\bigotimes _sV_{m,s})P_mU\) for its outcome \(m\) and some \(\mu \in \mathbb {C}\).

Definition 50.1.10 Rounds of measurements
✓

A layer branches if it has two different Kraus indices, so that its outcome is a classical record on which later layers may depend. The number of rounds of measurements of a circuit is the largest number of branching layers along one of its branches: it counts the blocks of classical control.

The rounds of a composition are at most the sum of the rounds. A measurement with onsite corrections has at most one round, and a unitary circuit none.

Proof ▶

The number of rounds is a cost of layers accumulated along the most expensive branch, so it is subadditive by Theorem 45.4.3. A layer with a unique Kraus index does not branch.

50.2 Deterministic conversions

Definition 50.2.1 Deterministic conversion with measurements
✓

A nonzero vector \(\varphi \in \mathcal H_X\) is converted into \(\psi \in \mathcal H_Z\) in depth \(T\) if some measurement circuit from \(X\) to \(Z\) of depth at most \(T\) has, on every branch \(p\), \(K_p\varphi =z_p\psi \) for some \(z_p\in \mathbb {C}\). A preparation of \(\psi \) is a conversion from a basis configuration or from a product vector. The number of rounds of measurements is not bounded, whereas  [ 124 ] performs one round in its class \(\mathrm{QCcc}_\ell \) and notes a more general scheme with multiple rounds.

A vector converted from a nonzero vector is nonzero. A conversion in depth \(T\) is one in every depth \(T'\ge T\), every nonzero vector is converted into itself in depth \(0\), and a conversion into \(\psi \) is one into \(a\psi \) for \(a\neq 0\). Converting \(\varphi \) into \(\psi \) in depth \(T_1\) and \(\psi \) into \(\chi \) in depth \(T_2\) converts \(\varphi \) into \(\chi \) in depth \(T_1+T_2\). A measurement circuit of depth at most \(T\) implementing \(W\) on a set containing the nonzero vector \(\varphi \) converts \(\varphi \) into \(W\varphi \) in depth \(T\). A conversion from \((\bigotimes _sU_s)\varphi \), for unitaries \(U_s\), is a conversion from \(\varphi \) in the same depth; in particular a conversion from a product vector is one from a basis configuration. A unitary circuit of depth at most \(T\) with matrix \(U\) converts every nonzero \(\varphi \) into \(U\varphi \) in depth \(T\); hence a nonzero vector prepared in depth \(T\) by a unitary circuit is converted in depth \(T\) from a product vector.

Proof ▶

By Lemma 50.1.7 some branch has \(K_p\varphi \neq 0\), and \(K_p\varphi =z_p\psi \) forces \(\psi \neq 0\). For the composition, the branch \((p,q)\) of the composite circuit gives \(K'_qK_p\varphi =z_pK'_q\psi =z_pz'_q\chi \), and depths add by Theorem 45.4.3. The onsite unitaries form a layer of depth \(0\) placed before the circuit.

The map of a measurement circuit of depth at most \(T\), the average over its outcomes, is realised by an adaptive protocol of depth at most \(T\); on a pure input \(|v\rangle \langle v|\) it is \(\sum _pK_p|v\rangle \langle v|K_p^\dagger \). If the unit vector \(\varphi \) is converted into the unit vector \(\psi \) in depth \(T\), then \(|\varphi \rangle \langle \varphi |\) is converted adaptively into \(|\psi \rangle \langle \psi |\) in depth \(T\).

Proof ▶

The map of the circuit sends \(|\varphi \rangle \langle \varphi |\) to \(\sum _pK_p|\varphi \rangle \langle \varphi |K_p^\dagger =\bigl(\sum _p|z_p|^2\bigr)|\psi \rangle \langle \psi |\), and since the circuit preserves the trace, \(\sum _p|z_p|^2=1\).

Definition 50.2.4 One round of measurements
✓

A nonzero vector \(\varphi \) is converted into \(\psi \) with one round of measurements in depths \((T_1,T_2)\) if there are a unitary circuit with matrix \(U\) of depth at most \(T_1\), a region \(D\), unitaries \(V_{m,s}\), and a unitary circuit with matrix \(U'\) of depth at most \(T_2\), such that for every configuration \(m\) of \(D\), \(U'(\bigotimes _sV_{m,s})P_mU\varphi \) is a scalar multiple of \(\psi \). With \(T_2=0\) this is the class \(\mathrm{QCcc}_{T_1}\) of  [ 124 ] , the circuit of depth \(0\) being free local unitaries: a local circuit, measurements, and local unitaries chosen from all the outcomes. With \(T_2{\gt}0\) it is the composition of such a transformation with a circuit without measurements, as in the preparations of  [ 113 ] . Any site may be measured, in the computational basis, and the corrections are onsite unitaries applied once after the measurement.

A conversion with one round of measurements in depths \((T_1,T_2)\) is realised by a measurement circuit of depth at most \(T_1+T_2\) with at most one round of measurements; in particular it is a deterministic conversion in depth \(T_1+T_2\), and it is one round in all larger depths. Following it by a unitary circuit of depth at most \(T\) with matrix \(W\) gives a conversion into \(W\psi \) in depths \((T_1,T_2+T)\). A unitary circuit of depth at most \(T\) with matrix \(U\) converts every nonzero \(\varphi \) into \(U\varphi \) with one round in depths \((T,0)\), measuring no site.

Proof ▶

The first unitary circuit, the measurement of \(D\) with the corrections \(V\), and the second unitary circuit form a measurement circuit whose Kraus operator on a branch with outcome \(m\) is \(U'(\bigotimes _sV_{m,s})P_mU\), of depth at most \(T_1+0+T_2\). Measuring the empty region gives \(P_m=\mathbf{1}\).

50.3 GHZ-type states

The connected correlations of a GHZ-type state do not decay with distance, while those of a vector prepared by a unitary circuit of depth \(T\) vanish beyond its light cone; a GHZ-type state therefore needs a depth growing with the system size  [ 124 , Example 1 ] . With one round of measurements it is prepared in constant depth  [ 113 , paragraph “Long-range MPS using measurements” ] . In a weighted binary GHZ vector the connected correlation of operators on disjoint regions that leave one site unobserved is bounded by the product of the two sector weights, before and after a shallow circuit.

For a finite set of sites \(I\), a finite basis \(\beta \) at every site and \(\alpha \in \mathbb {C}^\beta \), the GHZ-type state on \(I\) is \(|\chi \rangle =\sum _{j\in \beta }\alpha _j|j\rangle ^{\otimes I}\), the weighted sum of the constant configurations; it is linear in \(\alpha \). For a site \(i_0\), \(\chi (s)=\alpha _{s_{i_0}}\) if all the values \(s_k\) are equal and \(\chi (s)=0\) otherwise.

Generalizing  [ 124 , Example 1 ] and  [ 113 , paragraph “Long-range MPS using measurements” ] , let \(M\geq 1\), let \(\beta \) be a finite abelian group, such as \(\mathbb Z_b\) for \(b\geq 1\), and let \(0\neq \alpha \in \mathbb {C}^\beta \). On the ring of \(2M\) sites with basis \(\beta \), with system sites \(2n\) and ancilla sites \(2n+1\) (\(0\le n{\lt}M\)), the vector \(|\chi _M\rangle _{\rm sys}\otimes |0\rangle ^{\otimes M}_{\rm anc}\) is converted from a nonzero product vector with one round of measurements, after a unitary circuit of depth \(2\). Every outcome gives exactly this vector.

Proof ▶

Start from \(\bigl(\sum _{i\in \beta }\alpha _i|i\rangle \bigr)_0\otimes \bigotimes _{n=1}^{M-1} \bigl(\sum _{i\in \beta }|i\rangle \bigr)_{2n}\otimes \bigotimes _{n=0}^{M-1}|0\rangle _{2n+1}\), which is nonzero since \(\alpha \neq 0\). The layer of shifts \(|k\rangle _{2n}|a\rangle _{2n+1}\mapsto |k\rangle _{2n}|a+k\rangle _{2n+1}\) and then the layer \(|a\rangle _{2n+1}|k\rangle _{2n+2}\mapsto |a-k\rangle _{2n+1}|k\rangle _{2n+2}\), both for \(0\le n{\lt}M-1\), act on the cells \(\{ k,k+1\} \) of the ring, each layer on pairwise disjoint cells; they are permutations of the configurations and produce

\begin{align} \sum _{k\in \beta ^M}\alpha _{k_0}\bigotimes _{n=0}^{M-1}|k_n\rangle _{2n} \bigotimes _{n=0}^{M-2}|k_n-k_{n+1}\rangle _{2n+1}\otimes |0\rangle _{2M-1}.\notag \end{align}

Measuring the ancillas \(2n+1\) (\(n{\lt}M-1\)) with outcomes \(m_n\in \beta \) fixes \(k_n=k_0-p_n\), where \(p_n=\sum _{j=0}^{n-1}m_j\), and the onsite shifts \(\bigotimes _{n=0}^{M-1}X^{p_n}_{2n}\otimes \bigotimes _{n=0}^{M-2}X^{-m_n}_{2n+1}\) give \(|\chi _M\rangle _{\rm sys}\otimes |0\rangle ^{\otimes M}_{\rm anc}\).

Let \(I\) be nonempty. Then \(\| \chi \| ^2=\sum _j|\alpha _j|^2\), and for a diagonal operator \(D\), \(\langle \chi |D|\chi \rangle =\sum _j|\alpha _j|^2\langle j^I|D|j^I\rangle \). The same holds for every operator supported on a region that leaves a site unobserved.

Proof ▶

Expanding \(|\chi \rangle =\sum _j\alpha _j|j^I\rangle \) gives \(\langle \chi |A|\chi \rangle =\sum _{i,j}\bar\alpha _i\alpha _j\langle i^I|A|j^I\rangle \). For \(i\neq j\) the two constant configurations differ at every site, in particular at the unobserved site outside the support of \(A\), or at any site for a diagonal \(A\), so the cross terms vanish. The norm is the case \(D=\mathbf1\).

Lemma 50.3.4 Separated correlations in a weighted GHZ vector
✓

Let \(|a|^2+|b|^2=1\) and \(\chi =a|0^I\rangle +b|1^I\rangle \). Let \(A,B\) be supported on disjoint regions whose union leaves a site unobserved, and let \(A_s=\langle s^I|A|s^I\rangle \) and \(B_s=\langle s^I|B|s^I\rangle \). Then

\begin{align} \langle \chi |AB|\chi \rangle -\langle \chi |A|\chi \rangle \langle \chi |B|\chi \rangle & =|a|^2|b|^2(A_0-A_1)(B_0-B_1),\notag \end{align}

and if \(A\) and \(B\) are unitary, its modulus is at most \(4|a|^2|b|^2\).

Proof ▶

By Lemma 50.3.3 the three expectations are classical averages over the two branches. Within each branch \(\langle s^I|AB|s^I\rangle =A_sB_s\) since the supports are disjoint; subtracting the product of the two averages and using \(|a|^2+|b|^2=1\) gives the formula. The diagonal entries of a unitary have modulus at most \(1\), so \(|A_0-A_1|,|B_0-B_1|\leq 2\).

Theorem 50.3.5 Weighted GHZ correlations after a shallow circuit
✓

On a geometry whose cells have positive cost, let \(U\) be a unitary circuit of depth at most \(T\), and let \(A,B\) be unitary operators supported on regions whose \(T\)-fold neighbourhoods are disjoint and leave a site unobserved. If \(|a|^2+|b|^2=1\), the connected correlation of \(A\) and \(B\) in \(U\bigl(a|0^I\rangle +b|1^I\rangle \bigr)\) has modulus at most \(4|a|^2|b|^2\).

Proof ▶

The correlations in \(U\chi \) are those of \(U^\dagger AU\) and \(U^\dagger BU\) in \(\chi \), and \(U^\dagger ABU=(U^\dagger AU)(U^\dagger BU)\). By the light cone, \(U^\dagger AU\) and \(U^\dagger BU\) are unitaries supported on the \(T\)-fold neighbourhoods of the supports of \(A\) and \(B\), and Lemma 50.3.4 applies.

50.4 Teleportation and long-range gates

Registers that are far apart “can be teleported at neighboring registers with a constant overhead” by “creating nearest-neighbor entangled pairs, then performing simultaneous measurements, and correcting (without postselection) based on the measurement outcomes” [ 113 ] . This section proves this for qudits of any dimension: one hop moves the content of a site across two sites through an entangled pair on two cells of any geometry, any number of sites is moved at once along chains of hops of any length in depth at most \(2\), and on the ring two-site gates joining the sites \(a\) and \(a+2L+1\), on pairwise disjoint stretches \(\{ a,\dots ,a+2L+1\} \), are applied in depth at most \(5\) for every \(L\). Gates at even separation, or on overlapping stretches, are not covered. Registers of \(s\ge 1\) consecutive sites are teleported site by site, and a layer of gates on pairs of distant registers is applied in depth at most \(4s+K\) when the gates on the registers, brought next to each other, form a unitary circuit of depth at most \(K\). The ancilla teleported through entangled pairs between neighbouring sites by local operations and classical communication in [ 124 ] is the case of one hop.

Throughout, the local labels are \(\mathbb Z_d=\{ 0,\dots ,d-1\} \) with \(d\ge 1\), \(\zeta =e^{2\pi i/d}\), and \(F_{ab}=d^{-1/2}\zeta ^{ab}\) is the Fourier matrix.

A vector \(v\) on the configurations of qudits on the sites \(S\) has \(|0\rangle \) on \(D\subseteq S\) if \(v(x)=0\) whenever \(x_i\ne 0\) for some \(i\in D\). These vectors form a linear subspace, which shrinks as \(D\) grows.

Let \(P_{D,m}\) be the matrix unit \(|m\rangle \langle m|\) of a configuration \(m\) of \(D\), placed on \(D\), and let \(P_\pi \) act by \((P_\pi v)(x)=v(x\circ \pi )\).

  1. \((P_{D,m}v)(x)=v(x)\) if \(x\) restricts to \(m\) on \(D\), and \(0\) otherwise; for the restrictions of one configuration \(z\), \(P_{D\cup D',z}=P_{D,z}P_{D',z}\), and these projections commute.

  2. The operator \(u\) at the site \(t\) acts by \((u_tv)(x)=\sum _ju_{x_t,j}\, v(x[t\mapsto j])\).

  3. A vector has \(|0\rangle \) on \(D\) if and only if \(P_{D,0}\) fixes it; hence every operator supported on a region disjoint from \(D\), in particular a one-site operator at a site outside \(D\), keeps \(|0\rangle \) on \(D\).

  4. If \(v\) has \(|0\rangle \) on \(D\), then \(P_\pi v\) has \(|0\rangle \) on \(\pi (D)\), and on \(D'\) whenever \(\pi \) maps no site outside \(D\) into \(D'\).

  5. \(P_\pi \bigotimes _ig_i=\bigl(\bigotimes _ig_{\pi ^{-1}(i)}\bigr)P_\pi \).

Proof ▶

Items (1), (2), (4) and (5) follow by evaluating at a configuration. For (3), \(P_{D,0}\) is supported on \(D\), so it commutes with every operator supported on a disjoint region.

A hop on a geometry consists of three distinct sites \(c,e,f\) and two cells whose regions are \(\{ e,f\} \) and \(\{ c,e\} \). Its first gate \(G_1\), on \(\{ e,f\} \), applies \(F\) at \(e\) and then \(|a\rangle _e|b\rangle _f\mapsto |a\rangle _e|b+a\rangle _f\); its second gate \(G_2\), on \(\{ c,e\} \), applies \(|a\rangle _c|b\rangle _e\mapsto |a\rangle _c|b-a\rangle _e\) and then \(F\) at \(c\). Both are unitary. For a configuration \(z\), the hop before the correction is \(P_{\{ c,e\} ,z}G_2G_1\), and its frame consists of the one-site unitaries \(|q\rangle \mapsto |q+z_c\rangle \) at \(c\), \(|q\rangle \mapsto |q+z_e\rangle \) at \(e\), \(X^{z_e}Z^{z_c}\colon |q\rangle \mapsto \zeta ^{z_cq}|q+z_e\rangle \) at \(f\), and the identity elsewhere.

Lemma 50.4.4 One hop
✓

On every vector \(v\) with \(|0\rangle \) on \(\{ e,f\} \),

\[ P_{\{ c,e\} ,z}G_2G_1v=\frac1d\Bigl(\bigotimes _i\Phi _i\Bigr)P_{(c\, f)}v, \]

where \(\Phi \) is the frame of the hop for \(z\) and \((c\, f)\) exchanges \(c\) and \(f\).

Proof ▶

On \(|0\rangle _e|0\rangle _f\), the gate \(G_1\) prepares \(d^{-1/2}\sum _j|j\rangle _e|j\rangle _f\), so \((G_1v)(w)=d^{-1/2}v(w[e\mapsto 0,f\mapsto w_f-w_e])\). Applying \(G_2\) gives \((G_2G_1v)(y)=F_{y_c,\, y_f-y_e}\, d^{-1/2}\, v(y[c\mapsto y_f-y_e,e\mapsto 0,f\mapsto 0])\). For \((y_c,y_e)=(z_c,z_e)\) the amplitude is \(d^{-1}\zeta ^{z_c(y_f-z_e)}\), the value read at \(c\) is the label \(y_f-z_e\) carried to \(f\), and the right-hand side evaluates to the same; otherwise both sides vanish, the right-hand side because \(v\) is read at a configuration with a nonzero label at \(e\) or \(f\).

For a list of operators \(G_i\) supported on pairwise disjoint nonempty cells, the layer with, on each of these cells, the matrix whose placement is the corresponding \(G_i\), and the identity elsewhere, has the Kraus operator \(\prod _iG_i\), the product along the list. It is unitary when the \(G_i\) are.

A list of hops \((h_1,\dots ,h_H)\), the most recent first, is valid if for every \(j{\lt}k\) the sites \(e_j,f_j\) are not sites of \(h_k\) and \(c_j\) is neither \(c_k\) nor \(e_k\); the site \(c_j\) may be \(f_k\), so hops chain as \(c_k\to f_k=c_j\to f_j\). For a valid list the cells \(\{ e_j,f_j\} \) are pairwise disjoint, and so are the cells \(\{ c_j,e_j\} \): the first gates of all hops form one unitary layer, and so do the second gates. The permutation of sites of the list is \((c_1\, f_1)\cdots (c_H\, f_H)\); it fixes every site of no hop, so \(P_\pi \) keeps \(|0\rangle \) on any set of sites met by no hop.

For a valid list of \(H\) hops and a configuration \(z\), there are one-site unitaries \(\Phi _i\), equal to the identity off the sites of the hops, such that on every vector \(v\) with \(|0\rangle \) at the sites \(e_j,f_j\) of all hops

\[ P_{M,z}\Bigl(\prod _jG_{2,h_j}\Bigr)\Bigl(\prod _jG_{1,h_j}\Bigr)v =d^{-H}\Bigl(\bigotimes _i\Phi _i\Bigr)P_\pi v, \]

\(M\) the set of the sites \(c_j,e_j\) and \(\pi \) the permutation of sites of the list.

Proof ▶

By induction on the list. The first gate of \(h_1\) commutes with the second gates of the later hops, whose sites it does not meet, and the projection onto the later outcomes commutes with the operator of \(h_1\), so the operator of the list is that of \(h_1\) times that of the rest. The frame of the rest is split into its unitary at \(c_1\) and the others; the others commute with the operator of \(h_1\), the unitary at \(c_1\) keeps \(|0\rangle \) on \(\{ e_1,f_1\} \), and Lemma 50.4.4 moves it to \(f_1\) through the exchange \((c_1\, f_1)\).

For a valid list of \(H\) hops and a unitary circuit \(u\) with operator \(U\), the teleportation round applies \(u\), the layer of the first gates and the layer of the second gates of the hops, measures the sites \(c_j,e_j\), and corrects by the inverse of the frame of Lemma 50.4.7 for the outcome. It is a measurement circuit of depth at most \(\operatorname {depth}(u)+2\), whatever the number and the lengths of the chains, and it implements \(P_\pi U\) on the vectors \(v\) such that \(Uv\) has \(|0\rangle \) at the sites \(e_j,f_j\) of all hops, with the scalar \(d^{-H}\) on every branch.

Proof ▶

The unitary part of the round has the operator \(\bigl(\prod _jG_{2,h_j}\bigr)\bigl(\prod _jG_{1,h_j}\bigr)U\). For the outcome \(m\), extended by \(0\) to a configuration \(z\), the measurement projection is \(P_{M,z}\), and by Lemma 50.4.7 the corrected operator maps \(v\) to \((\bigotimes _i\Phi _i)^\dagger d^{-H}(\bigotimes _i\Phi _i)P_\pi Uv=d^{-H}P_\pi Uv\). Lemma 50.1.9 concludes.

Lemma 50.4.9 Gates conjugated by teleportation
✓

For valid lists of hops \(\mathcal T\) and \(\mathcal B\) and a unitary circuit with operator \(U\), the round teleporting along \(\mathcal T\) followed by the round applying the circuit and teleporting along \(\mathcal B\) implements \(P_{\mathcal B}UP_{\mathcal T}\) on the vectors \(v\) with \(|0\rangle \) at the sites \(e,f\) of \(\mathcal T\) such that \(UP_{\mathcal T}v\) has \(|0\rangle \) at the sites \(e,f\) of \(\mathcal B\).

Proof ▶

Theorem 50.4.8 for both rounds, the first after the empty circuit, composed by Lemma 50.1.4.

On the ring of \(N\) sites, with cells \(\{ k,k+1\} \), let \(2L{\lt}N\). The forward chain from \(a\) consists of the hops \((a+2j,a+2j+1,a+2j+2)\), \(j=L-1,\dots ,0\), and the backward chain of the hops \((a+2j+2,a+2j+1,a+2j)\), \(j=0,\dots ,L-1\). Both are valid, their sites lie in \(\{ a,\dots ,a+2L\} \), and their permutations of sites are inverse to each other; the forward one maps \(a\) to \(a+2L\) and fixes \(a+j\) for \(2L{\lt}j{\lt}N\). The sites \(e,f\) of the forward chain lie in \(\{ a+1,\dots ,a+2L\} \) and those of the backward chain in \(\{ a,\dots ,a+2L-1\} \), and if \(v\) has \(|0\rangle \) on \(\{ a+1,\dots ,a+2L\} \), the forward chain moves it to a vector with \(|0\rangle \) on \(\{ a,\dots ,a+2L-1\} \).

Proof ▶

The sites \(a+j\), \(0\le j{\lt}N\), are distinct. The transpositions \((a+2j\; \; a+2j+2)\), \(j=0,\dots ,L-1\), move \(a\) to \(a+2L\) and shift \(\{ a+1,\dots ,a+2L\} \) onto \(\{ a,\dots ,a+2L-1\} \), and the backward chain applies them in the reverse order.

If valid lists of hops \(\mathcal L_g\) have their sites in pairwise disjoint sets \(S_g\), their concatenation is valid, and its permutation of sites agrees with that of \(\mathcal L_g\) on \(S_g\) and fixes every site outside \(\bigcup _gS_g\).

Proof ▶

Hops on disjoint sets of sites satisfy the validity condition in either order, and the permutation of sites of each \(\mathcal L_g\) maps \(S_g\) into itself and fixes the other sites.

Theorem 50.4.12 A layer of distant gates in depth five with measurements
✓
#

On the ring of \(N\) sites, let \(u_1,\dots ,u_n\) be two-site unitaries on the pairs \(\{ a_r,a_r+2L_r+1\} \), \(2L_r+1{\lt}N\), at odd separation, whose stretches \(\{ a_r,\dots ,a_r+2L_r+1\} \) are pairwise disjoint. A measurement circuit of depth at most \(5\) implements \(\prod _ru_r\) on the vectors with \(|0\rangle \) at the sites \(a_r+1,\dots ,a_r+2L_r\) of every \(r\), without postselection.

Proof ▶

By Lemmas 50.4.10 and 50.4.11, the concatenated forward chains \(\mathcal T\) from the sites \(a_r\) and the concatenated backward chains \(\mathcal B\) are valid with \(P_{\mathcal B}=P_{\mathcal T}^{-1}\), and \(P_{\mathcal T}v\) has \(|0\rangle \) at the sites \(a_r,\dots ,a_r+2L_r-1\), which the layer \(G=\prod _r(u_r)_{\{ a_r+2L_r,\, a_r+2L_r+1\} }\) on neighbouring pairs keeps. By Lemma 50.4.9, the round of \(\mathcal T\) followed by the round of \(G\) and \(\mathcal B\), of depths at most \(2\) and \(3\), implements \(P_{\mathcal T}^{-1}GP_{\mathcal T}\), which is \(\prod _r(u_r)_{\{ a_r,\, a_r+2L_r+1\} }\) by Lemma 34.5.6, since \(P_{\mathcal B}\) maps \(a_r+2L_r\) to \(a_r\) and fixes \(a_r+2L_r+1\).

Lemma 50.4.14 Teleporting registers site by site
✓
#

Let \(g_1,\dots ,g_n\) be register gates with pairwise disjoint stretches and \(s\ge 1\). For \(t=s-1,\dots ,0\), the round of the forward chains from the sites \(a_r+t\) teleports \(a_r+t\) to \(a_r+2L_r+t\) and moves \(|0\rangle \) from \(\bigcup _rZ_{r,t+1}\) to \(\bigcup _rZ_{r,t}\). The \(s\) forward rounds form a measurement circuit of depth at most \(2s\) which implements the composite \(P\) of their permutations of sites on the vectors with \(|0\rangle \) on \(\bigcup _rZ_{r,s}\), and \(P\) moves these vectors to vectors with \(|0\rangle \) on \(\bigcup _rZ_{r,0}\); the \(s\) backward rounds, for \(t=0,\dots ,s-1\), form a measurement circuit of depth at most \(2s\) which implements \(P^{-1}\) on the vectors with \(|0\rangle \) on \(\bigcup _rZ_{r,0}\). The composite \(P\) maps the sites of the two registers of \(g_r\) to its consecutive sites.

Proof ▶

By Lemmas 50.4.10 and 50.4.11, each round is valid, requires \(|0\rangle \) on \(\bigcup _rZ_{r,t+1}\), and maps no site outside \(\bigcup _rZ_{r,t+1}\) into \(\bigcup _rZ_{r,t}\). The rounds compose by Theorem 50.4.8 and Lemma 50.1.4; by induction on \(t\), the forward rounds move \(a_r+u\) to \(a_r+2L_r+u\) for \(u{\lt}t\) and fix \(a_r+j\) for \(j\ge t+2L_r\) in the stretch.

Let \(g_1,\dots ,g_n\) be register gates with pairwise disjoint stretches, and let the product of their local gates be the operator of a unitary circuit of depth at most \(K\) on the ring. Then a measurement circuit of depth at most \(4s+K\) implements \(\prod _rg_r\) on the vectors with \(|0\rangle \) on the interiors of all \(g_r\), without postselection. Such a circuit exists when every \(X_r\) is a product of gates of total cost at most \(K\) on neighbouring sites of the open chain of \(2s\) sites.

Proof ▶

The local gates are supported outside \(\bigcup _rZ_{r,0}\) and keep \(|0\rangle \) there. The \(s\) forward rounds, the unitary circuit and the \(s\) backward rounds of Lemma 50.4.14 compose by Lemma 50.1.4 to an implementation of \(P^{-1}\bigl(\prod _r\mathrm{place}_{\mathrm{local}}(X_r)\bigr)P\), which is \(\prod _rg_r\) by Lemma 34.5.6, in depth at most \(2s+K+2s\). For the last claim, each product of gates on the open chain placed on the consecutive sites of \(g_r\) is a unitary circuit of depth at most \(K\) inside them, and circuits inside pairwise disjoint regions run in the same layers.

50.5 Reflections with a clean scratch register

In this section every site has the levels \(0,1,\ldots ,d-1\), added modulo \(d\). A register of \(a\) data sites is followed by \(a\) scratch sites, and a configuration of the \(2a\) sites is a pair \((x,y)\) of a data configuration \(x\) and a scratch configuration \(y\); the scratch is clean when \(y=0\). A reversible network of controlled increments computes in the scratch register whether the data are zero, a phase is applied to the last scratch site, and the network is undone. This reflects the zero data configuration and returns the scratch to zero on every data input.

For a data configuration \(x\) and \(k\geq 0\), let \(b_k(x)\) be the level \(1\) if \(x_i=0\) for every \(i{\lt}k\), and the level \(0\) otherwise. For \(0\leq j{\lt}a\), the increment \(c_j(x,y)\) is \(1\) if \(x_j=0\) and either \(j=0\) or \(y_{j-1}=1\), and \(0\) otherwise. Step \(j\) is the map \(T_j\) adding \(c_j(x,y)\) to the scratch site \(j\) and leaving every other site unchanged; it reads and changes only the data site \(j\) and the scratch sites \(j-1\) and \(j\) (only the data site \(j\) and the scratch site \(j\) when \(j=0\)). The conjunction of the first \(k\) steps is \(C_k=T_{k-1}\cdots T_1T_0\), steps beyond the register being absent.

The increment \(c_j\) does not depend on the scratch site \(j\), so each \(T_j\) is a permutation of all configurations, with inverse subtracting \(c_j\). Let \(d\geq 2\). For every data configuration \(x\) and \(k\leq a\),

\begin{align} C_k(x,0)=(x,y),\qquad y_j= \begin{cases} b_{j+1}(x) & j{\lt}k, \\ 0 & j\geq k. \end{cases}\end{align}

In particular, for \(a\geq 1\) the last scratch site of \(C_a(x,0)\) is \(1\) if and only if \(x=0\).

Proof ▶

The increment reads the data site \(j\) and the scratch site \(j-1\neq j\) only, so subtracting it undoes \(T_j\). Since \(d\geq 2\), the levels \(0\) and \(1\) are distinct, and \(b_k(x)=1\) exactly when \(x_i=0\) for all \(i{\lt}k\). By induction on \(k\), before step \(k\) the scratch site \(k\) is still \(0\) and the scratch site \(k-1\) holds \(b_k(x)\), so \(c_k=1\) exactly when \(x_i=0\) for all \(i\leq k\), and \(T_k\) writes \(b_{k+1}(x)\) into the scratch site \(k\) without changing any other site. The last scratch site of \(C_a(x,0)\) holds \(b_a(x)\).

Lemma 50.5.3 Diagonal operators
✓

A diagonal matrix whose diagonal entries are \(\pm 1\) is unitary. A diagonal operator on a system of sites whose entry at \(\sigma \) depends only on \(\sigma |_D\) is supported on \(D\).

Proof ▶

The square of a diagonal matrix of signs is \(\mathbf1\). A diagonal entry \(A_{\sigma \tau }\) vanishes unless \(\sigma =\tau \); if \(\sigma |_D=\sigma '|_D\), \(\tau |_D=\tau '|_D\) and \(\sigma _v=\tau _v\), \(\sigma '_v=\tau '_v\) for \(v\notin D\), then \(\sigma =\tau \) if and only if \(\sigma '=\tau '\), and \(A_{\sigma \sigma }=A_{\sigma '\sigma '}\).

The permutation matrix of step \(j\) is supported on the at most three sites read and changed by the step.

Proof ▶

The matrix element between \(\sigma \) and \(\tau \) is \(1\) if \(T_j\sigma =\tau \) and \(0\) otherwise. Outside the sites of the step, \(T_j\sigma \) agrees with \(\sigma \), and on them it depends only on \(\sigma \) there, so the element vanishes when \(\sigma \) and \(\tau \) differ outside these sites, and otherwise depends only on their parts on these sites.

Definition 50.5.5 Zero-register reflection
✓

For \(a\geq 1\), let \(\Phi \) be the diagonal operator with entry \(-1\) at the configurations whose last scratch site is \(1\) and \(1\) elsewhere, and let \(P\) be the permutation matrix of \(C_a\), sending the basis vector \(|\sigma \rangle \) to \(|C_a^{-1}\sigma \rangle \). The zero-register reflection is \(R=P\, \Phi \, P^\dagger \): compute the conjunction, apply the phase, and undo the conjunction.

The phase \(\Phi \) is supported on the last scratch site. The reflection \(R\) is the diagonal operator with entry \(-1\) at the configurations \(\sigma \) such that the last scratch site of \(C_a\sigma \) is \(1\), and \(1\) elsewhere; it is unitary. Let \(d\geq 2\). For every data configuration \(x\), \(R|x,0\rangle =-|x,0\rangle \) if \(x=0\) and \(R|x,0\rangle =|x,0\rangle \) otherwise. Equivalently, for the basis inclusion \(J|x\rangle =|x,0\rangle \),

\begin{align} RJ=J\bigl(\mathbf1-2|0\rangle \! \langle 0|\bigr). \end{align}
Proof ▶

The support of \(\Phi \) is Lemma 50.5.3. Conjugating the diagonal operator \(\Phi \) by the permutation matrix \(P\) gives the diagonal operator with entry \(\Phi _{C_a\sigma ,C_a\sigma }\) at \(\sigma \), whose entries are signs, hence unitary. By Lemma 50.5.2 the last scratch site of \(C_a(x,0)\) is \(1\) exactly when \(x=0\), which gives the action on \(|x,0\rangle \). The identity \(RJ=J(\mathbf1-2|0\rangle \! \langle 0|)\) compares the columns of both sides at each \(x\).

Definition 50.5.7 Selected-flags reflection
✓
#

For a family \(s_0,\ldots ,s_{a-1}\) of sites of a register of \(n\) sites, the selected-flags reflection \(Z_s\) is the diagonal operator with entry \(-1\) at the configurations \(x\) with \(x_{s_j}=0\) for all \(j\), and \(1\) elsewhere.

The reflection \(Z_s\) is unitary, equal to \(\mathbf1-2Q_s\) for the diagonal projection \(Q_s\) onto the configurations whose selected flags are all \(0\), and supported on the selected sites, whatever the other sites hold. For the empty family, \(Z_s=-\mathbf1\).

Proof ▶

The diagonal entries are \(1-2\cdot 1=-1\) on the configurations with zero flags and \(1-2\cdot 0=1\) elsewhere. Unitarity and support are Lemma 50.5.3. For the empty family every configuration has all its selected flags zero.

Definition 50.5.9 Zero-register reflection on selected sites
✓

Let \(s\) be injective with \(a\geq 1\), and append a pool of \(A\geq a\) scratch sites to the register of \(n\) sites. Let \(e\) be the injection of the \(2a\) sites of the zero register sending the data site \(j\) to \(s_j\) and the scratch site \(j\) to the pool site \(j\). The zero-register reflection on the selected sites, \(R_s\), is the diagonal operator on the \(n+A\) sites with entry at \(\sigma \) the entry of \(R\) at \(\sigma \circ e\).

The matrix element of \(R_s\) between \(\sigma \) and \(\tau \) is \(R_{\sigma \circ e,\tau \circ e}\) if \(\sigma \) and \(\tau \) agree outside the image of \(e\), and \(0\) otherwise: \(R_s\) is \(R\) on the selected flags and the first \(a\) pool sites and the identity elsewhere. It is unitary and supported on the image of \(e\). Let \(d\geq 2\). For every configuration \(x\) of the \(n\) sites, \(R_s|x,0\rangle =-|x,0\rangle \) if all selected flags of \(x\) are \(0\) and \(R_s|x,0\rangle =|x,0\rangle \) otherwise; the whole pool, including its unused sites, returns to \(0\). Equivalently, \(R_sJ=JZ_s\) for the basis inclusion \(J|x\rangle =|x,0\rangle \).

Proof ▶

By Theorem 50.5.6, \(R\) is diagonal, so the matrix element of \(R_s\) vanishes unless \(\sigma =\tau \); if \(\sigma \neq \tau \) agree outside the image of \(e\), then \(\sigma \circ e\neq \tau \circ e\) and \(R_{\sigma \circ e,\tau \circ e}=0\). Unitarity and support are Lemma 50.5.3. For \(\sigma =(x,0)\), the configuration \(\sigma \circ e\) is the pair of the selected flags of \(x\) and the clean scratch, and Theorem 50.5.6 gives the phase.

Definition 50.5.11 Inclusion with zero flags
✓
#

For a family \(s\) of sites of a register of \(n\) sites, the zero-flag inclusion assigns to a configuration \(u\) of the sites outside the family the configuration equal to \(u\) outside the family and to \(0\) at its sites. Denote its basis inclusion by \(E_s\).

For an injective map \(e\) of finite sets, \(J_eJ_e^\dagger \) is the diagonal indicator of the image of \(e\). The image of the zero-flag inclusion is the set of configurations whose selected flags are all \(0\). Hence \(E_sE_s^\dagger =Q_s\), an orthogonal projection, and the selected-flags reflection is the reflection about the range of \(E_s\):

\begin{align} Z_s=\mathbf1-2E_sE_s^\dagger . \end{align}
Proof ▶

The entry \((J_eJ_e^\dagger )_{xy}\) counts the \(k\) with \(x=e(k)\) and \(y=e(k)\), which is \(1\) if \(x=y\) lies in the image and \(0\) otherwise. An included configuration has zero flags; conversely a configuration with zero flags is the inclusion of its restriction to the other sites. Since \(E_s\) is an isometry, \(E_sE_s^\dagger \) is an orthogonal projection, and Lemma 50.5.8 gives \(Z_s=\mathbf1-2Q_s\).

Lemma 50.5.13 Unitaries on a set of sites
✓

On the geometry of sites and ordered pairs, with pairs of cost \(c_2\), a unitary supported on a nonempty set \(T\) of sites is a product of gates of total cost at most \(N_Tc_2\), where \(N_T\) is the two-site universality count of the sites of \(T\); it depends only on the bases at the sites of \(T\).

Proof ▶

The unitary is the placement on \(T\) of a unitary on the configurations of \(T\). By two-site universality on the sites of \(T\), with the pairs inside \(T\) as gates, that unitary is a product of gates of cost at most \(N_Tc_2\), and placing the circuit on \(T\) keeps its cost.

Let \(d\geq 2\) and \(a\geq 1\). With pairs of cost \(1\), each conjunction step is a product of at most \(6(d^3)^4\) gates on sites and ordered pairs, the conjunction of the first \(k\) steps of at most \(6k(d^3)^4\), and the zero-register reflection of at most \(12(d^3)^4a\). On the open chain of the \(2a\) sites the reflection is a product of at most \(2\cdot 2a\cdot 12(d^3)^4a\) gates on neighbouring sites.

Proof ▶

A step is supported on at most three sites, and the universality count of three sites of dimension \(d\) is at most \(6(d^3)^4\). The conjunction is the product of its steps, the scratch phase acts on one site and is free, and the reflection is the conjunction, the phase and the inverse conjunction. Routing each gate on a pair by swaps on the open chain of \(m\) sites costs at most \(2m\) neighbouring gates.

Let \(d\geq 2\), let \(s\) be an injective family of \(a\) sites of a register of \(n\) sites, and append a pool of \(A\geq a\) sites. With pairs of cost \(1\), the zero-register reflection on the selected sites is a product of at most \(12(d^3)^4a\) gates on sites and ordered pairs of the \(n+A\) sites, and of at most \(2(n+A)\cdot 12(d^3)^4a\) gates on neighbouring sites of the open chain. Hence a product of at most that many neighbouring gates implements the selected-flags reflection \(Z_s=\mathbf1-2E_sE_s^\dagger \) with the whole pool as clean workspace; for \(a=0\) the global phase \(-\mathbf1\) does so at no cost.

Proof ▶

An injection of sites carries the cells on sites and ordered pairs of the zero register to cells of the same cost of the \(n+A\) sites. Relabelling the circuit of Theorem 50.5.14 along the injection of Definition 50.5.9 and placing it on its image gives a circuit of the same count, whose operator has the matrix elements of Theorem 50.5.10. Routing gives the count on the chain, and Theorem 50.5.10 and Lemma 50.5.12 give the clean implementations.