Phase Kickback
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.
Eigenvalues become selector phases
Section titled “Eigenvalues become selector phases”Let a selector register have orthonormal basis , and let be a unitary on a target register. The block-controlled operator is
For a selector state and normalized target
suppose every populated branch sees the same target as an eigenstate:
Linearity then gives
Thus the target returns exactly, while the selector undergoes the diagonal unitary
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 such that
on every populated branch, then
The registers factor, but the target has changed from to . 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 , so factorization already fixes the common output ray to the input target ray.
For a generic target, tracing it out gives the selector state
The matrix of target overlaps is a Gram matrix. Under exact kickback its entries are
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,
Only phase differences among populated branches are observable. A common shift changes the whole joint state by one global phase, but rephasing only one controlled branch changes . In particular,
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.
Boolean XOR Oracles and the Minus Ancilla
Section titled “Boolean XOR Oracles and the Minus Ancilla”A clean Boolean XOR oracle has the exact interface
The target operation on branch is . Define the two eigenstates
so that
The oracle therefore acts as
For , the target is
and the data branch receives . For , the target is and every branch eigenvalue is , so no phase is marked. In both cases the target returns exactly; the difference is entirely phase-sensitive.
For a data superposition , one clean query gives
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 -dependent workspace, the data register need not carry a pure phase pattern by itself.
Modular Addition and Character States
Section titled “Modular Addition and Character States”Boolean kickback is the two-level member of a more general character-state construction. Let an -qubit target encode basis states in increasing integer order, and define modular translation by
Using the positive-sign convention of the quantum Fourier transform, define the negative-exponent character
Changing variables to gives
Thus a coherent addition oracle
obeys
Both signs matter. Replacing by conjugates the eigenvalue, and using instead of also reverses the exponent. Reducing modulo is safe only after the translation and Fourier conventions have been fixed.
For a known classical integer , this character is a product state. In tensor order ,
Thus one can prepare it using a Hadamard and a known one-qubit phase on each target wire; a full inverse QFT applied to is valid but unnecessary. This shortcut assumes classical knowledge of . Applying 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.
Interference and Phase Readout
Section titled “Interference and Phase Readout”For one returned control phase, write
Computational-basis measurement gives one half for each outcome, independently of . It cannot distinguish correct kickback from a coherent phase bias. With
the complementary expectations are
and therefore
An -basis readout applies and then measures . With the convention above, a -basis readout applies , then , then measures . 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 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.
Compute–Phase–Uncompute
Section titled “Compute–Phase–Uncompute”A useful predicate is often implemented by a reversible evaluator rather than delivered as a clean phase oracle. Suppose
where is workspace. Applying to the output bit gives
Then the inverse evaluator restores the auxiliaries:
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 . 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.
Imperfect phase transfer
Section titled “Imperfect phase transfer”For a desired branch phase , define
Selector orthogonality gives the exact state-error identity
The corresponding ideal-state fidelity is
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.
Worked example: a Boolean phase pattern
Section titled “Worked example: a Boolean phase pattern”Let and , with data order followed by the target. Starting from , prepare . One clean XOR query gives
In increasing binary order the signs are
The target returns, but measuring the data immediately would still give a uniform distribution. Apply to the data first. Its amplitude at is
The interference therefore returns with certainty. If the target were mistakenly prepared in , the query would make no phase pattern and the same decoder would return .
There are four qubits, seven Hadamards, one initial 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.
Worked example: a modular shift
Section titled “Worked example: a modular shift”Take , and a positive translation . Prepare the target
The shift eigenvalue is . With a coherent identity reference branch,
Consequently, separate and measurements of the control give
Reversing the Fourier sign leaves the probability unchanged but changes to . This is why checking a single real quadrature does not determine the phase sign.
The target can be prepared directly in order as
Without the coherent control, 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.
Common pitfalls
Section titled “Common pitfalls”Target return alone does not test the phase. Both Boolean ancillas and 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.
Exercises
Section titled “Exercises”1. Derive the Exact Return Criterion
Section titled “1. Derive the Exact Return Criterion”For and , prove exact returning kickback when on the populated support. Distinguish this from the weaker common-output condition . Why does an occupied identity branch make the two conditions coincide up to a common phase?
Solution
Direct substitution gives
The target is exactly the input ray. Under the weaker condition, the same calculation ends in : the registers factor, but the target ray may have changed.
If an occupied branch has , its output is . Common-output factorization also says that output equals , so . 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 . If and the control begins in , find . Explain why and define the same isolated channel but different controlled operations.
Solution
Using ,
On , the active branch receives phase , so
Conjugation by and by 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.
3. Choose the Boolean Ancilla
Section titled “3. Choose the Boolean Ancilla”Apply a clean XOR oracle to and to . Give a phase-sensitive test that rejects the wrong ancilla for a branch with .
Solution
Since ,
for both values of . Since ,
If both function values occur, place the data in an equal superposition of one branch and one branch. If 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 when , so an -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.
4. Clean a Dirty Predicate
Section titled “4. Clean a Dirty Predicate”Suppose
Show that applying to the output and then 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 eigenstate, so
Applying restores both auxiliary registers:
The sequence contains one forward evaluator, one , and one inverse evaluator. Without the inverse, tracing out the workspace multiplies a data coherence between and by together with any output-bit overlap. Orthogonal garbage can remove that coherence completely.
5. Reverse a Character Convention
Section titled “5. Reverse a Character Convention”For , , and , derive the eigenvalues of on and on . For a controlled shift, calculate in each convention and show how the expectation changes.
Solution
The negative-exponent character is , so the positive translation has eigenvalue
The positive-exponent character has the conjugate eigenvalue
In both cases , hence
The quadrature is sign-sensitive:
Thus alone cannot distinguish the two Fourier conventions, while a separate -basis ensemble can.
6. Diagnose a Non-Eigenstate Target
Section titled “6. Diagnose a Non-Eigenstate Target”Apply controlled- to
Derive the selector overlap and reduced-control purity. Evaluate the purity at and interpret the result.
Solution
Let
The two control branches carry and , whose overlap is
Tracing out the target gives
At , and the purity is . 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.
7. An unchanged mixed target
Section titled “7. An unchanged mixed target”Prepare and apply controlled-. Find both reduced output states. Is the output entangled? Does the unchanged target imply perfect phase transfer?
Solution
Resolving the target mixture into eigenstates gives
This is explicitly a mixture of product states, so it is separable. Both reduced states are : 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 control, , , and the negative-exponent character. Derive the phase from one controlled- query and calculate the separate and probabilities. Give a direct product-state preparation of the known character and compare it with preparing followed by an exact inverse QFT.
Solution
The phase reduces to
The final state is , and hence
For direct preparation, apply to each of , followed respectively by , , and . 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 with two 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.
References
Section titled “References”- E. Bernstein and U. Vazirani, “Quantum Complexity Theory”, SIAM Journal on Computing 26(5), 1411–1473 (1997).
- R. Cleve, A. Ekert, C. Macchiavello, and M. Mosca, “Quantum Algorithms Revisited”, Proceedings of the Royal Society A 454, 339–354 (1998).
- D. Deutsch, “Quantum Theory, the Church–Turing Principle and the Universal Quantum Computer”, Proceedings of the Royal Society A 400, 97–117 (1985).
- D. Deutsch and R. Jozsa, “Rapid Solution of Problems by Quantum Computation”, Proceedings of the Royal Society A 439, 553–558 (1992).
- T. G. Draper, “Addition on a Quantum Computer”, arXiv:quant-ph/0008033 (2000).
- L. K. Grover, “A Fast Quantum Mechanical Algorithm for Database Search”, in Proceedings of the 28th Annual ACM Symposium on Theory of Computing, 212–219 (1996).
- A. Yu. Kitaev, “Quantum Measurements and the Abelian Stabilizer Problem”, arXiv:quant-ph/9511026 (1995).
- N. D. Mermin, Quantum Computer Science: An Introduction, Cambridge University Press (2007).
- M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, 10th anniversary edition, Cambridge University Press (2010).
- A. Ruiz-Perez and J. C. Garcia-Escartin, “Quantum Arithmetic with the Quantum Fourier Transform”, Quantum Information Processing 16, 152 (2017).
- P. W. Shor, “Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer”, SIAM Journal on Computing 26(5), 1484–1509 (1997).
- V. Vedral, A. Barenco, and A. Ekert, “Quantum Networks for Elementary Arithmetic Operations”, Physical Review A 54, 147–153 (1996).