Skip to content

Phase kickback is the coherent conversion of a target eigenvalue into a relative phase on a selector register. Nothing travels backward through the circuit: one joint unitary acts on both registers, the target returns on a common ray, and the selector branches retain the eigenvalue phases. Those phases become useful only when a later interference experiment makes their differences observable.

We will derive the eigenstate condition, convert Boolean and modular-addition oracles into phases, and read those phases through interference. The controlled operation is assumed to be available; constructing that operation and proving an algorithm’s advantage are separate questions.

Helpful background. Controlled operations explains coherent selector branches and their relative phases.

Let a selector register have orthonormal basis {∣x⟩:x∈X}\{|x\rangle:x\in X\}, and let VxV_x be a unitary on a target register. The block-controlled operator is

W=∑x∈X∣x⟩⟨x∣⊗Vx.W = \sum_{x\in X} |x\rangle\langle x|\otimes V_x.

For a selector state and normalized target

∣ψ⟩=∑xαx∣x⟩,⟨η∣η⟩=1,|\psi\rangle = \sum_x\alpha_x|x\rangle, \qquad \langle\eta|\eta\rangle=1,

suppose every populated branch sees the same target as an eigenstate:

Vx∣η⟩=eiθx∣η⟩wheneverαx≠0.V_x|\eta\rangle = e^{i\theta_x}|\eta\rangle \quad\text{whenever}\quad \alpha_x\ne0.

Linearity then gives

W∣ψ⟩∣η⟩=∑xαx∣x⟩Vx∣η⟩=(∑xαxeiθx∣x⟩)∣η⟩.\begin{aligned} W|\psi\rangle|\eta\rangle &= \sum_x\alpha_x|x\rangle V_x|\eta\rangle\\ &= \left( \sum_x\alpha_xe^{i\theta_x}|x\rangle \right)|\eta\rangle. \end{aligned}

Thus the target returns exactly, while the selector undergoes the diagonal unitary

Dθ=∑xeiθx∣x⟩⟨x∣.D_\theta = \sum_xe^{i\theta_x}|x\rangle\langle x|.

The important step is the common target factor: after the operation, no target state distinguishes one selector branch from another. The selector can therefore retain a coherent phase pattern.

Eigenstates, Selectors, and Relative Phase

Section titled “Eigenstates, Selectors, and Relative Phase”

The common-eigenstate condition is sufficient for exact target return. A slightly weaker condition is sufficient only for factorization. If there is one normalized state ∣ξ⟩|\xi\rangle such that

Vx∣η⟩=eiθx∣ξ⟩V_x|\eta\rangle = e^{i\theta_x}|\xi\rangle

on every populated branch, then

W∣ψ⟩∣η⟩=Dθ∣ψ⟩∣ξ⟩.W|\psi\rangle|\eta\rangle = D_\theta|\psi\rangle|\xi\rangle.

The registers factor, but the target has changed from ∣η⟩|\eta\rangle to ∣ξ⟩|\xi\rangle. Calling this target return would be inaccurate unless the two states lie on the same ray. If an identity branch is populated, that branch outputs ∣η⟩|\eta\rangle, so factorization already fixes the common output ray to the input target ray.

For a generic target, tracing it out gives the selector state

ρD′=∑x,x′αxαx′∗⟨η∣Vx′†Vx∣η⟩∣x⟩⟨x′∣.\rho_D' = \sum_{x,x'} \alpha_x\alpha_{x'}^* \langle\eta|V_{x'}^\dagger V_x|\eta\rangle |x\rangle\langle x'|.

The matrix of target overlaps is a Gram matrix. Under exact kickback its entries are

⟨η∣Vx′†Vx∣η⟩=ei(θx−θx′).\langle\eta|V_{x'}^\dagger V_x|\eta\rangle = e^{i(\theta_x-\theta_{x'})}.

A magnitude below one suppresses selector coherence and signals correlation with the target. A unit-modulus entry with the wrong argument is instead a coherent phase error. Computational-basis probabilities and target-return probability alone can miss both distinctions.

For one control and one target unitary,

C1(U)(a∣0⟩+b∣1⟩)∣u⟩=(a∣0⟩+beiθ∣1⟩)∣u⟩,U∣u⟩=eiθ∣u⟩.C_1(U) \left(a|0\rangle+b|1\rangle\right)|u\rangle = \left(a|0\rangle+be^{i\theta}|1\rangle\right)|u\rangle, \qquad U|u\rangle=e^{i\theta}|u\rangle.

Only phase differences among populated branches are observable. A common shift θx↦θx+γ\theta_x\mapsto\theta_x+\gamma changes the whole joint state by one global phase, but rephasing only one controlled branch changes DθD_\theta. In particular,

C1(eiγU)=(P(γ)⊗I)C1(U),P(γ)=∣0⟩⟨0∣+eiγ∣1⟩⟨1∣.C_1(e^{i\gamma}U) = \left(P(\gamma)\otimes I\right)C_1(U), \qquad P(\gamma) = |0\rangle\langle0|+e^{i\gamma}|1\rangle\langle1|.

The phase of an isolated state vector remains ray redundancy, as explained by Rays and Global Phase. The controlled construction promotes a target-operator phase into a selector-relative phase; it does not make an independently observable global phase. Nor does the existence of the block matrix imply that an unknown channel automatically supplies coherent controlled access.

A clean Boolean XOR oracle has the exact interface

Of∣x⟩∣y⟩=∣x⟩∣y⊕f(x)⟩,f(x)∈{0,1}.O_f|x\rangle|y\rangle = |x\rangle|y\mathbin{\oplus}f(x)\rangle, \qquad f(x)\in\{0,1\}.

The target operation on branch xx is Xf(x)X^{f(x)}. Define the two XX eigenstates

∣χs⟩=∣0⟩+(−1)s∣1⟩2,s∈{0,1},|\chi_s\rangle = \frac{|0\rangle+(-1)^s|1\rangle}{\sqrt2}, \qquad s\in\{0,1\},

so that

X∣χs⟩=(−1)s∣χs⟩.X|\chi_s\rangle = (-1)^s|\chi_s\rangle.

The oracle therefore acts as

Of∣x⟩∣χs⟩=(−1)sf(x)∣x⟩∣χs⟩.O_f|x\rangle|\chi_s\rangle = (-1)^{s f(x)}|x\rangle|\chi_s\rangle.

For s=1s=1, the target is

∣χ1⟩=∣−⟩=∣0⟩−∣1⟩2,|\chi_1\rangle = |-\rangle = \frac{|0\rangle-|1\rangle}{\sqrt2},

and the data branch receives (−1)f(x)(-1)^{f(x)}. For s=0s=0, the target is ∣+⟩|+\rangle and every branch eigenvalue is +1+1, so no phase is marked. In both cases the target returns exactly; the difference is entirely phase-sensitive.

For a data superposition ∑xαx∣x⟩\sum_x\alpha_x|x\rangle, one clean query gives

Of(∑xαx∣x⟩)∣−⟩=(∑xαx(−1)f(x)∣x⟩)∣−⟩.O_f \left( \sum_x\alpha_x|x\rangle \right)|-\rangle = \left( \sum_x\alpha_x(-1)^{f(x)}|x\rangle \right)|-\rangle.

This is not a readable list of all function values. The phase pattern must be followed by an interference operation chosen for the task. It also assumes that the declared oracle is clean: if an implementation leaves xx-dependent workspace, the data register need not carry a pure phase pattern by itself.

Boolean kickback is the two-level member of a more general character-state construction. Let an mm-qubit target encode M=2mM=2^m basis states in increasing integer order, and define modular translation by

Ta∣y⟩=∣y+a mod M⟩.T_a|y\rangle = |y+a\bmod M\rangle.

Using the positive-sign convention of the quantum Fourier transform, define the negative-exponent character

∣χk−⟩=1M∑y=0M−1e−2πiky/M∣y⟩=FM†∣k⟩.|\chi_k^-\rangle = \frac1{\sqrt M} \sum_{y=0}^{M-1} e^{-2\pi i k y/M}|y\rangle = F_M^\dagger|k\rangle.

Changing variables to z=y+a mod Mz=y+a\bmod M gives

Ta∣χk−⟩=1M∑ye−2πiky/M∣y+a⟩=e+2πika/M1M∑ze−2πikz/M∣z⟩=e+2πika/M∣χk−⟩.\begin{aligned} T_a|\chi_k^-\rangle &= \frac1{\sqrt M} \sum_y e^{-2\pi i k y/M}|y+a\rangle\\ &= e^{+2\pi i k a/M} \frac1{\sqrt M} \sum_z e^{-2\pi i k z/M}|z\rangle\\ &= e^{+2\pi i k a/M}|\chi_k^-\rangle. \end{aligned}

Thus a coherent addition oracle

Af=∑x∣x⟩⟨x∣⊗Tf(x)A_f = \sum_x|x\rangle\langle x|\otimes T_{f(x)}

obeys

Af∣x⟩∣χk−⟩=e+2πikf(x)/M∣x⟩∣χk−⟩.A_f|x\rangle|\chi_k^-\rangle = e^{+2\pi i k f(x)/M}|x\rangle|\chi_k^-\rangle.

Both signs matter. Replacing TaT_a by T−aT_{-a} conjugates the eigenvalue, and using FM∣k⟩F_M|k\rangle instead of FM†∣k⟩F_M^\dagger|k\rangle also reverses the exponent. Reducing kaka modulo MM is safe only after the translation and Fourier conventions have been fixed.

For a known classical integer kk, this character is a product state. In tensor order am−1⊗⋯⊗a0a_{m-1}\otimes\cdots\otimes a_0,

∣χk−⟩=⨂j=m−10∣0⟩+e−2πik2j/M∣1⟩2.|\chi_k^-\rangle =\bigotimes_{j=m-1}^{0} \frac{|0\rangle+e^{-2\pi i k2^j/M}|1\rangle}{\sqrt2}.

Thus one can prepare it using a Hadamard and a known one-qubit phase on each target wire; a full inverse QFT applied to ∣k⟩|k\rangle is valid but unnecessary. This shortcut assumes classical knowledge of kk. Applying FM†F_M^\dagger to an arbitrary quantum superposition of labels is a different task. In a finite gate alphabet, synthesizing the preparation phases to the required accuracy still has a cost. Ideal kickback leaves the prepared character available for reuse; imperfect preparation or shifts can accumulate errors.

For one returned control phase, write

∣ψθ⟩=∣0⟩+eiθ∣1⟩2.|\psi_\theta\rangle = \frac{|0\rangle+e^{i\theta}|1\rangle}{\sqrt2}.

Computational-basis measurement gives one half for each outcome, independently of θ\theta. It cannot distinguish correct kickback from a coherent phase bias. With

∣+Y⟩=∣0⟩+i∣1⟩2,|+_Y\rangle = \frac{|0\rangle+i|1\rangle}{\sqrt2},

the complementary expectations are

⟨X⟩=cos⁡θ,⟨Y⟩=sin⁡θ,\langle X\rangle=\cos\theta, \qquad \langle Y\rangle=\sin\theta,

and therefore

pX+=1+cos⁡θ2,pY+=1+sin⁡θ2.p_{X+} = \frac{1+\cos\theta}{2}, \qquad p_{Y+} = \frac{1+\sin\theta}{2}.

An XX-basis readout applies HH and then measures ZZ. With the ∣+Y⟩|+_Y\rangle convention above, a YY-basis readout applies S†S^\dagger, then HH, then measures ZZ. These are incompatible settings and require separate ensembles. Measurement in circuits explains these basis rotations and the sampling uncertainty of their estimates.

A phase measurement can combine complementary selector observables with a target or joint-state check. Correct X/YX/Y means can coexist with untested leakage outside a promised subspace, while target-return probability alone can miss a coherent phase offset. For finite shots, report the number of trials in each basis, the interval or uncertainty rule, and a prespecified acceptance tolerance.

A useful predicate is often implemented by a reversible evaluator rather than delivered as a clean phase oracle. Suppose

Cf∣x⟩∣0w⟩∣0⟩=∣x⟩∣gx⟩∣f(x)⟩,C_f |x\rangle|0^w\rangle|0\rangle = |x\rangle|g_x\rangle|f(x)\rangle,

where ∣gx⟩|g_x\rangle is workspace. Applying ZZ to the output bit gives

∣x⟩∣gx⟩∣f(x)⟩⟼(−1)f(x)∣x⟩∣gx⟩∣f(x)⟩.|x\rangle|g_x\rangle|f(x)\rangle \longmapsto (-1)^{f(x)} |x\rangle|g_x\rangle|f(x)\rangle.

Then the inverse evaluator restores the auxiliaries:

Cf†(I⊗I⊗Z)Cf∣x⟩∣0w⟩∣0⟩=(−1)f(x)∣x⟩∣0w⟩∣0⟩.C_f^\dagger (I\otimes I\otimes Z) C_f |x\rangle|0^w\rangle|0\rangle = (-1)^{f(x)} |x\rangle|0^w\rangle|0\rangle.

The data phase survives because the inverse removes correlations, not the scalar multiplying each branch. On a superposition, omitting the inverse leaves data coherences weighted by the full auxiliary overlap ⟨gx′∣gx⟩⟨f(x′)∣f(x)⟩\langle g_{x'}|g_x\rangle\langle f(x')|f(x)\rangle. Orthogonal garbage can erase the very interference the phase was meant to produce.

Reversible computation explains how to construct and undo the evaluator. This sequence uses one forward evaluator, one phase gate and one inverse evaluator. If an oracle directly supplies the complete clean phase operation, that operation may instead count as a single query. Query counts describe access to a supplied operation; they do not specify its internal gate count or hardware time.

For a desired branch phase θx\theta_x, define

ϵx=∥Vx∣η⟩−eiθx∣η⟩∥.\epsilon_x = \left\| V_x|\eta\rangle - e^{i\theta_x}|\eta\rangle \right\|.

Selector orthogonality gives the exact state-error identity

∥∣Ψactual⟩−∣Ψideal⟩∥2=∑x∣αx∣2ϵx2.\left\| |\Psi_{\mathrm{actual}}\rangle - |\Psi_{\mathrm{ideal}}\rangle \right\|^2 = \sum_x|\alpha_x|^2\epsilon_x^2.

The corresponding ideal-state fidelity is

∣∑x∣αx∣2e−iθx⟨η∣Vx∣η⟩∣2.\left| \sum_x|\alpha_x|^2 e^{-i\theta_x} \langle\eta|V_x|\eta\rangle \right|^2.

These are metrics for the chosen input. A uniform bound on every populated branch gives a corresponding uniform bound over selector states with the same prepared target, but does not characterize the operation on arbitrary target inputs. The phase of the ideal vector is fixed in the norm comparison; the squared overlap is invariant under a common global phase.

Let s=1012s=101_2 and fs(x)=x2⊕x0f_s(x)=x_2\oplus x_0, with data order q2q1q0q_2q_1q_0 followed by the target. Starting from ∣000⟩∣0⟩|000\rangle|0\rangle, prepare ∣+⟩⊗3∣−⟩|+\rangle^{\otimes3}|-\rangle. One clean XOR query gives

Ofs∣+⟩⊗3∣−⟩=18∑x=07(−1)s⋅x∣x⟩∣−⟩.O_{f_s}|+\rangle^{\otimes3}|-\rangle =\frac1{\sqrt8}\sum_{x=0}^{7}(-1)^{s\cdot x}|x\rangle|-\rangle.

In increasing binary order the signs are

(+1,−1,+1,−1,−1,+1,−1,+1).(+1,-1,+1,-1,-1,+1,-1,+1).

The target returns, but measuring the data immediately would still give a uniform distribution. Apply H⊗3H^{\otimes3} to the data first. Its amplitude at zz is

18∑x(−1)(s⊕z)⋅x=∏j=021+(−1)sj⊕zj2=δs,z.\frac18\sum_x(-1)^{(s\oplus z)\cdot x} =\prod_{j=0}^{2}\frac{1+(-1)^{s_j\oplus z_j}}2 =\delta_{s,z}.

The interference therefore returns 101101 with certainty. If the target were mistakenly prepared in ∣+⟩|+\rangle, the query would make no phase pattern and the same decoder would return 000000.

There are four qubits, seven Hadamards, one initial XX on the target, one clean XOR query and three data measurements. For this explicitly known function the query itself can be implemented by two CNOTs onto the target. For an unknown function supplied as an oracle, its internal implementation is not specified by the one-query description. The Bernstein–Vazirani algorithm explains the unknown-function problem and its classical comparison.

Take M=8M=8, k=3k=3 and a positive translation T5∣y⟩=∣y+5 mod 8⟩T_5|y\rangle=|y+5\bmod8\rangle. Prepare the target

∣χ3−⟩=18∑y=07e−2πi3y/8∣y⟩.|\chi_3^-\rangle=\frac1{\sqrt8}\sum_{y=0}^{7}e^{-2\pi i3y/8}|y\rangle.

The shift eigenvalue is e2πi(3)(5)/8=e−iπ/4e^{2\pi i(3)(5)/8}=e^{-i\pi/4}. With a coherent identity reference branch,

C1(T5)∣+⟩∣χ3−⟩=∣0⟩+e−iπ/4∣1⟩2⊗∣χ3−⟩.C_1(T_5)|+\rangle|\chi_3^-\rangle =\frac{|0\rangle+e^{-i\pi/4}|1\rangle}{\sqrt2} \otimes|\chi_3^-\rangle.

Consequently, separate XX and YY measurements of the control give

pX+=2+24≃0.853553,pY+=2−24≃0.146447.p_{X+}=\frac{2+\sqrt2}{4}\simeq0.853553, \qquad p_{Y+}=\frac{2-\sqrt2}{4}\simeq0.146447.

Reversing the Fourier sign leaves the XX probability unchanged but changes pY+p_{Y+} to 0.8535530.853553. This is why checking a single real quadrature does not determine the phase sign.

The target can be prepared directly in a2a1a0a_2a_1a_0 order as

∣χ3−⟩=∣0⟩−∣1⟩2⊗∣0⟩+i∣1⟩2⊗∣0⟩+e−3πi/4∣1⟩2.|\chi_3^-\rangle =\frac{|0\rangle-|1\rangle}{\sqrt2} \otimes\frac{|0\rangle+i|1\rangle}{\sqrt2} \otimes\frac{|0\rangle+e^{-3\pi i/4}|1\rangle}{\sqrt2}.

Without the coherent control, T5∣χ3−⟩T_5|\chi_3^-\rangle differs from its input only by a global phase. There would then be no control observable to measure. The construction uses one supplied controlled-shift query, while preparation, repeated measurements and any circuit implementation of the shift are additional costs.

Target return alone does not test the phase. Both Boolean ancillas ∣+⟩|+\rangle and ∣−⟩|-\rangle return, but only the latter produces the sign pattern. Use interference and check the phase convention.

A generic target can retain information about the selector. Distinct branch states can reduce selector coherence. For a pure product input this means output entanglement; with a mixed target, classical correlations can also reduce visibility.

Controlled access is an assumption. A known, phase-fixed circuit can be controlled with additional gates. An uncontrolled unknown channel does not determine its phase relative to an identity branch; quantum oracles discusses the access distinction.

One interference step is not a complete algorithm. Phase estimation adds controlled powers and decoding; Grover search adds repeated reflections. Their guarantees depend on those additional operations and on the problem being solved.

For W=∑j∣j⟩⟨j∣⊗VjW=\sum_j|j\rangle\langle j|\otimes V_j and ∣ψ⟩=∑jαj∣j⟩|\psi\rangle=\sum_j\alpha_j|j\rangle, prove exact returning kickback when Vj∣η⟩=eiθj∣η⟩V_j|\eta\rangle=e^{i\theta_j}|\eta\rangle on the populated support. Distinguish this from the weaker common-output condition Vj∣η⟩=eiθj∣ξ⟩V_j|\eta\rangle=e^{i\theta_j}|\xi\rangle. Why does an occupied identity branch make the two conditions coincide up to a common phase?

Solution

Direct substitution gives

W∣ψ⟩∣η⟩=∑jαj∣j⟩Vj∣η⟩=∑jαjeiθj∣j⟩∣η⟩=Dθ∣ψ⟩∣η⟩.\begin{aligned} W|\psi\rangle|\eta\rangle &= \sum_j\alpha_j|j\rangle V_j|\eta\rangle\\ &= \sum_j\alpha_je^{i\theta_j}|j\rangle|\eta\rangle\\ &= D_\theta|\psi\rangle|\eta\rangle. \end{aligned}

The target is exactly the input ray. Under the weaker condition, the same calculation ends in Dθ∣ψ⟩∣ξ⟩D_\theta|\psi\rangle|\xi\rangle: the registers factor, but the target ray may have changed.

If an occupied branch has Vj0=IV_{j_0}=I, its output is ∣η⟩|\eta\rangle. Common-output factorization also says that output equals eiθj0∣ξ⟩e^{i\theta_{j_0}}|\xi\rangle, so ∣ξ⟩=e−iθj0∣η⟩|\xi\rangle=e^{-i\theta_{j_0}}|\eta\rangle. The common target is therefore the input ray, and its common phase can be absorbed into all selector phases.

2. Promote a Target Phase to a Branch Phase

Section titled “2. Promote a Target Phase to a Branch Phase”

Prove C1(eiγU)=(P(γ)⊗I)C1(U)C_1(e^{i\gamma}U)=(P(\gamma)\otimes I)C_1(U). If U∣u⟩=eiθ∣u⟩U|u\rangle=e^{i\theta}|u\rangle and the control begins in ∣+⟩|+\rangle, find pX+p_{X+}. Explain why UU and eiγUe^{i\gamma}U define the same isolated channel but different controlled operations.

Solution

Using Pb=∣b⟩⟨b∣P_b=|b\rangle\langle b|,

C1(eiγU)=P0⊗I+eiγP1⊗U=[(P0+eiγP1)⊗I](P0⊗I+P1⊗U)=(P(γ)⊗I)C1(U).\begin{aligned} C_1(e^{i\gamma}U) &= P_0\otimes I+e^{i\gamma}P_1\otimes U\\ &= \left[ (P_0+e^{i\gamma}P_1)\otimes I \right] \left(P_0\otimes I+P_1\otimes U\right)\\ &= (P(\gamma)\otimes I)C_1(U). \end{aligned}

On ∣+⟩∣u⟩|+\rangle|u\rangle, the active branch receives phase ei(θ+γ)e^{i(\theta+\gamma)}, so

pX+=1+cos⁡(θ+γ)2.p_{X+} = \frac{1+\cos(\theta+\gamma)}{2}.

Conjugation by UU and by eiγUe^{i\gamma}U gives the same isolated channel because the scalar cancels against its conjugate. After control, the scalar multiplies only one branch and becomes observable relative phase.

Apply a clean XOR oracle to ∣x⟩∣+⟩|x\rangle|+\rangle and to ∣x⟩∣−⟩|x\rangle|-\rangle. Give a phase-sensitive test that rejects the wrong ancilla for a branch with f(x)=1f(x)=1.

Solution

Since X∣+⟩=∣+⟩X|+\rangle=|+\rangle,

Of∣x⟩∣+⟩=∣x⟩∣+⟩O_f|x\rangle|+\rangle = |x\rangle|+\rangle

for both values of f(x)f(x). Since X∣−⟩=−∣−⟩X|-\rangle=-|-\rangle,

Of∣x⟩∣−⟩=(−1)f(x)∣x⟩∣−⟩.O_f|x\rangle|-\rangle = (-1)^{f(x)}|x\rangle|-\rangle.

If both function values occur, place the data in an equal superposition of one f=0f=0 branch and one f=1f=1 branch. If ff is constant, this interference test instead needs an additional coherent control that compares the query with an identity branch: the sign on a fixed target eigenstate is global without that reference. This does not prevent reading a constant Boolean value by using the XOR oracle on a computational-basis target. With the coherent reference, the minus ancilla produces relative phase π\pi when f=1f=1, so an XX-basis measurement swaps the constructive and destructive outcomes. The plus ancilla produces relative phase zero. Measuring only the target in the computational basis would not distinguish the intended phase pattern.

Suppose

Cf∣x⟩∣0w⟩∣0⟩=∣x⟩∣gx⟩∣f(x)⟩.C_f|x\rangle|0^w\rangle|0\rangle = |x\rangle|g_x\rangle|f(x)\rangle.

Show that applying ZZ to the output and then Cf†C_f^\dagger produces a clean sign-phase oracle. Count the abstract operations and explain the interference failure if the inverse is omitted.

Solution

The output bit is a ZZ eigenstate, so

(I⊗I⊗Z)∣x⟩∣gx⟩∣f(x)⟩=(−1)f(x)∣x⟩∣gx⟩∣f(x)⟩.(I\otimes I\otimes Z) |x\rangle|g_x\rangle|f(x)\rangle = (-1)^{f(x)} |x\rangle|g_x\rangle|f(x)\rangle.

Applying Cf†C_f^\dagger restores both auxiliary registers:

Cf†(I⊗I⊗Z)Cf∣x⟩∣0w⟩∣0⟩=(−1)f(x)∣x⟩∣0w⟩∣0⟩.C_f^\dagger(I\otimes I\otimes Z)C_f |x\rangle|0^w\rangle|0\rangle = (-1)^{f(x)}|x\rangle|0^w\rangle|0\rangle.

The sequence contains one forward evaluator, one ZZ, and one inverse evaluator. Without the inverse, tracing out the workspace multiplies a data coherence between xx and x′x' by ⟨gx′∣gx⟩\langle g_{x'}|g_x\rangle together with any output-bit overlap. Orthogonal garbage can remove that coherence completely.

For M=8M=8, k=1k=1, and a=3a=3, derive the eigenvalues of T3T_3 on F8†∣1⟩F_8^\dagger|1\rangle and on F8∣1⟩F_8|1\rangle. For a controlled shift, calculate pX+p_{X+} in each convention and show how the YY expectation changes.

Solution

The negative-exponent character is F8†∣1⟩F_8^\dagger|1\rangle, so the positive translation has eigenvalue

λ−=e+2πi(1)(3)/8=e+3πi/4.\lambda_- = e^{+2\pi i(1)(3)/8} = e^{+3\pi i/4}.

The positive-exponent character F8∣1⟩F_8|1\rangle has the conjugate eigenvalue

λ+=e−2πi(1)(3)/8=e−3πi/4.\lambda_+ = e^{-2\pi i(1)(3)/8} = e^{-3\pi i/4}.

In both cases cos⁡(±3π/4)=−1/2\cos(\pm3\pi/4)=-1/\sqrt2, hence

pX+=1+cos⁡(±3π/4)2=2−24.p_{X+} = \frac{1+\cos(\pm3\pi/4)}2 = \frac{2-\sqrt2}{4}.

The quadrature is sign-sensitive:

⟨Y⟩−=sin⁡(3π/4)=12,⟨Y⟩+=sin⁡(−3π/4)=−12.\langle Y\rangle_- = \sin(3\pi/4) = \frac1{\sqrt2}, \qquad \langle Y\rangle_+ = \sin(-3\pi/4) = -\frac1{\sqrt2}.

Thus XX alone cannot distinguish the two Fourier conventions, while a separate YY-basis ensemble can.

Apply controlled-ZZ to

∣+⟩C(cos⁡α∣0⟩+sin⁡α∣1⟩)T.|+\rangle_C \left( \cos\alpha|0\rangle + \sin\alpha|1\rangle \right)_T.

Derive the selector overlap and reduced-control purity. Evaluate the purity at α=π/8\alpha=\pi/8 and interpret the result.

Solution

Let

∣η⟩=cos⁡α∣0⟩+sin⁡α∣1⟩.|\eta\rangle = \cos\alpha|0\rangle + \sin\alpha|1\rangle.

The two control branches carry ∣η⟩|\eta\rangle and Z∣η⟩Z|\eta\rangle, whose overlap is

z=⟨η∣Z∣η⟩=cos⁡2α−sin⁡2α=cos⁡2α.z = \langle\eta|Z|\eta\rangle = \cos^2\alpha-\sin^2\alpha = \cos2\alpha.

Tracing out the target gives

ρC=12(1zz1),Tr⁡ρC2=1+z22=1+cos⁡2(2α)2.\rho_C = \frac12 \begin{pmatrix} 1 & z\\ z & 1 \end{pmatrix}, \qquad \operatorname{Tr}\rho_C^2 = \frac{1+z^2}{2} = \frac{1+\cos^2(2\alpha)}2.

At α=π/8\alpha=\pi/8, z=1/2z=1/\sqrt2 and the purity is 3/43/4. Because it is below one, the output is entangled: the target has not returned to a common ray, and no single pure control phase describes the result.

Prepare ∣+⟩⟨+∣⊗I/2|+\rangle\langle+|\otimes I/2 and apply controlled-ZZ. Find both reduced output states. Is the output entangled? Does the unchanged target imply perfect phase transfer?

Solution

Resolving the target mixture into ZZ eigenstates gives

ρCT′=12∣+⟩⟨+∣⊗∣0⟩⟨0∣+12∣−⟩⟨−∣⊗∣1⟩⟨1∣.\rho_{CT}'=\frac12|+\rangle\langle+|\otimes|0\rangle\langle0| +\frac12|-\rangle\langle-|\otimes|1\rangle\langle1|.

This is explicitly a mixture of product states, so it is separable. Both reduced states are I/2I/2: the target marginal is unchanged, but the control has lost its initial coherence. The two target components contribute opposite control phases. Thus marginal target return is weaker than returning a pure common target while preserving the desired selector phase.

8. Prepare and read a four-qubit character

Section titled “8. Prepare and read a four-qubit character”

Use a ∣+⟩|+\rangle control, M=16M=16, k=5k=5, a=7a=7 and the negative-exponent character. Derive the phase from one controlled-T7T_7 query and calculate the separate XX and YY probabilities. Give a direct product-state preparation of the known character and compare it with preparing ∣5⟩|5\rangle followed by an exact inverse QFT.

Solution

The phase reduces to

θ=2π(5)(7)16=35π8=3π8(mod2π).\theta=\frac{2\pi(5)(7)}{16} =\frac{35\pi}{8}=\frac{3\pi}{8}\pmod{2\pi}.

The final state is (∣0⟩+e3πi/8∣1⟩)∣χ5−⟩/2(|0\rangle+e^{3\pi i/8}|1\rangle)|\chi_5^-\rangle/\sqrt2, and hence

pX+=2+2−24≃0.691342,pY+=2+2+24≃0.961940.p_{X+}=\frac{2+\sqrt{2-\sqrt2}}4\simeq0.691342, \qquad p_{Y+}=\frac{2+\sqrt{2+\sqrt2}}4\simeq0.961940.

For direct preparation, apply HH to each of a3,a2,a1,a0a_3,a_2,a_1,a_0, followed respectively by P(π)P(\pi), P(−π/2)P(-\pi/2), P(3π/4)P(3\pi/4) and P(−5π/8)P(-5\pi/8). This uses four Hadamards and four phase gates in a continuous one-qubit alphabet, with no entangling gates. Phase synthesis into a finite alphabet is a separate step.

Alternatively, prepare ∣5⟩=∣0101⟩|5\rangle=|0101\rangle with two XX gates and apply the inverse QFT: four Hadamards, six controlled inverse phases and two SWAPs in the construction of the previous page. This is correct but uses unnecessary two-qubit gates for a known basis label. Both preparations require the same five-qubit control-plus-target system. Neither count includes implementing the controlled shift or taking repeated measurements.