Quantum phase estimation (exact, dyadic eigenphase) #
Quantum phase estimation (QPE) reads the eigenphase of a unitary U into a
t-qubit register [Lin22, phaseestimation.tex:510; CEMM98, cemm6.tex:574].
This module formalizes the exact dyadic regime, where the eigenphase is
phi = j / 2^t for some j : Fin (2^t).
The phase-register superposition is kept at the StateVector layer: it is a
linear combination of basis states whose unit-norm proof is not needed until a
result is packaged as a PureState. The readout theorem says that inverse QFT
maps that raw phase vector to the computational-basis vector |j>.
Main results #
LeanPool.LeanQuantumAlg.Gate.applyVec_pow_eigenstate—(U^m)|u> = lam^m |u>for an eigenstate, at the raw-vector layer.LeanPool.LeanQuantumAlg.controlled_pow_kickback— the per-control-qubit phase kickback of the QPE controlled-power ladder.LeanPool.LeanQuantumAlg.phaseState_eq_qftApplyKet—phaseState t (j/2^t) = QFT t |j>.LeanPool.LeanQuantumAlg.QuantumPhaseEstimation.main_exact_dyadic— exact QPE readout.LeanPool.LeanQuantumAlg.QuantumPhaseEstimation.main_exact_probability_one— the basis outcomejhas probability one after the exact readout.
Eigenstates under gate powers #
An eigenstate of U is an eigenstate of every power U ^ m, with the
eigenvalue raised to the same power. This is stated at the raw-vector layer
because lam • u is not itself a PureState unless a unit-norm proof is
supplied.
Per-qubit phase kickback (QPE ladder) #
Per-control-qubit phase kickback for the QPE ladder. The control qubit s
controls U^{2^s}. On |+> ⊗ |u> with eigenvalue exp(2*pi*i*phi), the
controlled power leaves |u> fixed and writes the relative phase
exp(2*pi*i*phi*2^s) onto the |1> branch.
Source-level exact-QPE input: an n-qubit unitary, an eigenstate, and its
eigenphase. The controlled powers of unitary are the oracle calls used by the
phase-estimation ladder.
- unitary : Gate n
The unitary whose phase is estimated.
- eigenstate : PureState n
A normalized eigenstate of
unitary. - phase : ℝ
The real phase
φwith eigenvalueexp(2πiφ). - eigenstate_eq : self.unitary.applyVec self.eigenstate.vec = Complex.exp (2 * ↑Real.pi * ↑self.phase * Complex.I) • self.eigenstate.vec
The eigenstate equation used by exact phase estimation.
Instances For
The per-control-qubit kickbacks available from a source-level QPE input.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Phase superposition and the Fourier bridge #
The QPE phase superposition on a t-qubit register for eigenphase phi:
(1/sqrt N) * sum_k exp(2*pi*i*phi*k) |k>.
Equations
- QuantumAlg.phaseState t phi = WithLp.toLp 2 fun (k : Fin (2 ^ t)) => QuantumAlg.invSqrtN t * Complex.exp (2 * ↑Real.pi * ↑phi * ↑↑k * Complex.I)
Instances For
Dyadic/Fourier bridge: when the eigenphase is j / 2^t, the QPE phase
superposition is exactly QFT t |j>.
Inverse-QFT readout #
The inverse quantum Fourier transform, QFT†.
Equations
Instances For
The inverse QFT undoes the QFT on a basis ket.
Raw-vector form of the inverse-QFT readout.
Exact QPE #
Exact quantum phase estimation. If the eigenphase is the dyadic rational
phi = j / 2^t, then applying inverse QFT to the QPE phase superposition returns
the computational-basis vector |j> exactly.
Trusted decoupled phase-register resource profile for exact dyadic QPE.
Equations
Instances For
Exact QPE readout with the decoupled phase-register resource profile.
Exact QPE from the source-level eigenstate/access assumptions, paired with the trusted controlled-power resource profile.
Exact QPE from the source-level eigenstate/access assumptions, phrased as an exact estimate theorem. In the dyadic regime the phase estimate has zero error, so it satisfies any nonnegative precision and failure-probability thresholds.