Use basis order , with the ancilla first, and put , . Initially the ancilla is at the north pole of the Bloch sphere. The other two qubits lie on its equator at azimuths , with Bloch vectors .
The four dotted cuts, in left-to-right order, have the explicit normalized vectorsThe first Hadamard gate copies the lower-register amplitudes into two control branches; the Fredkin gate exchanges them only in the second branch; the final Hadamard gate adds and subtracts these branches.
Summing the squared magnitudes of the first four entries of givesMeanwhile , soIdentical input qubits give ; orthogonal equatorial inputs give . The factor one half is an ancilla-interference effect, not a direct projective measurement of the lower qubits individually.
Articles by others on the same topic
There are currently no matching articles.