One ancilla prepared in |+>, a controlled-U and a measurement of the ancilla in the X (or Y) basis give the outcome +1 with probability (1 + Re Tr(rho U))/2 (or (1 + Im Tr(rho U))/2), so repeated runs estimate the expectation value of a unitary.
Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01
AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.
Pr[X=+1]=21(1+ReTr(ρU)),Pr[Y=+1]=21(1+ImTr(ρU))
For a pure target state ∣ψ⟩, controlled-U maps ∣+⟩∣ψ⟩ to
21(∣0⟩∣ψ⟩+∣1⟩U∣ψ⟩). Projecting the ancilla onto
∣+⟩ leaves 21(∣ψ⟩+U∣ψ⟩), of squared norm
21(1+Re⟨ψ∣U∣ψ⟩); projecting onto
(∣0⟩+i∣1⟩)/2 leaves 21(∣ψ⟩−iU∣ψ⟩), of squared norm
21(1+Im⟨ψ∣U∣ψ⟩). Both are affine in
∣ψ⟩⟨ψ∣, so for a mixed state ⟨ψ∣U∣ψ⟩ becomes
Tr(ρU).
Each run is a ±1 random variable with mean ReTr(ρU) (or the
imaginary part), so by Hoeffding's inequality N≥(2/η2)ln(2/γ) runs
estimate it to additive error η with probability at least 1−γ. For an
eigenvector, Tr(ρU)=e2πiφ: this is the single-ancilla phase
measurement of Kitaev, and replacing U by U2s yields one bit
of information about 2sφ, the building block of iterative phase estimation. It
also appears as the one-control-qubit case of the analysis of
Cleve, Ekert, Macchiavello and Mosca. It
costs O(1/η2) runs, against the O(1/η) uses of U of
phase estimation.
Holds when
The controlled unitary is exactly ∣0⟩⟨0∣⊗I+∣1⟩⟨1∣⊗U; a different global phase of U changes the result.
ρ is any state of the target register; for the Y-basis version the ancilla is measured in the basis (∣0⟩±i∣1⟩)/2.
Claude (AI drafting assistant)Writing, original draft (CRediT roles)
Review history
Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)
Both outcome probabilities re-derived for pure states (projection onto |+> and onto (|0> + i|1>)/sqrt2) and extended to mixed states by linearity; the Hoeffding sample count N >= (2/eta^2) ln(2/gamma) for +-1 variables re-derived. Attribution compared with Kitaev arXiv:quant-ph/9511026 abstract (procedure for measuring an eigenvalue of a unitary) and Cleve-Ekert-Macchiavello-Mosca arXiv:quant-ph/9708016 Section 5 (which cites Kitaev's method as the motivation).
Revision history
2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10
Current revision 60d14f2a1e59dd94. Source file knowledge/records/equation/hadamard-test.md in the content repository (readable there once it is public).