The map is a bijection and an involution, so its permutation matrix satisfies
In particular , which proves that is a unitary operator. Equivalently, it permutes the computational basis and therefore preserves every inner product.
Applying the two modular-addition quantum oracles consecutively adds to the answer register. Thus
Let . Applying , then , then gives
Therefore
using one query and two unitary operators independent of . This is modular-oracle inversion by negation.
Let the known phase gate on the answer register be
where the comparison uses ordinary integers, not modular arithmetic. A reversible circuit computes the predicate, applies a Pauli Z gate to its flag, then performs uncomputation.
The compute-phase-uncompute construction now gives
Use modular-oracle inversion by negation to realize the last operation with one further query. Exactly two oracle queries implement , returning the answer register and comparison workspace to their initial states.
An injective self-map of the finite set is a bijection. For sufficiently large , exactly
outputs satisfy the integer comparison, so there are exactly good inputs. Prepare the uniform superposition state , whose good probability is
Use the phase oracle from the previous part and the reflection . The amplitude amplification theorem requires iterations; each uses two queries, while the state preparation and its reflection are independent of . With the nearest-integer iteration count from that theorem, the failure probability is at most , tending to zero. Therefore the success probability eventually exceeds , with
This is a bound on quantum query complexity; implementation costs of the known gates are not counted as oracle queries.

Articles by others on the same topic (0)

There are currently no matching articles.