|
A quantum gate or quantum logic gate is a rudimentary quantum circuit operating on a small number of qubits. They are the analogues for quantum computers to classical logic gates for conventional digital computers. Quantum logic gates unlike classical logic gates are reversible. In fact, they are represented by unitary matrices.
The most common quantum gates operate on spaces of one or two qubits. This means that as matrices, quantum gates can be described by 2 x 2 or 4 x 4 matrices with orthonormal rows.
Remark. The investigation of quantum logic gates is unrelated to quantum logic, which is a foundational formalism for quantum mechanics based on a modification of some of the rules of propositional logic.
Examples
Hadamard gate. This gate operates on a single qubit. It is represented by the Hadamard matrix:
Graphical representation of Hadamard gate
- <math> H = \frac{1}{\sqrt{2}} \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix} <math>
Since the rows of the matrix are orthogonal, H is indeed a unitary matrix.
Phase shifter gates. Gates in this class operate on a single qubit. They are represented by 2 x 2 matrices of the form
- <math> R = \begin{bmatrix} 1 & 0\\ 0 & e^{2 \pi i \theta} \end{bmatrix} <math>
where θ is the phase shift.
Controlled gates. Suppose U is a gate that operates on single qubits with matrix representation
- <math> U = \begin{bmatrix} x_{00} & x_{01} \\ x_{10} & x_{11} \end{bmatrix} <math>
The controlled-U gate is a gate that operates on two qubits in such a way that the first qubit serves as a control.
Graphical representation of controlled- U gate
- <math> | 0 0 \rangle \mapsto | 0 0 \rangle <math>
- <math> | 0 1 \rangle \mapsto | 0 1 \rangle <math>
- <math> | 1 0 \rangle \mapsto | 1 \rangle U |0 \rangle = | 1 \rangle \left(x_{00} |0 \rangle + x_{01} |1 \rangle\right) <math>
- <math> | 1 1 \rangle \mapsto | 1 \rangle U |1 \rangle = | 1 \rangle \left(x_{10} |0 \rangle + x_{11} |1 \rangle\right) <math>
Thus the matrix of the controlled U gate is as follows:
- <math> \operatorname{C}(U) = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & x_{00} & x_{01} \\ 0 & 0 & x_{10} & x_{11} \end{bmatrix}<math>
Uncontrolled gate. We note the difference between the controlled-U gate and an uncontrolled 2 qubit gate
Graphical representation of uncontrolled U gate
<math> I \otimes U <math> defined as follows:
- <math> | 0 0 \rangle \mapsto | 0 \rangle U |0 \rangle <math>
- <math> | 0 1 \rangle \mapsto | 0 \rangle U |1 \rangle <math>
- <math> | 1 0 \rangle \mapsto | 1 \rangle U |0 \rangle <math>
- <math> | 1 1 \rangle \mapsto | 1 \rangle U |1 \rangle <math>
represented by the unitary matrix
- <math> \begin{bmatrix} x_{00} & x_{01} & 0 & 0 \\ x_{10} & x_{11} & 0 & 0 \\ 0 & 0 & x_{00} & x_{01} \\ 0 & 0 & x_{10} & x_{11} \end{bmatrix}.<math>
Since this gate is reducible to more elementary gates it is usually not included in the basic repertoire of quantum gates. It is mentioned here only to contrast it with the previous controlled gate.
References
- M. Nielsen and I. Chuang, Quantum Computation and Quantun Information, cambridge University Press, 2000
|