Write
153
edits
Line 223: | Line 223: | ||
[[File:SWAP_test_figure.png |center|thumb|500px|Figure 9: Gate Teleporation for Multiple Single Qubit Gates]]</div> | [[File:SWAP_test_figure.png |center|thumb|500px|Figure 9: Gate Teleporation for Multiple Single Qubit Gates]]</div> | ||
[https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.87.167902 Quantum SWAP test ] helps to compare two quantum states <math>|\psi\rangle</math> and <math>|\psi'\rangle</math>. An ancilla qubit is prepared here in the state <math>\frac{|0\rangle + |1\rangle}{2}</math> and a controlled swap test is performed on two states <math>|\psi\rangle</math> and <math>|\psi'\rangle</math>. | [https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.87.167902 Quantum SWAP test (1) ] helps to compare two quantum states <math>|\psi\rangle</math> and <math>|\psi'\rangle</math>. An ancilla qubit is prepared here in the state <math>\frac{|0\rangle + |1\rangle}{2}</math> and a controlled swap test is performed on two states <math>|\psi\rangle</math> and <math>|\psi'\rangle</math>. | ||
If <math>|\psi\rangle</math> = <math>|\psi'\rangle</math>, then the ancilla qubit, after performing a Hadamard operation, yields <math>|0\rangle</math> when measurement is applied in computational basis. The SWAP test passes here. | If <math>|\psi\rangle</math> = <math>|\psi'\rangle</math>, then the ancilla qubit, after performing a Hadamard operation, yields <math>|0\rangle</math> when measurement is applied in computational basis. The SWAP test passes here. |