Controlled NOT Gate: Explained

  • Thread starter Dragonfall
  • Start date
  • Tags
    Gate
In summary, the conversation discusses the concept of a controlled NOT gate in quantum computing and the difference between the direct sum and tensor product of individual state spaces. The participants use mathematical notation and explain the state vector representation in terms of joint amplitudes.
  • #1
Dragonfall
1,030
4
I'm not sure where to post this, so here it is:

[tex]\left[\begin{array}{cccc}
1&0&0&0\\
0&1&0&0\\
0&0&0&1\\
0&0&1&0\\
\end{array}\right][/tex]

How is this a controlled NOT gate? If I multiply this with [tex]\left[\begin{array}{c}1\\0\\1\\0\end{array}\right][/tex], the second bit is flipped regardless.
 
Mathematics news on Phys.org
  • #2
That looks fine to me. Maybe it would be more clear with Kronecker products in the ket notation? Let |0> and |1> denote the standard basis on C². Then...

[tex]
\left[\begin{array}{c}1\\0\\1\\0\end{array}\right]
= |0\rangle \otimes |0\rangle + |1\rangle \otimes |0\rangle
[/tex]

while

[tex]
\left[\begin{array}{c}1\\0\\0\\1\end{array}\right]
= |0\rangle \otimes |0\rangle + |1\rangle \otimes |1\rangle
[/tex]
 
  • #3
Which coordinates in that column vector represents the control, and which the target bit?
 
  • #4
Dragonfall said:
Which coordinates in that column vector represents the control, and which the target bit?
You're thinking classically. Your state vector cannot be partitioned into "control" and "target" parts -- instead, the vector represents the joint amplitudes of the two qubits. In your chosen basis, the components of the state vector correspond to each of the four ways to choose a basis vector for each qubit. If you had three qubits, your state vector would have eight components.

Algebraically, the joint state space is the tensor product of the individual state spaces. You, however, were thinking of the direct sum (equivalently, direct product) of the individual state spaces.
 
  • #5
So suppose my control bit is 0, and target is 1, then the vector representing the joint amplitudes of them (on which the matrix acts) is [tex]\left[\begin{array}{c}1\\0\end{array}\right] \otimes \left[\begin{array}{c}0\\1\end{array}\right] = \left[\begin{array}{c}0\\1\\0\\0\end{array}\right][/tex]
 
Last edited:
  • #6
That looks right.
 

FAQ: Controlled NOT Gate: Explained

What is a Controlled NOT Gate?

A Controlled NOT Gate is a type of logic gate used in digital circuits that takes in two inputs, a control input and a target input, and produces an output based on the control input. It is also known as a CNOT gate or a Controlled Inverter.

How does a Controlled NOT Gate work?

A Controlled NOT Gate works by flipping the state of the target input if and only if the control input is in a specific state, typically 1 or “true”. If the control input is 0 or “false”, the target input remains unchanged. This behavior is represented by the truth table for a CNOT gate.

What is the symbol for a Controlled NOT Gate?

The symbol for a Controlled NOT Gate is a triangle with a small circle on its lower left side, representing the control input, and a diagonal line connecting to a larger circle on its lower right side, representing the target input. This symbol is often used in circuit diagrams to represent the CNOT gate.

What are the applications of a Controlled NOT Gate?

Controlled NOT Gates are commonly used in quantum computing circuits, where they are used to perform logical operations on qubits. They are also used in classical computing circuits for error correction and data manipulation.

What is the difference between a Controlled NOT Gate and an XOR Gate?

While both gates have two inputs and one output, the main difference between a Controlled NOT Gate and an XOR Gate is that the former has a control input that determines whether the target input is flipped or not, while the latter produces an output based on the exclusive OR of the two inputs. Additionally, an XOR Gate can have more than one control input, while a CNOT gate only has one control input.

Similar threads

Replies
2
Views
1K
Replies
4
Views
1K
Replies
1
Views
1K
Replies
1
Views
1K
Replies
2
Views
864
Replies
3
Views
1K
Back
Top