Quantum Walk Algorithms
A quantum walk moves amplitudes coherently through a graph. Interference can concentrate probability at a useful vertex, and the spectrum can help a search algorithm rotate toward marked states. This page develops coined walks, Szegedy walks and continuous-time walks, then derives the value-query algorithm for element distinctness from a concrete subset graph.
The three walk models use different Hilbert spaces and updates. A graph alone does not specify an algorithm: one also needs an initial state, an update that can actually be implemented, and a measurement that returns the requested answer. The small examples below make these choices explicit before the asymptotic search results.
Helpful background. Quantum oracles explains coherent queries and inverse access; algorithmic primitives introduces reflections; eigenvalues and eigenvectors supplies the spectral decomposition used below.
Quantum Walks as Algorithmic State-Space Dynamics
Section titled “Quantum Walks as Algorithmic State-Space Dynamics”A classical random walk updates a probability distribution by a stochastic matrix. A quantum walk instead updates amplitudes coherently, preserving relative phases until a declared measurement. Interfering histories can suppress some outcomes and reinforce others, so a graph’s spectrum can control a search or traversal procedure in a way that has no trajectory-by-trajectory classical interpretation. The graph-algorithm framework of Aharonov, Ambainis, Kempe, and Vazirani also emphasizes an important difference from classical mixing: a finite closed unitary walk does not ordinarily converge to a stationary probability distribution. Time averaging, an absorbing modification, a randomized stopping time, or a specified measurement schedule is therefore part of an algorithm rather than an optional presentation detail.
The three models here package coherence differently. A coined discrete-time walk lives on directed edges, or equivalently on a vertex register augmented by a local coin register. One step applies a vertex-local coin and a routing permutation. A Szegedy walk uses two coherent copies of a Markov-chain state space and alternates reflections about transition-state subspaces. A continuous-time walk lives on the vertex space and evolves as for a declared Hermitian generator. A spectral correspondence can connect particular instances, and Childs gives a precise relationship between continuous- and discrete-time walks, but this does not license replacing one access model, state space, or resource count by another.
Discrete-Time Coined Walks
Section titled “Discrete-Time Coined Walks”Coin and shift on directed edges
Section titled “Coin and shift on directed edges”Let be a finite undirected graph. Its directed-edge, or arc, Hilbert space is
For each vertex , the outgoing arcs span a local space of dimension . A local unitary mixes those outgoing directions, and the global coin is the orthogonal direct sum
The graph-general default here is the flip-flop shift
with the step convention
The direct sum is unitary exactly when every is unitary. The shift is a permutation with , so it is unitary and self-inverse. Thus is unitary. This elementary proof is important operationally: an update that discards a direction label, samples a neighbor, or overwrites a cache is not this coherent walk until it has been embedded in a reversible operation with the necessary workspace.
A common regular-graph choice is the Grover diffusion coin , where is uniform over outgoing arcs. The local coin is a reflection; the complete Grover search algorithm also requires a markedness reflection and a suitable repetition count. At a marked vertex one may replace the local coin, apply a separate phase oracle, add a self-loop, or enlarge the coin space. These alternatives can have different spectra and success probabilities. On an irregular graph, padding all local spaces to a common register requires a declared action on unused labels; leaving that action unspecified leaves the purported unitary unspecified.
Order also matters. means coin first and route second when operators act from the right, whereas routes before mixing. A moving shift preserves a direction label while changing the vertex; a flip-flop shift reverses the directed edge. They may be related on a specially relabeled regular graph, but they are not textually interchangeable. Measuring the complete arc basis after every step gives the classical transition probabilities . Measuring only the vertex can retain coin coherence, so the vertex outcomes need not form a Markov chain on vertices alone. The initial state and sampling rule belong to the walk definition.
Exact interference on a four-cycle
Section titled “Exact interference on a four-cycle”For a compact finite example, use vertices and coin labels . This example explicitly changes from the preceding flip-flop default to the named moving shift
Let the local coin be Hadamard,
define the local coin in the interleaved ordered basis by , and set . Starting from , repeated application gives
The cancellations at the third step are visible in the second-step signs. The two amplitudes that could reach vertex cancel, while the amplitudes at vertex reinforce. Consequently the coherent position distribution at is concentrated at vertex . A classical simple random walk on the same cycle, begun at vertex , has distribution after three steps. The concentration at vertex comes from interference. It does not by itself solve a search problem: the graph has no marked vertex, and the desired computational output has not been specified.
This example also shows why the coin cannot be omitted from a state description. At , the position distribution is split evenly between vertices and , but the conditional coin states carry opposite relative phases. A measurement resolving both position and coin destroys the cross terms needed for the later cancellation. A position-only measurement retains coin coherence within each measured vertex. Here it gives the same third-step position distribution as the unmeasured walk, but a different joint state: an equal mixture of and , instead of their coherent superposition. The difference becomes visible one step later. Thus equality of position probabilities at one time does not establish equality of walk states.
The same four-cycle walk is measured in three different ways immediately after step two. Position-only measurement preserves the third-step concentration at vertex , yet removes the coin coherence that would concentrate the fourth-step probability at vertex . Every row is a normalized position distribution.
Continuous-Time Quantum Walks
Section titled “Continuous-Time Quantum Walks”Adjacency and Laplacian generators
Section titled “Adjacency and Laplacian generators”A continuous-time walk acts directly on the vertex space. With , the adjacency convention used here is
where is the adjacency matrix and fixes the energy and time scale. The continuous-time computational model introduced by Farhi and Gutmann uses Hamiltonian evolution rather than alternating coin and shift registers. For marked-vertex search, a standard rank-one perturbation is
The initial state, marked vertex , choice of , measurement time, and acceptable time window are all part of the search instance. Rescaling by and time by preserves the ideal unitary, so a claim quoting time without a normalization or implementation model is not invariant information.
Some authors use the graph Laplacian , where is the degree matrix. On a -regular graph,
and therefore
The two evolutions have identical measurement probabilities after the sign convention is matched because the extra factor is a global phase. On an irregular graph, is not proportional to the identity. For the three-vertex path, , so the Laplacian adds a vertex-dependent diagonal potential. It changes relative phases and is operationally different from adjacency evolution. “A walk on the same graph” therefore does not determine a continuous-time generator.
Evolution time, measurement, and implementation
Section titled “Evolution time, measurement, and implementation”Spectral decomposition gives
The moduli of the energy-basis amplitudes are constant, while their phases rotate. In a finite closed system this quasiperiodic behavior generally prevents convergence of the instantaneous vertex distribution. An algorithm may instead choose a specific time, sample a time from an interval, average probabilities over a window, or introduce a measurement or absorbing rule. Each choice defines a different output distribution. Hitting time, detection time, and time to produce a marked vertex should not be used as synonyms unless a theorem proves their equivalence in the stated model.
The two-vertex graph makes the time scale explicit. Its adjacency is the Pauli matrix , so and
From , the state is , and the transition probability is . Perfect transfer first occurs at . That value is an ideal evolution time, not a gate count.
An executable claim must state how the Hamiltonian is supplied, bound , allocate simulation error, prepare the initial state, implement the marked potential, and measure the result. If the Hamiltonian is a physical interaction, calibration, control, and readout remain costs. If it is simulated by a circuit, oracle normalization, queries, gates, ancillas, and precision must be expanded through Hamiltonian Simulation Algorithms. The exact conversion between continuous and discrete walks developed by Childs is a mathematical construction with explicit overhead, not permission to call physical time a circuit depth.
Reversible Markov Chains and Szegedy Quantization
Section titled “Reversible Markov Chains and Szegedy Quantization”Time reversal, transition subspaces, and discriminant
Section titled “Time reversal, transition subspaces, and discriminant”Let be a finite irreducible row-stochastic Markov chain, so is the probability of moving from to . Let be stationary, , and define the time-reversed transition matrix by
The coherent outgoing and reversed states are
They define two subspaces of the doubled state space,
With and , the convention throughout this page is
Operationally, reflecting about requires coherently preparing and unpreparing each transition state ; reflecting about requires the corresponding time-reversed access. Reversibility can simplify these circuits, but the abstract identity does not itself synthesize them. Preparing a classical random neighbor is insufficient: the transition amplitudes, their phases and the inverse preparation must be coherent.
The overlap between the two subspaces is encoded by the discriminant
Substituting the time-reversal definition gives, even before assuming reversibility,
Thus is similar to . When detailed balance holds, and is also symmetric; only then can its singular values be identified with the absolute values of its real eigenvalues. The coherent stationary state
lies in the common stationary sector. Szegedy’s quantization turns these overlaps into eigenphases of a product of reflections.
From singular values to walk phases
Section titled “From singular values to walk phases”Suppose a nontrivial singular value is with . The associated principal two-dimensional subspace is invariant under both reflections. Their product is a rotation through twice the principal angle, so under the order the walk eigenvalues are
Changing the reflection order conjugates these phases. The singular sectors at and require separate treatment. At singular value , the subspaces intersect and include a zero-phase stationary direction. At singular value , the principal angle is and the product acts in a degenerate phase- sector; forcing the generic paired notation onto either endpoint obscures multiplicities and invariant complements.
For a reversible ergodic chain, define the absolute spectral gap
The absolute value includes slowly decaying negative eigenvalues. Replacing by makes its spectrum nonnegative; this is the half-lazy convention used for the subset graph below. The smallest relevant nonzero walk phase satisfies
as . The square root is the spectral source of the walk-search improvement. It is not a statement that every classical hitting time is square-rooted: the marked overlap, setup, update, check, and output procedure still enter.
For a nonreversible chain, remains similar to but generally is not symmetric, and its singular values need not equal the magnitudes of its eigenvalues. The MNRS extension requires a nonzero singular-value gap of ; ordinary ergodicity alone does not guarantee that gap. Substituting an ordinary eigenvalue gap into the reversible theorem without proving the necessary spectral relationship is not justified. Even in the reversible case, a stated “gap” must say whether it is , an absolute gap, a singular-value gap, or the induced phase gap.
A two-state chain and an extra zero-phase vector
Section titled “A two-state chain and an extra zero-phase vector”Consider
The stationary distribution is , and detailed balance makes the chain reversible. Its discriminant is
It is positive symmetric with singular values and . The nonstationary eigenvalue of is , so the absolute gap is , and the reflection order predicts phases .
Constructing both transition isometries and multiplying their reflections gives the full walk, including the sector invisible to the discriminant’s nontrivial pair. In the ordered doubled basis , its characteristic polynomial is
Thus has the predicted conjugate pair and two eigenvalues: the coherent stationary vector in and one vector in . This finite example makes the invariant-subspace restriction in the search construction concrete.
The stationary vector and a normalized vector in the orthogonal complement are respectively
Both have eigenvalue . The second is orthogonal to every transition state in and ; a phase-zero test on an arbitrary ambient input therefore cannot distinguish it from the stationary state.
Search by Quantum Walk
Section titled “Search by Quantum Walk”Detection, finding, and the stationary reflection
Section titled “Detection, finding, and the stationary reflection”Let be a marked subset of the Markov-chain state space. A coherent check may act as a phase oracle, multiplying by exactly when , while preserving maintained data. Detection asks whether is empty. Finding asks for a classical marked state, and coherent production asks for a state supported substantially on . Finding can imply detection after verification, but a detection routine that only produces a bit need not reveal a witness. A hitting-time statement must identify which task it solves.
For a reversible ergodic chain, the stationary state is the distinguished zero-phase direction in the relevant invariant subspace contained in . That restriction matters: can contribute an additional sector to the full product of reflections, so phase zero on the entire doubled Hilbert space does not by itself identify the stationary vector. The algorithm prepares and remains in the transition-generated invariant subspace. There an ideal stationary reflection preserves the stationary component and reverses the orthogonal components. Phase estimation can approximate this restricted operation by resolving phase zero from phases whose magnitudes are at least . The required phase resolution is therefore proportional to
This argument explains the gap dependence. Implementing the reflection requires controlled walk steps, inverse uncomputation, phase workspace and sufficient precision, as developed in phase estimation. Alternating it with a markedness reflection then rotates amplitude toward the marked space. The log-free MNRS theorem uses a robust variable-precision construction; simply repeating one fixed-precision approximation introduces an extra logarithm in the straightforward error bound.
Under ideal exact markedness verification, one can use a one-sided decision convention: a returned witness is checked, so a negative instance never produces a false verified collision, while a positive instance may be missed with bounded probability. Approximate transitions and checks can spoil that property unless their errors are incorporated into the decision rule. “Bounded error” must therefore name which side can err and whether the claim concerns an ideal oracle algorithm or its approximate implementation.
The MNRS setup–update–check theorem
Section titled “The MNRS setup–update–check theorem”Let be a finite reversible ergodic chain. When , suppose its stationary measure obeys , and let be the absolute spectral gap. The Magniez–Nayak–Roland–Santha framework assigns three costs:
- prepares the coherent stationary state together with all maintained data;
- implements coherent and transitions, including the inverses actually required by the walk; and
- implements a markedness phase check using the maintained data.
The bounded-error cost is
Theorem 3 of Search via Quantum Walk already finds a marked element, or reports that none exists, with a universal constant success probability under its hypotheses. It is stronger than a detection-only theorem. Repeating an independently verifiable procedure reduces failure to with a normally sufficient multiplicative factor. A more specialized amplification schedule may improve constants, but it must retain its own access and error conditions.
The formula is a typed cost expression, not a count of anonymous elementary operations. If are measured in value-oracle queries, the conclusion is in value-oracle queries. If each is a vector containing queries, gates, depth, and memory traffic, the expression can be evaluated componentwise only where the same coherent construction supports those currencies. Controlled transitions, inverse operations, phase resolution, clean work registers, and coherent data access remain implementation obligations. They cannot be inferred from a classical routine that samples one step of .
Finding a marked state is therefore included in this bound. Extracting a different object encoded in that state can still require additional work. For element distinctness, the returned subset already contains queried values: recovering the colliding indices needs comparisons and readout, but no further value queries.
Element Distinctness on the Johnson Graph
Section titled “Element Distinctness on the Johnson Graph”Marked fraction and the lazy Johnson gap
Section titled “Marked fraction and the lazy Johnson gap”Let the input be with , supplied by the coherent value oracle
The extra register is workspace left unchanged by the query. We want to decide whether two distinct indices have the same value, and may also ask to produce such a pair. The assumption permits both outcomes: if , the pigeonhole principle already settles the decision without any query, although finding a pair remains a separate task. Ambainis’s algorithm stores an -subset and the associated values . A subset is marked if its cache contains two equal values.
Use the Johnson graph , whose vertices are -subsets and whose edges exchange one selected index with one unselected index. The swap chain has degree and the uniform stationary distribution. To use a nonnegative spectrum, take the half-lazy transition
If the input contains a fixed colliding pair, the fraction of subsets containing both indices is
Additional collision pairs can only increase the marked fraction, so this is a valid lower bound without a unique-collision promise. The adjacency eigenvalues of the swap graph are
After normalization by the degree and half-lazification, the eigenvalues become
The first nonstationary value is . In the stated range, the lazy spectrum is nonnegative and no lower eigenvalue has larger absolute value, so
These exact combinatorial and spectral identities are the bridge from the chosen data structure to the MNRS theorem. Replacing the Johnson walk by a different subset update changes the gap and requires a new spectral calculation.
Optimizing subset size and query cost
Section titled “Optimizing subset size and query cost”Preparing the stationary cache queries values, so . A coherent exchange updates only constantly many cached values, giving value-query cost under the standard cached-update convention. Once values are stored, detecting a duplicate uses additional value queries, although comparison networks, routing, flags, and their inverses still use gates and workspace. Substitution gives
Balancing with gives and total bounded-error value-query complexity . The construction is due to Ambainis. The lower bound of Aaronson and Shi, extended to all ranges by Ambainis, shows that this scaling is optimal in the quantum value-query model. Optimal query scaling does not imply that the cached data structure, coherent comparisons, or fault-tolerant implementation is optimal.
For the finite substitution , ,
and
The last number is a finite parameter substitution inside an asymptotic cost theorem under a unit-cost update convention. It is not an exact integer query count. If a reversible cache replacement is priced at two oracle calls, the same substitution becomes
The exponent is unchanged, but the two numbers price the update differently. Storing indices and values already needs at least
logical data qubits in a straightforward representation, before subset-ordering data, the walk coin, collision flags, routing workspace, and error correction. Reporting the query theorem without this memory boundary would misdescribe what must be executed.
Spatial Search and Oracle Traversal Are Model-Dependent
Section titled “Spatial Search and Oracle Traversal Are Model-Dependent”Spatial-search results depend sharply on graph dimension, degree, boundary conditions, locality, marked multiplicity, marking geometry, coin choice, self-loops, initial state, access, and whether the task is detection or finding. The search Hamiltonian does not have the same avoided crossing or marked-state overlap on every graph. Childs and Goldstone found continuous-time search with constant-order success for their periodic-lattice construction when . At the critical dimension , the fixed-Hamiltonian evolution lasts but reaches the mark with only probability. Independent verified repetition therefore costs , while amplitude amplification can give only when the required reflection and inverse access are licensed. For , that construction gives no substantial speedup. These are not generic bounds for graphs of order .
Discrete coined search has equally specific hypotheses. Shenvi, Kempe, and Whaley analyzed a unique marked item on the hypercube with a particular coin and symmetry reduction. For a two-dimensional grid with one marked vertex, Ambainis, Kempe, and Rivosh obtained steps under their coined-walk conventions. Tulsi’s ancilla-controlled modification improves the two-dimensional scaling to . The logarithm, ancilla, start state, marked multiplicity, boundary conditions, and readout procedure cannot be dropped when transplanting either result to another lattice.
Traversal gives a different lesson. Childs, Cleve, Deotto, Farhi, Gutmann, and Spielman constructed a continuous-time walk that traverses an implicitly supplied glued-tree graph with an exponential oracle separation from classical algorithms in that problem. The instance is not an arbitrary explicit graph: its layered structure is promised while vertex labels are hidden behind an adjacency oracle. The output is the exit label reached from the entrance. The result is therefore evidence that coherent propagation can exploit a specially promised oracle graph, not a theorem of generic exponential advantage for graph search, shortest paths, or explicit adjacency lists.
From Walk Queries to Executable Resources
Section titled “From Walk Queries to Executable Resources”Approximation errors accumulate through the actual sequence. For unitary ideal and implemented discrete steps obeying , telescoping gives
For normalized initial states, the final state-vector difference is at most . If is the declared success projector, expanding the difference of quadratic forms gives the conservative probability bound
This worst-case linear estimate may be loose, but replacing it by an assumed incoherent square-root law would be unjustified. Stationary-state preparation error, transition-state preparation error, inverse mismatch, marked-check error, phase-resolution error, and final sampling error should be bounded separately before combining them.
Continuous-time implementations have their own budgets. For Hermitian and under a common time convention, a Duhamel estimate gives
A simulation algorithm then adds approximation and synthesis error beyond any modeling error in the generator. The norm, time, target precision, oracle normalization, and failure probability all influence circuit resources. Physical evolution for time and a digital approximation of are different resource statements even when their ideal unitaries coincide.
An update that uses only two input queries can still need many reversible comparisons, routing operations and memory qubits. Report those costs separately when turning a query theorem into a circuit estimate. Likewise, cached data can make a markedness check cost zero input queries without making its circuit free.
If one independent verified trial succeeds with probability at least a constant , then failures have probability at most , so suffices for failure at most . Coherent amplification can have a different dependence, but requires accurate reflections and inverse operations. Sampling an unverified bit and taking a majority may instead produce two-sided errors.
Finally, a matched comparator receives the same input representation, promise, output information, and error criterion. Comparing a quantum neighbor oracle with a classical explicit adjacency matrix, or a quantum decision bit with a classical list of all collisions, does not isolate the walk’s contribution. Query Complexity supplies the general discipline for these comparisons; the present page specializes it to walk access and outputs.
The reflection-based search uses amplitude amplification and phase estimation. Block encodings and QSVT provides related operator transformations; quantum algorithms for optimization applies walk and tree-search methods to optimization tasks. These connections do not identify the generic graph walk with the specialized Hamiltonian signal walk of qubitization.
Computing the four-cycle distributions
Section titled “Computing the four-cycle distributions”This short NumPy example constructs the complete eight-dimensional unitary in the order . Propagating amplitudes before squaring them reproduces the interference above.
import numpy as np
H = np.array([[1., 1.], [1., -1.]])/np.sqrt(2)C = np.kron(np.eye(4), H)S = np.zeros((8, 8))for x in range(4): S[2*((x-1) % 4), 2*x] = 1 S[2*((x+1) % 4)+1, 2*x+1] = 1U = S @ Cpsi = np.eye(8)[0]for t in range(5): print(t, np.sum(abs(psi.reshape(4, 2))**2, axis=1)) psi = U @ psiThe position distributions are , , , and . Replacing amplitudes by probabilities after every update would instead remove the relative signs responsible for the last two rows.
Common pitfalls
Section titled “Common pitfalls”A faster-spreading wave packet is not yet a faster algorithm. A variance describes a distribution, not a computational answer. A speedup also requires a specified input representation, requested output, success probability and cost comparison.
The same graph can support different walks. Coin choice, moving versus flip-flop shift, adjacency versus Laplacian, marking and measurement can each change the spectrum or output. Keep these choices with any quoted result.
Physical time, queries and gates measure different resources. A continuous evolution time requires an energy scale; a query bound assumes specified coherent input operations. Neither alone gives the cost of a complete device implementation.
Exercises
Section titled “Exercises”1. Unitarity of a coined step. Let with every unitary, and let . Prove that , , and are unitary. Identify what fails if a proposed “shift” erases the incoming vertex label.
Solution
The arc space is an orthogonal direct sum of the outgoing subspaces at each vertex. Therefore
The shift permutes the directed-edge basis and satisfies , hence . It follows that
If a map sends only to , then distinct incoming arcs can acquire the same output. The map is not injective, does not preserve inner products, and cannot be a unitary shift. A reversible implementation must retain enough direction or workspace information to reconstruct the input.
2. Measurement inside the four-cycle walk. Verify the coherent fourth-step state in the worked example. Then measure the complete coin-position basis immediately after step two, discard the outcome, and take one more step. Find the resulting position distribution and compare it with the unmeasured third step.
Solution
At step three the state is . The Hadamard coin maps to , and the moving shift sends to . Thus .
At step two, the four basis states , , , and each have probability . A complete measurement removes all relative phases. From either coin basis state at vertex , the next Hadamard and shift distribute probability equally between vertices and . The same is true from vertex , with the directions interchanged. Averaging the four incoherent branches yields
Without measurement, interference instead gives . With position-only measurement, the two remaining coin states at step two are at vertex and at vertex , each with probability . The next coin and shift send both branches to vertex , one with coin and the other with coin . The position distribution is therefore still , but the coin is mixed. At step four it gives rather than the coherent .
3. Two-vertex continuous-time transfer. Starting from and , derive the exact state, both vertex probabilities, and the first perfect-transfer time. Verify normalization without diagonalizing .
Solution
Because , even and odd powers separate in the exponential series:
Applying this to gives
Hence and . Their sum is one by the trigonometric identity, which verifies normalization. The first positive time with is , or for .
4. Adjacency versus Laplacian evolution. Prove that adjacency and Laplacian conventions can be matched up to a global phase on a -regular graph. Use the three-vertex path to show why the same argument fails on an irregular graph.
Solution
For a -regular graph, and . Comparing with gives . Since the identity commutes with ,
The prefactor multiplies every amplitude by the same phase and cannot change any measurement probability. For the path ––,
which is not a scalar multiple of the identity. The difference therefore assigns a different diagonal energy to the middle vertex. It changes relative phases and cannot be factored out globally. An initial superposition involving the middle vertex and an endpoint distinguishes the two evolutions at arbitrarily short nonzero time.
5. Explicit Szegedy phase-gap bounds. Let and . Derive explicit upper and lower square-root bounds and recover the weaker lower bound used in the search discussion.
Solution
Write . The half-angle identity gives
so
For , . Substituting yields
In particular , as quoted on the page, and the two bounds prove near zero. Constants depend on the convention ; defining the phase as the principal angle rather than the product-reflection angle changes them by a factor of two.
6. Complete mixing and Grover scaling. Apply the MNRS theorem to the chain with marked states. Assume ideal uniform-state preparation and unit-cost update and check. Show that its marked-fraction and gap dependence reduces to Grover scaling.
Solution
Every row of is uniform, so . The stationary eigenvalue is one and every vector orthogonal to the uniform vector has eigenvalue zero. Thus the absolute gap is . If there are marked states, then .
With under the exercise’s ideal access assumptions, MNRS gives
This matches Grover’s query scaling. It does not replace Grover’s exact rotation theorem: the constant factors, state preparation, and implementation of a complete-mixing transition are model dependent. The reduction only shows that the walk-search cost expression contains unstructured search as the unit-gap special case.
7. Johnson parameters and repricing. Derive the marked fraction and lazy gap for the -subset walk, optimize the standard query expression, and then state how update cost and checking cost change it. Evaluate the walk contribution for and .
Solution
For a fixed colliding pair, choose the other indices from possibilities. Dividing by all -subsets gives
The first nontrivial swap-chain adjacency eigenvalue is . After division by and half-lazification,
For constant update cost and zero value-query check cost,
Balancing the terms gives and hence . With general costs, the input-query expression is
in the regime . Thus an expensive check can change the optimum rather than merely its constant. For , . Setting and makes the walk contribution and the setup-plus-walk proxy approximately .
8. A hidden collision and the classical comparison. Suppose . A positive input has exactly one colliding pair, with its two positions uniformly hidden among the possibilities and its distinct values otherwise randomly relabeled. Compare it with a uniformly relabeled injective input. After distinct classical value queries, what is the probability of having exposed both positions? Explain why bounded-error decision needs in this family, and compare this with the quantum walk. What changes in the decision problem when ?
Solution
Until the second member of the collision is queried, the observed values are distinct, and their random labels reveal no preferred location for the hidden partner. Adaptivity therefore does not improve the probability of exposing the pair:
Conditioned on not exposing the pair, the distribution of queried values agrees with that of the randomly relabeled injective input. With equal prior probabilities for the two families, the best success probability is . Success at least requires , hence . Querying every entry gives the matching linear upper bound.
The quantum value-query result is therefore a polynomial improvement for this decision problem. Its cache, coherent updates and comparison gates remain additional resources. If , every input contains a collision by the pigeonhole principle, and the decision has a zero-query answer; this does not automatically output colliding indices.
References
Section titled “References”- S. Aaronson and Y. Shi, “Quantum Lower Bounds for the Collision and the Element Distinctness Problems,” Journal of the ACM 51(4), 595–605 (2004), doi:10.1145/1008731.1008735.
- D. Aharonov, A. Ambainis, J. Kempe, and U. Vazirani, “Quantum Walks on Graphs,” in Proceedings of the 33rd Annual ACM Symposium on Theory of Computing, 50–59 (2001), doi:10.1145/380752.380758.
- A. Ambainis, “Polynomial Degree and Lower Bounds in Quantum Complexity: Collision and Element Distinctness with Small Range,” Theory of Computing 1, 37–46 (2005), doi:10.4086/toc.2005.v001a003.
- A. Ambainis, “Quantum Walk Algorithm for Element Distinctness,” SIAM Journal on Computing 37(1), 210–239 (2007), doi:10.1137/S0097539705447311.
- A. Ambainis, J. Kempe, and A. Rivosh, “Coins Make Quantum Walks Faster,” in Proceedings of the Sixteenth Annual ACM–SIAM Symposium on Discrete Algorithms, 1099–1108 (2005), doi:10.1145/1070432.1070590.
- A. M. Childs, “On the Relationship Between Continuous- and Discrete-Time Quantum Walk,” Communications in Mathematical Physics 294, 581–603 (2010), doi:10.1007/s00220-009-0930-1.
- A. M. Childs, R. Cleve, E. Deotto, E. Farhi, S. Gutmann, and D. A. Spielman, “Exponential Algorithmic Speedup by a Quantum Walk,” in Proceedings of the 35th Annual ACM Symposium on Theory of Computing, 59–68 (2003), doi:10.1145/780542.780552.
- A. M. Childs and J. Goldstone, “Spatial Search by Quantum Walk,” Physical Review A 70, 022314 (2004), doi:10.1103/PhysRevA.70.022314.
- E. Farhi and S. Gutmann, “Quantum Computation and Decision Trees,” Physical Review A 58, 915–928 (1998), doi:10.1103/PhysRevA.58.915.
- F. Magniez, A. Nayak, J. Roland, and M. Santha, “Search via Quantum Walk,” SIAM Journal on Computing 40(1), 142–164 (2011), doi:10.1137/090745854.
- N. Shenvi, J. Kempe, and K. B. Whaley, “Quantum Random-Walk Search Algorithm,” Physical Review A 67, 052307 (2003), doi:10.1103/PhysRevA.67.052307.
- M. Szegedy, “Quantum Speed-Up of Markov Chain Based Algorithms,” in Proceedings of the 45th Annual IEEE Symposium on Foundations of Computer Science, 32–41 (2004), doi:10.1109/FOCS.2004.53.
- A. Tulsi, “Faster Quantum-Walk Algorithm for the Two-Dimensional Spatial Search,” Physical Review A 78, 012310 (2008), doi:10.1103/PhysRevA.78.012310.