Quantum Computing Asked by Visipi on August 20, 2021
I have two states $|{psi}rangle = begin{pmatrix} a_1\a_2 end{pmatrix}$ and $|{phi}rangle = begin{pmatrix} b_1 \ b_2 end{pmatrix} $ that I want to "add" together. By "add," I of course mean perform the xor operation $|{psi} oplus {phi}rangle$.
I have an intuitive understanding of what this means since I’m familiar with bitwise operations, but I’m struggling to understand what the resulting state would look like.
My initial thought was to split the states into the logical basis and sum the components.
$a_1|{0}rangle + a_2|{1}rangle + b_1|{0}rangle + b_2|{1}rangle$
But this doesn’t seem right. If my assumption that $|{0}rangle + |{psi}rangle = |{psi}rangle$ is correct, then $a_1|{0}rangle + b_1|{0}rangle = a_1(|{0}rangle + frac{b_1}{a_1}|{0}rangle) = a_1(frac{b_1}{a_1}|{0}rangle) = b_1|{0}rangle$ which misses the point of the sum altogether.
What is my misunderstanding, and what is $|{psi} oplus {phi}rangle$ is in terms of $a_1, b_1, a_2, b_2$?
The XOR operation is not a well defined action in quantum computing since it is non-reversible. (For example: $|0 oplus 0rangle = |1 oplus 1rangle = |0rangle $) However, XOR is implicit in the CNOT operation, as CNOT$(|a,brangle) = |a, a oplus brangle$ Hence to answer my own question:
CNOT$(|psi otimes phirangle) = begin{pmatrix} a_1b_1 \ a_1b_2 \ a_2b_2 \ a_2b_1end{pmatrix}$
If I'm not mistaken, the state of the target qubit is then given by:
$(a_1b_1 +a_2b_2)|0rangle + (a_1b_2 + a_2b_1)|1rangle$
Under some normalization
Correct answer by Visipi on August 20, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP