The map is a bijection and an involution, so its permutation matrix satisfiesIn 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. ThusLet . Applying , then , then givesThereforeusing one query and two unitary operators independent of . This is modular-oracle inversion by negation.
Let the known phase gate on the answer register bewhere 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 givesUse 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 , exactlyoutputs satisfy the integer comparison, so there are exactly good inputs. Prepare the uniform superposition state , whose good probability isUse 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 , withThis 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
There are currently no matching articles.