Physics Stack Exchange is a question and answer site for active researchers, academics and students of physics. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the output of a CNOT gate if both inputs are in superposition?

CNOT gate

For example, what happens if: $\left|x\right>=\alpha_x\left|0\right>+\beta_x\left|1\right>$ and $\left|y\right>=\alpha_y\left|0\right>+\beta_y\left|1\right>$. Note that the $\alpha$s and $\beta$s can have imaginary parts.

For another example, if:

$$\begin{gather} \alpha_x=0.6\times e^{i\theta_1} \\ \beta_x=0.8\times e^{i\theta_2} \\ \alpha_y = \frac{\sqrt3}{3}\times e^{i\theta_3} \\ \beta_y = \frac{\sqrt6}{3}\times e^{i\theta_4} \end{gather}$$

then what is $\left|x\oplus y\right>$?

share|cite|improve this question
You have to express $|x⟩|y⟩$ in the basis $|0⟩|0⟩, |0⟩|1⟩, |1⟩|0⟩, |1⟩|1⟩$, then apply the matrix C, and you got the output result in the same basis. You have to see then if it is a separable state or not (it seems not) – Trimok Jun 11 '13 at 19:26

Just to re-enforce the hint given by Trimok (Jun 11):

${\text{CNOT[ }} $
$\alpha_x \alpha_y \mid\!0, 0\rangle + \alpha_x \beta_y \mid\!0, 1\rangle + \beta_x \alpha_y \mid\!1, 0\rangle + \beta_x \beta_y \mid\!1, 1\rangle $
${\text{ ]}} := $
$\alpha_x \alpha_y \mid\!0, 0\rangle + \alpha_x \beta_y \mid\!0, 1\rangle + \beta_x \beta_y \mid\!1, 0\rangle + \beta_x \alpha_y \mid\!1, 1\rangle$.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.