List of quantum logic gates
In gate-based quantum computing, various sets of quantum logic gates are commonly used to express quantum operations. The following tables list several unitary quantum logic gates, together with their common name, how they are represented, and some of their properties. Controlled or conjugate transpose (adjoint) versions of some of these gates may not be listed.
Identity gate and global phase
Name | # qubits | Operator symbol | Matrix | Circuit diagram | Properties | Refs |
---|---|---|---|---|---|---|
Identity,
no-op |
1 (any) | [math]\displaystyle{ I,\;\mathbb{I} }[/math], đťź™ | [math]\displaystyle{ \begin{bmatrix} 1 & 0 \\ 0 & 1\end{bmatrix} }[/math] | or |
[1] | |
Global phase | 1 (any) | [math]\displaystyle{ \mathrm{Ph} }[/math], [math]\displaystyle{ \mathrm{Phase} }[/math] or [math]\displaystyle{ \mathrm e^{i\delta}I }[/math] | [math]\displaystyle{ \mathrm{e}^{i\delta}\begin{bmatrix} 1 & 0 \\ 0 & 1\end{bmatrix} }[/math] |
|
[1] |
The identity gate is the identity operation [math]\displaystyle{ I|\psi\rangle=|\psi\rangle }[/math], most of the times this gate is not indicated in circuit diagrams, but it is useful when describing mathematical results.
It has been described as being a "wait cycle",[2] and a NOP.[3][1]
The global phase gate introduces a global phase [math]\displaystyle{ e^{i\varphi} }[/math] to the whole qubit quantum state. A quantum state is uniquely defined up to a phase. Because of the Born rule, a phase factor has no effect on a measurement outcome: [math]\displaystyle{ |e^{i\varphi}|=1 }[/math] for any [math]\displaystyle{ \varphi }[/math].
Because [math]\displaystyle{ e^{i\delta}|\psi\rangle \otimes |\phi\rangle = e^{i\delta}(|\psi\rangle \otimes |\phi\rangle), }[/math] when the global phase gate is applied to a single qubit in a quantum register, the entire register's global phase is changed.
Also, [math]\displaystyle{ \mathrm{Ph}(0)=I. }[/math]
These gates can be extended to any number of qubits or qudits.
Clifford qubit gates
This table includes commonly used Clifford gates for qubits.[1][4][5]
Names | # qubits | Operator symbol | Matrix | Circuit diagram | Some properties | Refs |
---|---|---|---|---|---|---|
Pauli X, NOT, bit flip |
1 | [math]\displaystyle{ X,\;\mathrm{NOT},\;\sigma_x }[/math] | [math]\displaystyle{ \begin{bmatrix} 0 & 1 \\ 1 & 0\end{bmatrix} }[/math] |
|
[1][6] | |
Pauli Y | 1 | [math]\displaystyle{ Y,\;\sigma_y }[/math] | [math]\displaystyle{ \begin{bmatrix} 0 & -i \\ i & 0\end{bmatrix} }[/math] |
|
[1][6] | |
Pauli Z, phase flip |
1 | [math]\displaystyle{ Z,\;\sigma_z }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 \\ 0 & -1\end{bmatrix} }[/math] |
|
[1][6] | |
Phase gate S, square root of Z |
1 | [math]\displaystyle{ S,\;P,\;\sqrt{Z} }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 \\ 0 & i\end{bmatrix} }[/math] | [1][6] | ||
Square root of X, square root of NOT |
1 | [math]\displaystyle{ \sqrt{X} }[/math], [math]\displaystyle{ V }[/math], [math]\displaystyle{ \sqrt{\mathrm{NOT}},\;\mathrm{SX} }[/math] | [math]\displaystyle{ \frac{1}{2}\begin{bmatrix} 1+i & 1-i \\ 1-i & 1+i\end{bmatrix} }[/math] | [1][7] | ||
Hadamard, Walsh-Hadamard |
1 | [math]\displaystyle{ H }[/math] | [math]\displaystyle{ \frac{1}{\sqrt{2}}\begin{bmatrix} 1 & 1 \\ 1 & -1\end{bmatrix} }[/math] |
|
[1][6] | |
Controlled NOT, controlled-X, controlled-bit flip, reversible exclusive OR, Feynman |
2 | [math]\displaystyle{ \mathrm{CNOT} }[/math], [math]\displaystyle{ \mathrm{XOR},\;\mathrm{CX} }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\0 & 0 & 0 & 1 \\ 0 & 0 & 1 & 0\end{bmatrix} }[/math] [math]\displaystyle{ \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 \\0 & 0 & 1 &0 \\ 0 & 1 & 0 & 0\end{bmatrix} }[/math] |
Implementation: |
[1][6] | |
Anticontrolled-NOT, anticontrolled-X, zero control, control-on-0-NOT, reversible exclusive NOR |
2 | [math]\displaystyle{ \overline{\mathrm C}\mathrm X }[/math], [math]\displaystyle{ \text{controlled[0]-NOT} }[/math], [math]\displaystyle{ \mathrm{XNOR} }[/math] | [math]\displaystyle{ \begin{bmatrix} 0 & 1 & 0 & 0 \\ 1 & 0 & 0 & 0 \\0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1\end{bmatrix} }[/math] |
|
[1] | |
Controlled-Z, controlled sign flip, controlled phase flip |
2 | [math]\displaystyle{ \mathrm{CZ} }[/math], [math]\displaystyle{ \mathrm{CPF} }[/math], [math]\displaystyle{ \mathrm{CSIGN} }[/math], [math]\displaystyle{ \mathrm{CPHASE} }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\0 & 0 & 1 & 0 \\ 0 & 0 & 0 & -1\end{bmatrix} }[/math] |
Implementation:
|
[1][6] | |
Double-controlled NOT | 2 | [math]\displaystyle{ \mathrm{DCNOT} }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \\ 0 & 1 & 0 & 0\end{bmatrix} }[/math] | [8] | ||
Swap | 2 | [math]\displaystyle{ \mathrm{SWAP} }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 \\0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1\end{bmatrix} }[/math] | or |
|
[1][6] |
Imaginary swap | 2 | [math]\displaystyle{ \mbox{iSWAP} }[/math] | [math]\displaystyle{ \begin{bmatrix} 1&0&0&0\\0&0&i&0\\0&i&0&0\\0&0&0&1\end{bmatrix} }[/math] | or |
|
[1] |
Other Clifford gates, including higher dimensional ones are not included here but by definition can be generated using [math]\displaystyle{ H,S }[/math] and [math]\displaystyle{ \mathrm{CNOT} }[/math].
Note that if a Clifford gate A is not in the Pauli group, [math]\displaystyle{ \sqrt{A} }[/math] or controlled-A are not in the Clifford gates.[citation needed]
The Clifford set is not a universal quantum gate set.
Non-Clifford qubit gates
Relative phase gates
Names | # qubits | Operator symbol | Matrix | Circuit diagram | Properties | Refs |
---|---|---|---|---|---|---|
Phase shift | 1 | [math]\displaystyle{ P(\varphi),\;R(\varphi),\;u_1(\varphi) }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 \\ 0 & \mathrm e^{i \varphi}\end{bmatrix} }[/math] |
|
[9][10][11] | |
Phase gate T, π/8 gate, fourth root of Z |
1 | [math]\displaystyle{ T,P(\pi/4) }[/math] or [math]\displaystyle{ \sqrt[4]{Z} }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 \\ 0 & \mathrm e^{i\pi /4}\end{bmatrix} }[/math] | [1][6] | ||
Controlled phase | 2 | [math]\displaystyle{ \mathrm{CPhase}(\varphi),\mathrm{CR}(\varphi) }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & e^{i \varphi} \end{bmatrix} }[/math] |
Implementation:
|
[11] | |
Controlled phase S | 2 | [math]\displaystyle{ \mathrm{CS},\text{controlled-}S }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & i \end{bmatrix} }[/math] |
|
[6] |
The phase shift is a family of single-qubit gates that map the basis states [math]\displaystyle{ P(\varphi)|0\rangle = |0\rangle }[/math] and [math]\displaystyle{ P(\varphi)|1\rangle= e^{i\varphi}|1\rangle }[/math]. The probability of measuring a [math]\displaystyle{ |0\rangle }[/math] or [math]\displaystyle{ |1\rangle }[/math] is unchanged after applying this gate, however it modifies the phase of the quantum state. This is equivalent to tracing a horizontal circle (a line of latitude), or a rotation along the z-axis on the Bloch sphere by [math]\displaystyle{ \varphi }[/math] radians. A common example is the T gate where [math]\displaystyle{ \varphi = \frac{\pi}{4} }[/math] (historically known as the [math]\displaystyle{ \pi /8 }[/math] gate), the phase gate. Note that some Clifford gates are special cases of the phase shift gate: [math]\displaystyle{ P(0)=I,\;P(\pi)=Z;P(\pi/2)=S. }[/math]
The argument to the phase shift gate is in U(1), and the gate performs a phase rotation in U(1) along the specified basis state (e.g. [math]\displaystyle{ P(\varphi) }[/math] rotates the phase about [math]\displaystyle{ |1\rangle }[/math]). Extending [math]\displaystyle{ P(\varphi) }[/math] to a rotation about a generic phase of both basis states of a 2-level quantum system (a qubit) can be done with a series circuit: [math]\displaystyle{ P(\beta) \cdot X \cdot P(\alpha) \cdot X = \begin{bmatrix} e^{i\alpha} & 0 \\ 0 & e^{i\beta} \end{bmatrix} }[/math]. When [math]\displaystyle{ \alpha = -\beta }[/math] this gate is the rotation operator [math]\displaystyle{ R_z(2\beta) }[/math] gate and if [math]\displaystyle{ \alpha =\beta }[/math] it is a global phase.[lower-alpha 1][lower-alpha 2]
The T gate's historic name of [math]\displaystyle{ \pi /8 }[/math] gate comes from the identity [math]\displaystyle{ R_z(\pi/4) \operatorname{Ph}\left(\frac{\pi}{8}\right) = P(\pi/4) }[/math], where [math]\displaystyle{ R_z(\pi/4) = \begin{bmatrix} e^{-i\pi/8} & 0 \\ 0 & e^{i\pi/8} \end{bmatrix} }[/math].
Arbitrary single-qubit phase shift gates [math]\displaystyle{ P(\varphi) }[/math] are natively available for transmon quantum processors through timing of microwave control pulses.[13] It can be explained in terms of change of frame.[14][15]
As with any single qubit gate one can build a controlled version of the phase shift gate. With respect to the computational basis, the 2-qubit controlled phase shift gate is: shifts the phase with [math]\displaystyle{ \varphi }[/math] only if it acts on the state [math]\displaystyle{ |11\rangle }[/math]:
- [math]\displaystyle{ |a,b\rangle \mapsto \begin{cases} e^{i\varphi}|a,b\rangle & \mbox{for }a=b=1 \\ |a,b\rangle & \mbox{otherwise.} \end{cases} }[/math]
The controlled-Z (or CZ) gate is the special case where [math]\displaystyle{ \varphi = \pi }[/math].
The controlled-S gate is the case of the controlled-[math]\displaystyle{ P(\varphi) }[/math] when [math]\displaystyle{ \varphi = \pi/2 }[/math] and is a commonly used gate.[6]
Rotation operator gates
Names | # qubits | Operator symbol | Exponential form | Matrix | Circuit diagram | Properties | Refs |
---|---|---|---|---|---|---|---|
Rotation about x-axis | 1 | [math]\displaystyle{ R_x(\theta) }[/math] | [math]\displaystyle{ \exp(-iX\theta/2) }[/math] | [math]\displaystyle{ {\begin{bmatrix}\cos(\theta /2)&-i\sin(\theta /2)\\-i\sin(\theta /2)&\cos(\theta /2)\end{bmatrix}} }[/math] |
|
[1][6] | |
Rotation about y-axis | 1 | [math]\displaystyle{ R_y(\theta) }[/math] | [math]\displaystyle{ \exp(-iY\theta/2) }[/math] | [math]\displaystyle{ \begin{bmatrix} \cos(\theta/2) & -\sin(\theta/2) \\ \sin(\theta/2) & \cos(\theta/2) \end{bmatrix} }[/math] |
|
[1][6] | |
Rotation about z-axis | 1 | [math]\displaystyle{ R_z(\theta) }[/math] | [math]\displaystyle{ \exp(-iZ\theta/2) }[/math] | [math]\displaystyle{ \begin{bmatrix} \exp(-i\theta/2) & 0 \\0 & \exp(i\theta/2) \end{bmatrix} }[/math] |
|
[1][6] |
The rotation operator gates [math]\displaystyle{ R_x(\theta),R_y(\theta) }[/math] and [math]\displaystyle{ R_z(\theta) }[/math] are the analog rotation matrices in three Cartesian axes of SO(3), the axes on the Bloch sphere projection.
As Pauli matrices are related to the generator of rotations, these rotation operators can be written as matrix exponentials with Pauli matrices in the argument. Any [math]\displaystyle{ 2 \times 2 }[/math] unitary matrix in SU(2) can be written as a product (i.e. series circuit) of three rotation gates or less. Note that for two-level systems such as qubits and spinors, these rotations have a period of 4Ď€. A rotation of 2Ď€ (360 degrees) returns the same statevector with a different phase.[16]
We also have [math]\displaystyle{ R_{b}(-\theta)=R_{b}(\theta)^{\dagger} }[/math] and [math]\displaystyle{ R_{b}(0)=I }[/math] for all [math]\displaystyle{ b \in \{x, y, z\}. }[/math]
The rotation matrices are related to the Pauli matrices in the following way: [math]\displaystyle{ R_x(\pi)=-iX, R_y(\pi)=-iY, R_z(\pi)=-iZ. }[/math]
It's possible to work out the adjoint action of rotations on the Pauli vector, namely rotation effectively by double the angle a to apply Rodrigues' rotation formula:
- [math]\displaystyle{ R_n(-a)\vec{\sigma}R_n(a)=e^{i \frac{a}{2}\left(\hat{n} \cdot \vec{\sigma}\right)} ~ \vec{\sigma}~ e^{-i \frac{a}{2}\left(\hat{n} \cdot \vec{\sigma}\right)} = \vec{\sigma} \cos (a) + \hat{n} \times \vec{\sigma} ~\sin (a)+ \hat{n} ~ \hat{n} \cdot \vec{\sigma} ~ (1 - \cos (a))~ . }[/math]
Taking the dot product of any unit vector with the above formula generates the expression of any single qubit gate when sandwiched within adjoint rotation gates. For example, it can be shown that [math]\displaystyle{ R_y(-\pi/2)XR_y(\pi/2)=\hat{x}\cdot (\hat{y}\times \vec{\sigma})=Z }[/math]. Also, using the anticommuting relation we have [math]\displaystyle{ R_y(-\pi/2)XR_y(\pi/2)=XR_y(+\pi/2)R_y(\pi/2)=X(-iY)=Z }[/math].
Rotation operators have interesting identities. For example, [math]\displaystyle{ R_y(\pi/2)Z = H }[/math] and [math]\displaystyle{ X R_y(\pi/2) = H. }[/math] Also, using the anticommuting relations we have [math]\displaystyle{ ZR_y(-\pi/2) = H }[/math] and [math]\displaystyle{ R_y(-\pi/2)X = H. }[/math]
Global phase and phase shift can be transformed into each others with the Z-rotation operator: [math]\displaystyle{ R_z(\gamma) \operatorname{Ph}\left(\frac{\gamma}{2}\right) = P(\gamma) }[/math].[5]:11[1]:77–83
The [math]\displaystyle{ \sqrt{X} }[/math] gate represents a rotation of π/2 about the x axis at the Bloch sphere [math]\displaystyle{ \sqrt{X}=e^{i\pi/4}R_x(\pi/2) }[/math].
Similar rotation operator gates exist for SU(3) using Gell-Mann matrices. They are the rotation operators used with qutrits.
Two-qubit interaction gates
Names | # qubits | Operator symbol | Exponential form | Matrix | Circuit diagram | Properties | Res |
---|---|---|---|---|---|---|---|
XX interaction | 2 | [math]\displaystyle{ R_{xx}(\phi) }[/math], [math]\displaystyle{ \text{XX} (\phi) }[/math] | [math]\displaystyle{ \exp\left(-i \frac{\phi}{2} X\otimes X\right) }[/math] | [math]\displaystyle{ \begin{bmatrix} \cos\left(\frac{\phi}{2}\right) & 0 & 0 & -i \sin\left(\frac{\phi}{2}\right) \\ 0 &\cos\left(\frac{\phi}{2}\right) & -i \sin\left(\frac{\phi}{2}\right) & 0 \\ 0 & -i \sin\left(\frac{\phi}{2}\right) & \cos\left(\frac{\phi}{2}\right) & 0 \\ -i \sin\left(\frac{\phi}{2}\right) & 0 & 0 & \cos\left(\frac{\phi}{2}\right) \\ \end{bmatrix} }[/math] |
Implementation: |
[citation needed] | |
YY interaction | 2 | [math]\displaystyle{ R_{yy}(\phi) }[/math], [math]\displaystyle{ \text{YY} (\phi) }[/math] | [math]\displaystyle{ \exp\left(-i \frac{\phi}{2} Y\otimes Y\right) }[/math] | [math]\displaystyle{ \begin{bmatrix} \cos\left(\frac{\phi}{2}\right) & 0 & 0 & i\sin\left(\frac{\phi}{2}\right) \\ 0 & \cos\left(\frac{\phi}{2}\right) & -i\sin\left(\frac{\phi}{2}\right) & 0 \\ 0 & -i\sin\left(\frac{\phi}{2}\right) & \cos\left(\frac{\phi}{2}\right) & 0 \\ i\sin\left(\frac{\phi}{2}\right) & 0 & 0 & \cos\left(\frac{\phi}{2}\right) \\ \end{bmatrix} }[/math] |
Implementation: |
[citation needed] | |
ZZ interaction | 2 | [math]\displaystyle{ {\displaystyle R_{zz}(\phi )} }[/math], [math]\displaystyle{ \text{ZZ} (\phi) }[/math] | [math]\displaystyle{ {\displaystyle \exp \left(-i{\frac {\phi }{2}}Z\otimes Z\right)} }[/math] | [math]\displaystyle{ \begin{bmatrix} e^{-i \phi/2} & 0 & 0 & 0 \\ 0 & e^{i \phi/2} & 0 & 0 \\ 0 & 0 & e^{i \phi/2} & 0 \\ 0 & 0 & 0 & e^{-i \phi/2} \\ \end{bmatrix} }[/math] |
|
[citation needed] | |
XY, XX plus YY |
2 | [math]\displaystyle{ {\displaystyle R_{xy}(\phi )} }[/math], [math]\displaystyle{ \text{XY} (\phi) }[/math] | [math]\displaystyle{ {\displaystyle \exp \left[-i\frac {\phi }{4}(X\otimes X+Y\otimes Y)\right]} }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & \cos(\phi/2) & - i\sin(\phi/2) & 0 \\ 0 & -i\sin(\phi/2) & \cos(\phi/2) & 0 \\ 0 & 0 & 0 & 1 \\ \end{bmatrix} }[/math] |
|
[citation needed] |
The qubit-qubit Ising coupling or Heisenberg interaction gates Rxx, Ryy and Rzz are 2-qubit gates that are implemented natively in some trapped-ion quantum computers, using for example the Mølmer–Sørensen gate procedure.[17][18]
Note that these gates can be expressed in sinusoidal form also, for example [math]\displaystyle{ R_{xx}(\phi) = \exp\left(-i \frac{\phi}{2} X\otimes X\right)= \cos\left(\frac{\phi}{2}\right)I\otimes I-i \sin\left(\frac{\phi}{2}\right)X\otimes X }[/math].
The CNOT gate can be further decomposed as products of rotation operator gates and exactly a single two-qubit interaction gate, for example
- [math]\displaystyle{ \mbox{CNOT} =e^{-i\frac{\pi}{4}}R_{y_1}(-\pi/2)R_{x_1}(-\pi/2)R_{x_2}(-\pi/2)R_{xx}(\pi/2)R_{y_1}(\pi/2). }[/math]
The SWAP gate can be constructed from other gates, for example using the two-qubit interaction gates: [math]\displaystyle{ \text{SWAP} = e^{i\frac{\pi}{4}}R_{xx}(\pi/2)R_{yy}(\pi/2)R_{zz}(\pi/2) }[/math].
Non-Clifford swap gates
Names | # qubits | Operator symbol | Matrix | Circuit diagram | Properties | Refs |
---|---|---|---|---|---|---|
Square root swap | 2 | [math]\displaystyle{ \sqrt{\mathrm{SWAP}} }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & \frac{1}{{2}} (1+i) & \frac{1}{{2}} (1-i) & 0 \\ 0 & \frac{1}{{2}} (1-i) & \frac{1}{{2}} (1+i) & 0 \\ 0 & 0 & 0 & 1 \\ \end{bmatrix} }[/math] | [1] | ||
Square root imaginary swap | 2 | [math]\displaystyle{ \sqrt{\mbox{iSWAP}} }[/math] | [math]\displaystyle{ \begin{bmatrix} 1&0&0&0\\0&\frac{1}{\sqrt{2}}&\frac{i}{\sqrt{2}}&0\\0&\frac{i}{\sqrt{2}}&\frac{1}{\sqrt{2}}&0\\0&0&0&1\end{bmatrix} }[/math] |
|
[11] | |
Swap (raised to a power) | 2 | [math]\displaystyle{ \mbox{SWAP}^\alpha }[/math] | [math]\displaystyle{ \begin{bmatrix} 1&0&0&0\\0&\frac{1+e^{i \pi \alpha}}{2}&\frac{1-e^{i \pi \alpha}}{2}&0\\0&\frac{1-e^{i \pi \alpha}}{2}&\frac{1+e^{i \pi \alpha}}{2}&0\\0&0&0&1\end{bmatrix} }[/math] |
|
[1] | |
Fredkin,
controlled swap |
3 | [math]\displaystyle{ \mathrm{CSWAP} }[/math], [math]\displaystyle{ \mathrm{FREDKIN} }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 \\ \end{bmatrix} }[/math] | or |
|
[1][6] |
The √SWAP gate performs half-way of a two-qubit swap (see Clifford gates). It is universal such that any many-qubit gate can be constructed from only √SWAP and single qubit gates. More than one application of the √SWAP is required to produce a Bell state from product states. The √SWAP gate arises naturally in systems that exploit exchange interaction.[19][1]
For systems with Ising like interactions, it is sometimes more natural to introduce the imaginary swap[20] or iSWAP.[21][22] Note that [math]\displaystyle{ i\mbox{SWAP}=R_{xx}(-\pi/2)R_{yy}(-\pi/2) }[/math] and [math]\displaystyle{ \sqrt{i\mbox{SWAP}}=R_{xx}(-\pi/4)R_{yy}(-\pi/4) }[/math], or more generally [math]\displaystyle{ \sqrt[n]{i\mbox{SWAP}}=R_{xx}(-\pi/2n)R_{yy}(-\pi/2n) }[/math] for all real n except 0.
SWAPα arises naturally in spintronic quantum computers.[1]
The Fredkin gate (also CSWAP or CS gate), named after Edward Fredkin, is a 3-bit gate that performs a controlled swap. It is universal for classical computation. It has the useful property that the numbers of 0s and 1s are conserved throughout, which in the billiard ball model means the same number of balls are output as input.
Other named gates
Names | # qubits | Operator symbol | Matrix | Circuit diagram | Properties | Named after | Refs |
---|---|---|---|---|---|---|---|
General single qubit rotation | 1 | [math]\displaystyle{ U(\theta,\phi,\lambda) }[/math] | [math]\displaystyle{ {\begin{bmatrix}\cos(\theta /2)&-e^{i\lambda}\sin(\theta /2)\\e^{i\phi}\sin(\theta /2)&e^{i(\lambda+\phi)}\cos(\theta /2)\end{bmatrix}} }[/math] |
|
OpenQASM U gateTemplate:Eln | [11][23] | |
Barenco | 2 | [math]\displaystyle{ \mathrm{BARENCO}(\alpha,\phi,\theta) }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & e^{i \alpha}\cos\theta & -\mathrm {i} e^{\mathrm{i} (\alpha-\phi)}\sin\theta \\ 0 & 0 & -\mathrm {i} e^{\mathrm{i} (\alpha+\phi)}\sin\theta &e^{i \alpha}\cos\theta \end{bmatrix} }[/math] |
|
Adriano Barenco | [1] | |
Berkeley B | 2 | [math]\displaystyle{ B }[/math] | [math]\displaystyle{ \begin{bmatrix} \cos(\pi/8) & 0 & 0 & i \sin(\pi/8) \\ 0 & \cos(3\pi/8) & i \sin(3\pi/8) & 0 \\ 0 & i \sin(\pi/8) & \cos(\pi/8) & 0 \\ i \sin(\pi/8) & 0 & 0 & \cos(\pi/8) \\ \end{bmatrix} }[/math] |
|
University of California Berkeley[24] | [1] | |
Controlled-V,
controlled square root NOT |
2 | [math]\displaystyle{ \mathrm{CSX},\text{controlled-}\sqrt{X}, }[/math] [math]\displaystyle{ \text{controlled-}V }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & e^{i \pi /4} & e^{-i \pi /4} \\ 0 & 0 & e^{-i \pi /4} & e^{i \pi /4} \end{bmatrix} }[/math] | [9] | |||
Core entangling,
canonical decomposition |
2 | [math]\displaystyle{ N(a,b,c) }[/math], [math]\displaystyle{ \mathrm{can}(a,b,c) }[/math] | [math]\displaystyle{ \begin{bmatrix} e^{ic}\cos(a-b) & 0 & 0 & i e^{ic}\sin(a-b) \\ 0 & e^{-ic}\cos(a+b) & i e^{-ic}\sin(a+b) & 0 \\ 0 & i e^{-ic}\sin(a+b) & e^{-ic}\cos(a+b) & 0 \\ i e^{ic}\sin(a-b) & 0 & 0 & e^{ic}\cos(a-b) \\ \end{bmatrix} }[/math] |
|
[1] | ||
Dagwood Bumstead | 2 | [math]\displaystyle{ \text{DB} }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & \cos(3\pi/8) & - i\sin(3\pi/8) & 0 \\ 0 & -i\sin(3\pi/8) & \cos(3\pi/8) & 0 \\ 0 & 0 & 0 & 1 \\ \end{bmatrix} }[/math] |
|
Comicbook Dagwood Bumstead[25] | [26][25] | |
Echoed cross resonance | 2 | [math]\displaystyle{ \text{ECR} }[/math] | [math]\displaystyle{ \frac1{\sqrt2}\begin{bmatrix} 0 & 0 & 1 & i \\ 0 & 0 & i & 1 \\ 1 & -i & 0 & 0 \\ -i & 1 & 0 & 0 \\ \end{bmatrix} }[/math] |
|
[27] | ||
Fermionic simulation | 2 | [math]\displaystyle{ U_\text{fSim}(\theta,\phi) }[/math], [math]\displaystyle{ \text{fSim}(\theta,\phi) }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & \cos(\theta) & - i\sin(\theta) & 0 \\ 0 & -i\sin(\theta) & \cos(\theta) & 0 \\ 0 & 0 & 0 & e^{i\phi} \\ \end{bmatrix} }[/math] |
|
[28] | ||
Givens | 2 | [math]\displaystyle{ G(\theta) }[/math], [math]\displaystyle{ \text{Givens}(\theta) }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & \cos(\theta) & - \sin(\theta) & 0 \\ 0 & \sin(\theta) & \cos(\theta) & 0 \\ 0 & 0 & 0 & 1 \\ \end{bmatrix} }[/math] |
|
Givens rotations | [29] | |
Magic | 2 | [math]\displaystyle{ \mathcal{M} }[/math] | [math]\displaystyle{ \frac1{\sqrt{2}}\begin{bmatrix} 1 & i & 0 & 0 \\ 0 & 0 & i & 1 \\ 0 & 0 &i & -1 \\ 1 & -i & 0 & 0 \\ \end{bmatrix} }[/math] | [1] | |||
Sycamore | 2 | [math]\displaystyle{ \text{syc} }[/math], [math]\displaystyle{ \text{fSim}(\pi/2,\pi/6) }[/math] | [math]\displaystyle{ \begin{bmatrix} 1&0&0&0\\0&0&-i&0\\0&-i&0&0\\0&0&0&\mathrm e^{-i \pi/6}\end{bmatrix} }[/math] | Google's Sycamore processor | [30] | ||
Deutsch | 3 | [math]\displaystyle{ D_\theta }[/math], [math]\displaystyle{ D(\theta) }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & i \cos\theta & \sin \theta \\ 0 & 0 & 0 & 0 & 0 & 0 & \sin\theta & i \cos\theta \\ \end{bmatrix} }[/math] |
|
David Deutsch | [1] | |
Margolus, simplified Toffoli |
3 | [math]\displaystyle{ M }[/math], [math]\displaystyle{ \text{RCCX} }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & -1 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 \\ 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 \\ \end{bmatrix} }[/math] |
|
Norman Margolus | [31][32] | |
Peres | 3 | [math]\displaystyle{ \mathrm{PG} }[/math],[math]\displaystyle{ \mathrm{Peres} }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0& 1 \\ 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 \\ \end{bmatrix} }[/math] |
|
Asher Peres | [33] | |
Toffoli, controlled-controlled NOT |
3 | [math]\displaystyle{ \mathrm{CCNOT},\mathrm{CCX}, \mathrm{Toff} }[/math] | [math]\displaystyle{ \begin{bmatrix} 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 \\ 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 \\ \end{bmatrix} }[/math] |
|
Tommaso Toffoli | [1][6] |
Notes
- ↑ [math]\displaystyle{ \alpha = -\beta }[/math] when [math]\displaystyle{ P(\alpha)=P(\beta)^\dagger }[/math], where [math]\displaystyle{ \dagger }[/math] is the conjugate transpose (or Hermitian adjoint).
- ↑ Also: [math]\displaystyle{ \left(P(\delta) \cdot Y\right)^2 = e^{i\delta} I }[/math]
References
- ↑ 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.20 1.21 1.22 1.23 1.24 1.25 1.26 1.27 1.28 1.29 1.30 Williams, Colin P. (2011). Explorations in Quantum Computing. Springer. ISBN 978-1-84628-887-6.
- ↑ "IGate". https://qiskit.org/documentation/stubs/qiskit.circuit.library.IGate.html#qiskit.circuit.library.IGate. Qiskit online documentation.
- ↑ "I operation". 28 July 2023. https://docs.microsoft.com/en-us/qsharp/api/qsharp/microsoft.quantum.intrinsic.i. Q# online documentation.
- ↑ Feynman, Richard P. (1986). "Quantum mechanical computers". Foundations of Physics (Springer Science and Business Media LLC) 16 (6): 507–531. doi:10.1007/bf01886518. ISSN 0015-9018. Bibcode: 1986FoPh...16..507F.
- ↑ 5.0 5.1 Barenco, Adriano; Bennett, Charles H.; Cleve, Richard; DiVincenzo, David P.; Margolus, Norman; Shor, Peter; Sleator, Tycho; Smolin, John A. et al. (1995-11-01). "Elementary gates for quantum computation". Physical Review A (American Physical Society (APS)) 52 (5): 3457–3467. doi:10.1103/physreva.52.3457. ISSN 1050-2947. PMID 9912645. Bibcode: 1995PhRvA..52.3457B.
- ↑ 6.00 6.01 6.02 6.03 6.04 6.05 6.06 6.07 6.08 6.09 6.10 6.11 6.12 6.13 6.14 6.15 Nielsen, Michael A. (2010). Quantum computation and quantum information. Isaac L. Chuang (10th anniversary ed.). Cambridge: Cambridge University Press. ISBN 978-1-107-00217-3. OCLC 665137861. https://www.worldcat.org/oclc/665137861.
- ↑ Hung, W.N.N.; Xiaoyu Song; Guowu Yang; Jin Yang; Perkowski, M. (September 2006). "Optimal synthesis of multiple output Boolean functions using a set of quantum gates by symbolic reachability analysis". IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 25 (9): 1652–1663. doi:10.1109/tcad.2005.858352. ISSN 0278-0070.
- ↑ Collins, Daniel; Linden, Noah; Popescu, Sandu (2001-08-07). "Nonlocal content of quantum operations" (in en). Physical Review A 64 (3): 032302. doi:10.1103/PhysRevA.64.032302. ISSN 1050-2947. Bibcode: 2001PhRvA..64c2302C. https://link.aps.org/doi/10.1103/PhysRevA.64.032302.
- ↑ 9.0 9.1 Pathak, Anirban (2013-06-20) (in en). Elements of Quantum Computation and Quantum Communication. Taylor & Francis. ISBN 978-1-4665-1792-9. https://books.google.com/books?id=cEPSBQAAQBAJ.
- ↑ Yanofsky, Noson S.; Mannucci, Mirco A. (2008-08-11) (in en). Quantum Computing for Computer Scientists. Cambridge University Press. ISBN 978-1-139-64390-0. https://books.google.com/books?id=U1chAwAAQBAJ.
- ↑ 11.0 11.1 11.2 11.3 Stancil, Daniel D.; Byrd, Gregory T. (2022-04-19) (in en). Principles of Superconducting Quantum Computers. John Wiley & Sons. ISBN 978-1-119-75074-1. https://books.google.com/books?id=awxsEAAAQBAJ.
- ↑ D. Jaksch, J. I. Cirac, P. Zoller, S. L. Rolston, R. Côté, and M. D. Lukin (2000). "Fast Quantum Gates for Neutral Atoms". Phys. Rev. Lett. 85: 2208. https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.85.2208.
- ↑ Dibyendu Chatterjee, Arijit Roy (2015). "A transmon-based quantum half-adder scheme". Progress of Theoretical and Experimental Physics 2015 (9): 7–8. doi:10.1093/ptep/ptv122. Bibcode: 2015PTEP.2015i3A02C. https://paperity.org/p/73955611/a-transmon-based-quantum-half-adder-scheme.
- ↑ McKay, David C.; Wood, Christopher J.; Sheldon, Sarah; Chow, Jerry M.; Gambetta, Jay M. (31 August 2017). "Efficient Z gates for quantum computing". Physical Review A 96 (2): 022330. doi:10.1093/ptep/ptv122. Bibcode: 2015PTEP.2015i3A02C.
- ↑ "qiskit.circuit.library.PhaseGate". IBM (qiskit documentation). https://qiskit.org/documentation/stubs/qiskit.circuit.library.PhaseGate.html#qiskit.circuit.library.PhaseGate.
- ↑ Griffiths, D. J. (2008). Introduction to Elementary Particles (2nd ed.). John Wiley & Sons. pp. 127–128. ISBN 978-3-527-40601-2.
- ↑ "Monroe Conference". http://online.kitp.ucsb.edu/online/mbl_c15/monroe/pdf/Monroe_MBL15Conf_KITP.pdf.
- ↑ "Demonstration of a small programmable quantum computer with atomic qubits". http://iontrap.umd.edu/wp-content/uploads/2012/12/nature18648.pdf.
- ↑ Nemirovsky, Jonathan; Sagi, Yoav (2021), "Fast universal two-qubit gate for neutral fermionic atoms in optical tweezers", Physical Review Research 3 (1): 013113, doi:10.1103/PhysRevResearch.3.013113, Bibcode: 2021PhRvR...3a3113N
- ↑ Rasmussen, S. E.; Zinner, N. T. (2020-07-17). "Simple implementation of high fidelity controlled- i swap gates and quantum circuit exponentiation of non-Hermitian gates" (in en). Physical Review Research 2 (3): 033097. doi:10.1103/PhysRevResearch.2.033097. ISSN 2643-1564. Bibcode: 2020PhRvR...2c3097R.
- ↑ Schuch, Norbert; Siewert, Jens (2003-03-10). "Natural two-qubit gate for quantum computation using the XY interaction" (in en). Physical Review A 67 (3): 032301. doi:10.1103/PhysRevA.67.032301. ISSN 1050-2947. Bibcode: 2003PhRvA..67c2301S. https://link.aps.org/doi/10.1103/PhysRevA.67.032301.
- ↑ Dallaire-Demers, Pierre-Luc; Wilhelm, Frank K. (2016-12-05). "Quantum gates and architecture for the quantum simulation of the Fermi-Hubbard model" (in en). Physical Review A 94 (6): 062304. doi:10.1103/PhysRevA.94.062304. ISSN 2469-9926. Bibcode: 2016PhRvA..94f2304D. https://link.aps.org/doi/10.1103/PhysRevA.94.062304.
- ↑ Cross, Andrew; Javadi-Abhari, Ali; Alexander, Thomas; De Beaudrap, Niel; Bishop, Lev S.; Heidel, Steven; Ryan, Colm A.; Sivarajah, Prasahnt et al. (2022). "OpenQASM 3: A Broader and Deeper Quantum Assembly Language". ACM Transactions on Quantum Computing 3 (3): 1–50. doi:10.1145/3505636. ISSN 2643-6809.
- ↑ Zhang, Jun; Vala, Jiri; Sastry, Shankar; Whaley, K. Birgitta (2004-07-07). "Minimum Construction of Two-Qubit Quantum Operations" (in en). Physical Review Letters 93 (2): 020502. doi:10.1103/PhysRevLett.93.020502. ISSN 0031-9007. PMID 15323888. Bibcode: 2004PhRvL..93b0502Z. https://link.aps.org/doi/10.1103/PhysRevLett.93.020502.
- ↑ 25.0 25.1 AbuGhanem, M. (2021-01-01) (in en). Two-qubit Entangling Gate for Superconducting Quantum Computers. Rochester, NY. doi:10.2139/ssrn.4188257. https://papers.ssrn.com/abstract=4188257.
- ↑ Peterson, Eric C.; Crooks, Gavin E.; Smith, Robert S. (2020-03-26). "Fixed-Depth Two-Qubit Circuits and the Monodromy Polytope" (in en-GB). Quantum 4: 247. doi:10.22331/q-2020-03-26-247. https://quantum-journal.org/papers/q-2020-03-26-247/.
- ↑ Córcoles, A. D.; Magesan, Easwar; Srinivasan, Srikanth J.; Cross, Andrew W.; Steffen, M.; Gambetta, Jay M.; Chow, Jerry M. (2015-04-29). "Demonstration of a quantum error detection code using a square lattice of four superconducting qubits" (in en). Nature Communications 6 (1): 6979. doi:10.1038/ncomms7979. ISSN 2041-1723. PMID 25923200. Bibcode: 2015NatCo...6.6979C.
- ↑ Kyriienko, Oleksandr; Elfving, Vincent E. (2021-11-15). "Generalized quantum circuit differentiation rules" (in en). Physical Review A 104 (5): 052417. doi:10.1103/PhysRevA.104.052417. ISSN 2469-9926. Bibcode: 2021PhRvA.104e2417K. https://link.aps.org/doi/10.1103/PhysRevA.104.052417.
- ↑ Arrazola, Juan Miguel; Matteo, Olivia Di; Quesada, Nicolás; Jahangiri, Soran; Delgado, Alain; Killoran, Nathan (2022-06-20). "Universal quantum circuits for quantum chemistry" (in en-GB). Quantum 6: 742. doi:10.22331/q-2022-06-20-742. Bibcode: 2022Quant...6..742A. https://quantum-journal.org/papers/q-2022-06-20-742/.
- ↑ Arute, Frank; Arya, Kunal; Babbush, Ryan; Bacon, Dave; Bardin, Joseph C.; Barends, Rami; Biswas, Rupak; Boixo, Sergio et al. (2019). "Quantum supremacy using a programmable superconducting processor" (in en). Nature 574 (7779): 505–510. doi:10.1038/s41586-019-1666-5. ISSN 1476-4687. PMID 31645734. Bibcode: 2019Natur.574..505A.
- ↑ Maslov, Dmitri (2016-02-10). "Advantages of using relative-phase Toffoli gates with an application to multiple control Toffoli optimization" (in en). Physical Review A 93 (2): 022311. doi:10.1103/PhysRevA.93.022311. ISSN 2469-9926. Bibcode: 2016PhRvA..93b2311M.
- ↑ Song, Guang; Klappenecker, Andreas (2003-12-31). The simplified Toffoli gate implementation by Margolus is optimal. Bibcode: 2003quant.ph.12225S.
- ↑ Thapliyal, Himanshu; Ranganathan, Nagarajan (2009). "Design of Efficient Reversible Binary Subtractors Based on a New Reversible Gate". 2009 IEEE Computer Society Annual Symposium on VLSI. pp. 229–234. doi:10.1109/ISVLSI.2009.49. ISBN 978-1-4244-4408-3. https://ieeexplore.ieee.org/document/5076412.
Original source: https://en.wikipedia.org/wiki/List of quantum logic gates.
Read more |