How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Element-distinctness gate cost in the QRAM model
Statement
Fix an injective encoding of values in by bits and take the parameter from Element-distinctness O(N^{2/3}) query bound. For , the finite canonical storage of Canonical hash-bucket and nested skip-list storage has hash-table lookup, rank/select, complement-unranking, value insertion/deletion, and collision-check subroutines with QRAM gate-time when their bounded searches do not overrun; the table uses memory bits. A fixed threshold is chosen below; the search uses this storage for and direct value comparison for the finite range .
For , let be the gate-time of the supplied uniform -subset preparation. Assume an explicit compatible realization of the controlled/inverse Johnson-walk access used by reversible finding exists on this canonical storage, uses the local operations proved below with their reversible overflow/overrun caps, and preserves the hash seed. Let be the maximum gate-time of one charged walk-update unit in that realization, including the forward, inverse, controlled, reflection, and swap capabilities supplied for the lazy Johnson walk in Finite row-preparation access model for a Szegedy walk and any encoding conversion. Under this explicit interface assumption, the complete search has value-query cost and gate-time
The local storage operations are proved below; this item does not construct the compatible full row-access circuit or derive polylogarithmic bounds for and . The unconditional gate-time conclusion requires and .
The phase-estimation part of this gate-time profile uses the ideal continuous-rotation submodel of Phase-estimation query and gate costs, where each exact controlled phase is one gate occurrence. Any synthesis overhead for a fixed finite gate alphabet is a separate cost.
For a Boolean value circuit with non-input nodes, including constants, input-port uses counted with multiplicity, and output bits, the serial compiler Reversible embedding of a Boolean circuit implements one reversible XOR value query using at most ordinary gate occurrences. With the full DAG-layer parameters of Parallel depth of reversible Boolean embedding (including any non-output nodes), its alternative parallel implementation uses at most occurrences and has depth at most
This bounds the written depth of the supplied parallel schedule under Finite circuit resource accounting. It does not claim minimum-layer depth or include the other ordinary gates used by the walk data structure.
Facts & Assumptions
Given: The query search and its marked-subset promise, the lazy Johnson update, the stated finite QRAM gate, and the explicit reversible Boolean compiler.
Element-distinctness O(N^{2/3}) query bound: for , the walk has , marked mass at least , stored-vertex setup value-query cost , elementary replacement-update cost , and check cost ; its controlled row construction has stationary edge setup at most , controlled row reflection at most , and controlled access at most value queries.
Element-distinctness Johnson walk and value access: a vertex stores an -subset and injectively encoded values; a neighbor replaces one selected index by one unselected index; its marked predicate is the presence of an equal-value pair.
Random-access quantum-memory gate model: an addressed call swaps the target bit with the addressed memory bit, is its own inverse, and costs one QRAM gate-time unit.
Coherent XOR function oracle: a value query is the supplied reversible action , so the same oracle erases a stored value.
Reversible embedding of a Boolean circuit: the Boolean input is a topologically ordered DAG with constants and NOT/AND/OR nodes, and an ordered list of output ports, which may repeat input or non-input nodes. Here counts every non-input node, including constants, and counts gate input-port uses with multiplicity.
Gate, workspace, and serial-depth costs of reversible embedding: the serial compute-copy-reverse compiler implements one clean XOR query using at most gate occurrences, where includes constants.
Parallel depth of reversible Boolean embedding: a fanout-aware explicit schedule has depth for and .
Finite circuit resource accounting: size counts gate occurrences; depth in this profile is the number of written layers; query and QRAM costs are distinct coordinates.
For every prime and , a field with elements exists and For every finite field and every , a monic irreducible polynomial of degree exists: for every there is a field of order with a polynomial-basis representation from an irreducible degree- polynomial.
Toffoli and Fredkin gates: a Fredkin gate swaps its two targets exactly when its control is one.
Finite reversible-walk finding cost: with supplied dyadic gap and marked-mass lower bounds and fixed dyadic target , the complete capped wrapper succeeds with probability at least when a marked state exists, has one-sided error, charges every fresh stationary-state preparation, and assigning unit cost to each controlled walk update and mark check bounds their total number by .
Canonical hash-bucket and nested skip-list storage: hash buckets store stable input-index identifiers; two nested skip lists store index and orders with rank spans; each level is determined by independent promotion bits; a capped search tests at most entries per level.
Projective measurement outcome weights are probabilities: the probability of a projective outcome with projection on unit state is .
Phase-estimation query and gate costs: an -bit phase-estimation run has phase-register and inverse-QFT gate occurrences in the ideal continuous-rotation submodel; each run uses at least one controlled-walk query.
The inner-product norm is definite, homogeneous, and satisfies the triangle inequality: the inner-product norm satisfies the triangle inequality.
Finite instruments can be coherently deferred: a finite instrument followed by finitely many outcome-controlled unitary suffixes has an exact coherent implementation retaining an outcome record, with the same complete branch maps.
Proof
For , the clamp in [F1] is . Set , , , , and . The function decreases for , because its logarithmic derivative is ; indeed there. Since , this gives . Also , so and . Finally . By [F9], fix a polynomial-basis representation of ; its irreducible polynomial is a finite hardwired setup description whose generation time is separate.
For fixed and seed, place each in its hash bucket and build the two canonical lists of [F12]. Pad each list to a power-of-two length with sentinels. A bitonic sorting network recursively sorts the two halves in opposite directions and merges them by comparing pairs at distance , then recursively merging both halves. A bitonic sequence becomes, after thresholding its keys at any fixed threshold, a circular interval of bits; the half-distance compare-exchanges place either all bits in the low half or all bits in the high half, leaving each half bitonic. Induction proves merge correctness, and thresholding between any alleged inverted output pair would give a Boolean failure, so the network sorts the original keys. A merge uses comparisons and the sorting recurrence gives compare-exchanges. Each comparison of -bit records uses Boolean gates; compute its decision bit into clean history, conditionally swap the records using Fredkin gates, copy the sorted list records, and reverse the network to erase the comparison history. This gives a reversible compute-copy-uncompute sort using gate-time. A scan of the sorted lists computes all level links and spans in writes and computes the collision counter from the equal-value runs. If an insertion would exceed a bucket's slots, use the fixed overflow sentinel of [F12]. The resulting storage is a deterministic function of , so it is independent of the history of the walk.
Choose independent uniform coefficient vectors in and use them for in [F12]. For any distinct addresses, the first columns of their Vandermonde evaluation matrix have determinant , so the evaluations are uniform on . Thus the bucket labels are -wise independent and uniform in , and each promotion-bit family is -wise independent and fair. Preparing the coefficient strings uniformly with Hadamards uses seed bits.
The index-list spans select the -th member of and compute by one bounded skip-list search. Define for , where . It is nondecreasing and increases by one exactly at an unselected index. Binary search for the least with therefore gives the -th element of and uses rank searches. Each list search has at most forward entries per level, and each stable node identifier resolves by evaluating and scanning at most slots in its bucket. Here is a finite bit-cost implementation of these operations. For -bit field elements, addition is bitwise XOR. A polynomial-basis multiplication forms the pairwise bit products and reduces their carryless product modulo the fixed degree- irreducible polynomial using Boolean gates; it has serial depth when evaluated by the direct nested-loop circuit. Horner evaluation of one degree-< polynomial therefore uses Boolean gates and depth, since . Evaluating computes a bucket address within this cost; computing the height of a newly inserted index evaluates at most promotion polynomials and costs gates and depth. Compute-copy-uncompute using [F6] makes these deterministic calculations reversible with constant-factor gate overhead; the multiplication scratch can be reused. Each stored record has bits. Scanning a bucket costs at most addressed swaps, while its hash computation uses the field-evaluation circuit above. A lexicographic key comparison on the index/value bits uses Boolean gates and depth by a sequential bit comparison. A rank traversal visits at most entries; span accumulation adds or compares -bit integers, so one rank search has QRAM calls and ordinary gates. Complement unranking consequently has such costs. These bounds establish finite polylogarithmic lookup, selected-index, and complement-unranking procedures whenever the capped searches do not overrun.
The QRAM table has slots. Each slot stores an index, a -bit value, and pointers and spans of bits each, hence bits. The seed, counters, rank registers, arithmetic workspace, and comparator-history scratch add bits. Therefore total table and workspace memory is . The finite initial table and both sorted lists can be built by the reversible networks in step 1.2 using gate-time after the value loads.
To update the stored subset, delete the removed index from the index and value lists, apply one inverse XOR query to erase its value, apply one forward XOR query to load the inserted value, and insert its record into both lists. The predecessor search on each level supplies the crossing edge and its old span. If a list has length and insertion is at base rank , old keys of rank at least move up by one. At each level containing the new key , replace the crossing span by the two exact differences and , where and are its predecessor and successor in the old level list; if is absent at that level, increment the crossing span by one. For deletion of a key of base rank , if is present at a level, replace spans and by ; if it is absent, decrement the unique crossing span by one. The head has rank and a missing successor is treated as a virtual tail of rank equal to the current list length, so the same formulas cover both endpoints. Each updated span is an integer at most and fits in bits. Ripple-carry addition, subtraction, and comparison use Boolean gates and depth per operation; at most predecessor paths of at most entries and span writes are needed. Their arithmetic, record reads, and writes therefore have polylogarithmic gate and QRAM costs. Two bounded searches in the value list, at and , give the multiplicity of a value ; maintain the number of value classes with multiplicity at least two, decrementing when a deletion changes multiplicity two to one and incrementing when an insertion changes one to two. This counter makes the marked check an exact zero test with no value query. Compute its nonzero bit into the fresh check flag by reversible XOR and undo the comparison scratch, leaving the canonical memory and every other existing register fixed; the reversed circuit supplies the inverse check at the same polylogarithmic gate/QRAM cost. The fresh-flag Lüders readout and inverse specified by the finding algorithm then implement its required retained-state instrument, with both check calls and the readout charged separately. Reversing these finite operations restores the canonical table. A controlled memory-bit access uses two addressed swaps with clean scratch and a Fredkin between them, so it has constant-factor QRAM overhead by [F3, F10]. Thus the local update and marked-check subroutines use QRAM time and gates whenever their searches fit the cap.
For fixed and a bucket , let count its selected indices. The -wise hash family from step 2.1 gives, with , . Since , , and (each factor is at least ), this is at most . With and , . A union bound over buckets gives probability at most .
Put . For either fixed key order and each level , condition on the seeds for levels below ; this fixes the level- list and its key order. Among at most consecutive windows of nodes, -wise independence makes the chance that the promotion bits are all zero or all one equal to . A union bound over two lists and levels gives probability at most . These events control the traversals below level ; the initial traversal at level needs a separate occupancy bound.
Let count nodes of with height ; it is the same count in both key orders. For any distinct nodes, step 2.1 and independence of the promotion seeds give probability that all reach level . Thus , since , , and . Outside this event, the top list has fewer than nodes, and deleting and inserting one node leaves at most there. Below the top level, absence of the run events in step 3.3 bounds every run of unpromoted nodes by . Deleting a promoted node can merge two such runs, and the subsequent insertion can add at most one unpromoted node, giving at most consecutive unpromoted nodes. A search descends from the predecessor found at the next level and inspects only such a run and its boundary entries. Hence every search before, during, or after one replacement fits entries at each lower level; the top traversal also fits this cap.
Call a seed bad for if some bucket has occupancy at least or a run event of step 3.3 or the top-level event of step 4.1 occurs. Its probability is by steps 3.2, 3.3, and 4.1. Cap every bounded lookup, rank, select, and collision check after the prescribed bucket/level limits: a failed read writes a fixed invalid sentinel to its clean output and leaves the canonical table unchanged; a failed check returns the non-marked bit. For a Johnson replacement, compute all endpoint and search flags before modifying the table and apply the toggle only if both endpoint loads are below and every search fits; otherwise act as the identity. This update cap is symmetric in its endpoints, so the accepted toggle is an involution and the rejected basis states are fixed. A coherent row access applies the same cap to each coin-labelled replacement branch, retaining the coin label so distinct source/successor blocks remain orthogonal. Read/check caps are reversible XORs into clean outputs. Thus each cap is a finite unitary and agrees with the ideal operation on every good configuration. The initial table is a deterministic isometry; it agrees with the ideal stored representation on good seeds and can differ only on the bad-seed block.
For a fixed subset and neighbor, either endpoint is bad with probability at most by the union bound. The retained logical labels make distinct subset/neighbor blocks orthogonal, so on a state whose seed is uniform conditional on each logical history, the squared norm of the bad block for one logical data-access unit is at most . Since the capped and ideal operations are unitary and agree off that block, their state-vector difference on that prefix is at most . The same estimate covers the initial table encoding, a one-subset check, and the final capped scan. The finding algorithm has only finitely many Lüders tests and outcome-controlled unitary suffixes. By [F17], defer those measurements to outcome-record registers; the ideal search and its recorded branch controls are independent of the hash seed, while the canonical table is a deterministic encoding of the current subset and seed. Hence each ideal prefix keeps the seed uniform conditional on its logical labels and recorded outcomes, as required for the bad-block bound.
Write and . For , define for the least integer with , determined by exact rational comparisons; then . Supply , , and to [F11]. Since , ; since and , . Thus and . Counting each capped walk update and mark check as one logical operation, [F11] gives such operations. The complete wrapper makes only fresh stationary preparations at this fixed failure target. Each uses value queries by [F1], so all setups together use queries; table encoding and final reading occur only times. Thus even counting every setup query, . A hybrid over these data-dependent operations gives state-vector error at most . The final success probability changes by at most twice this error: [F13] writes it as for the success projection, [F16] bounds by , and [F15] bounds the difference of squares. Since , this probability error tends to zero; choose fixed large enough that it is at most for all . The fixed target includes only a constant number of fresh outer trials in the complete wrapper, so all its calls are included in . By [F11], the ideal wrapper succeeds with probability at least ; its capped-storage implementation therefore succeeds with probability at least . Verify any reported pair directly with two value queries; this preserves one-sided error and adds only queries.
On the walk branch , the actual gap is by [F1] and the marked mass is at least by [F1]. Use the dyadic bounds fixed in step 7.1; they satisfy . By [F1], the coherent Johnson row preparation has stationary edge setup at most , controlled row reflection at most , and controlled access at most value queries; thus the complete fixed-target wrapper in [F11], with all its fresh setups counted as in step 7.1, gives value queries. Moreover and , so the phase-register lengths in the reversible-finding algorithm are . Each phase-estimation run therefore uses phase-register and inverse-QFT gates by [F14]; the number of such runs is at most the number of controlled-walk calls because each run uses at least one. Reversible arithmetic and local checks add gate-time per charged update. Each fresh stationary preparation charges for its uniform subset, for value loading and table construction, and for its edge-row preparation. There are only fresh preparations by step 7.1, so their total cost is . The final stored-value scan costs . Charging each of the walk-access units at gives the stated formula; direct verification of a reported pair costs at most two further value queries and polylogarithmic gate-time. For , direct pair comparison uses value queries and gates; since is a fixed constant, this finite branch is absorbed by the asymptotic bounds. The phase-gate bound is in the ideal continuous-rotation submodel; fixed-alphabet synthesis and a polylogarithmic bound for are not proved here.
For the optional Boolean value circuit, [F5] counts every non-input node, including unused constants, in , so [F6] gives the serial bound . The parallel construction in [F7] instead uses at most evaluation/reversal gates, input fanout/unfanout gates across the two passes, output fanout/unfanout gates, and output CNOTs, totaling at most . Its stated depth follows by substituting and in [F7]. These are separate implementations of the same XOR query; their occurrence and written-depth bounds do not assert minimum depth or bound the other walk gates.
Depends on
- Element-distinctness O(N^{2/3}) query bound
- Finite reversible-walk finding cost
- Phase-estimation query and gate costs
- Random-access quantum-memory gate model
- Element-distinctness Johnson walk and value access
- Canonical hash-bucket and nested skip-list storage
- Finite row-preparation access model for a Szegedy walk
- Coherent XOR function oracle
- Boolean circuits: basis, fan-in, size, and depth
- Reversible embedding of a Boolean circuit
- Gate, workspace, and serial-depth costs of reversible embedding
- Parallel depth of reversible Boolean embedding
- Finite circuit resource accounting
- Toffoli and Fredkin gates
- For every prime $p$ and $n\ge1$, a field with $p^n$ elements exists
- For every finite field $\mathbb F_q$ and every $n\ge1$, a monic irreducible polynomial of degree $n$ exists
- Projective measurement outcome weights are probabilities
- Finite instruments can be coherently deferred
- The inner-product norm is definite, homogeneous, and satisfies the triangle inequality
- The reverse triangle inequality in a normed space
Used by
Nothing in the library uses this result yet.
Dependency tree · two levels
116 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.
Sources
- Andris Ambainis, Quantum walk algorithm for element distinctness, §6.2 and Lemmas 5–6 (standard reference, not scraped)
- Andrew M. Childs, Lecture Notes on Quantum Algorithms, Chapter 20, §§20.1–20.3 (standard reference, not scraped)
- Ronald de Wolf, Quantum Computing: Lecture Notes, Chapter 8, §8.3.2 (standard reference, not scraped)