Theorem (Hadamard-test cosine readout): the probability of measuring |0> on the ancilla after H-controlled-U-H with U|psi> = e^{i*phi}|psi> is P(0|phi) = 1/2 + (1/2)*cos(phi). Boundary canonicals: phi=0 (U acts as identity on eigenvector)…
Theorem (Hadamard-test cosine readout): the probability of measuring |0> on the ancilla after H-controlled-U-H with U|psi> = e^{i*phi}|psi> is P(0|phi) = 1/2 + (1/2)*cos(phi). Boundary canonicals: phi=0 (U acts as identity on eigenvector)…