The modular-multiplication gate satisfies
ProvedShorWiki.mulModGate_pow_ordquantum-computingshor-algorithm
Let with , let and . The -qubit gate
satisfies
This periodicity of the gate is what quantum phase estimation exploits: it determines the spectrum of .
Preamble
import Mathlib import Definitions.Def_ShorWiki_Defs open Matrix Kronecker
Formal statement
namespace ShorWiki
theorem mulModGate_pow_ord (N a : ℕ) (ha : 1 < a) (haN : a < N)
(hcop : Nat.Coprime a N) :
mulModGate N a (regBits N) ^ ord N a = 1 := by sorry
end ShorWiki
Source
Wikipedia, "Shor's algorithm", revision oldid=1378862216, https://en.wikipedia.org/w/index.php?title=Shor%27s_algorithm&oldid=1378862216, section "Quantum phase estimation" (PDF p. 4)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.