Order finding (exact, dyadic period r ∣ 2^t) #
Order finding is the quantum core of Shor's factoring algorithm. This module
formalizes the exact regime where the period divides the register size,
r ∣ 2^t. In that regime the eigenphase s/r is dyadic, quantum phase
estimation returns the basis index j = s * (2^t / r) exactly, and a classical
gcd recovers the order.
Classical order recovery #
Exact order finding via phase estimation #
Exact order finding through the decoupled QPE interface. The inverse-QFT
readout is stated at the raw-vector layer because the phase superposition is a
linear combination before it is packaged as a PureState.
Trusted decoupled resource profile for exact order finding: one modular- exponentiation oracle call feeding an inverse-QFT/readout layer.
Equations
- QuantumAlg.OrderFinding.orderFindingExactResourceProfile t = { oracleQueries := 1, hadamardGates := t, elementaryGates := t ^ 2, classicalOps := 1 }
Instances For
Target-register update for the modular-exponentiation oracle:
y ↦ y xor (x^a mod N).
Instances For
The basis permutation underlying the modular-exponentiation oracle.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The modular-exponentiation oracle gate in the public access model:
U_x |a,y> = |a, y xor (x^a mod N)>.
Equations
Instances For
Basis action of the modular-exponentiation oracle.
Exact order finding paired with the decoupled resource profile.
Exact order-finding output index paired with the public one-query resource
claim. If q = 2^t is a multiple of the order r, then every
s ∈ {0, ..., r-1} gives a valid phase-register output index
j = s(q/r). The modular-exponentiation oracle body is treated as one oracle
call in this resource profile.
Integrated exact order-finding access theorem: the modular-exponentiation oracle is a unitary gate with the public basis action, and the exact divisible case has a phase-register output index with the trusted one-query resource profile.