Both and are unitary and Hermitian, so their expectations are real. Run the real-part Hadamard test twice, once with controlled and once with controlled . If the respective ancilla outcome-one probabilities are and , then
The identity in part (b) implements each controlled tensor product by gates on its two target wires with the common control. By linearity,

Articles by others on the same topic (0)

There are currently no matching articles.