What is the function of the CNOT gate?
Expressed in basis states, the CNOT gate: leaves the control qubit unchanged and performs a Pauli-X gate on the target qubit when the control qubit is in state ∣1⟩; leaves the target qubit unchanged when the control qubit is in state ∣0⟩.
Is Cnot entangled?
CNOT – unitary: circuit representation: Any physical two-qubit interaction that can produce entanglement can be turned into a universal two-qubit gate (such as the CNOT gate) when it is augmented by arbitrary single qubit operations.
When does the CNOT gate perform an X-gate?
The CNOT gate performs an X-gate on the target qubit if the control qubit is |1⟩. To represent the CNOT gate as a matrix, we must use the Kronecker product to describe the combined state of our two qubits: The CNOT gate then has the matrix: We can see that the CNOT gate switches the amplitudes of the |10⟩ and |11⟩ states.
What is the unitary matrix for two qubits?
In general, a unitary transformation on n n qubits is a matrix U U of size 2n ×2n 2 n × 2 n (so that it acts on vectors of size 2n 2 n ), such that U −1 = U † U − 1 = U † . For example, the CNOT (controlled-NOT) gate is a commonly used two-qubit gate and is represented by the following unitary matrix:
Can a two qubit gate be written as a tensor product?
Not all two-qubit gates can be written as the tensor product of single-qubit gates. Such a gate is called an entangling gate. One example of an entangling gate is the CNOT gate. The intuition behind a controlled-not gate can be generalized to arbitrary gates.
How is the quantum state of multiple qubits represented?
More generally, you can see that the quantum state of n n qubits is represented by a unit vector v1 ⊗v2 ⊗⋯⊗vn v 1 ⊗ v 2 ⊗ ⋯ ⊗ v n of dimension 2⋅2⋅2⋯ = 2n 2 ⋅ 2 ⋅ 2 ⋯ = 2 n using this construction. Just as with single qubits, the quantum state vector of multiple qubits holds all the information needed to describe the system’s behavior.