Consider the classical XOR Gate:
Given a 2 bit system: G=[u1,u2]
XOR(G)=(u1+u2) mod 2
Is the following a good generalizaiton of a Quantum XOR Gate:
Given a 2-qubit system: Q=a1|00]+a2|01]+a3|10]+a4|11]
We now write:
XOR(Q)=a1|0]+a2|1]+a3|1]+a4|0]=(a1+a4)|0]+(a2+a3)|1]
Notice that if we set ai=1 and the rest to 0 that the quantum XOR behaves exactly like a classical XOR but it also has the ability to generalize to fractional and complex ai
Answer
Usually, a XOR quantum gate is implemented by the function :
XOR(Q)=a1|00⟩+a2|01⟩+a4|10⟩+a3|11⟩
The first bit is conserved, while the second bit is the result of an XOR operation between the first and second bit.
For instance, if we have the combination |11⟩, this means, after the transformation : 1 for the first bit (conserved bit) and 1 XOR 1=0 for the second bit, so |11⟩ transforms in |10⟩
No comments:
Post a Comment