List of Gate Operations

Operations are the atomic instructions in any quantum program that can be represented by qoqo/roqoqo. Gate operations are single-, two- or multi-qubit unitary operations that apply a unitary transformation and can be executed on any universal quantum computer. Mathematically, a gate can be represented by a unitary matrix.

A list of the gate operations available in qoqo and roqoqo with their mathematical description is provided in this section. We differentiate between single-qubit gates acting on a single qubit, two-qubit gates applied on a pair of qubits and multi-qubit gates affecting a series of qubits.

Notation

  • A rotation angle is usually annotated with \( \theta \) and its corresponding argument is theta.
  • For the phase angle, the symbol \( \varphi \) is used.
  • The rotation angle \( \phi \) in the x-y plane is addressed by the argument name phi.
  • \( \sigma_x \), \( \sigma_y \), \( \sigma_z \) are the Pauli matrices X, Y, Z \[ \sigma_x = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} := X, \quad \sigma_y = \begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix} := Y, \quad \sigma_z = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix} := Z \].

Single-qubit gates

GateShort Description
HadamardThe Hadamard gate, to create a superposition of states, and so to change the basis.
InvSqrtPauliXThe inverse square root of the PauliX gate \( e^{i \frac{\theta}{4} \sigma_x} \).
PauliXThe Pauli X gate, a rotation with a fixed angle of \( \frac{\pi}{2} \), corresponds to a "flip" on x-axis.
PauliYThe Pauli Y gate, a rotation with a fixed angle of \( \frac{\pi}{2} \), corresponds to a "flip" on y-axis.
PauliZThe Pauli Z gate, a rotation with a fixed angle of \( \frac{\pi}{2} \), corresponds to a "flip" on z-axis.
PhaseShiftState0Rotation around z-axis by angle \(\theta\) applied on state \( \left |0 \right> \) results in a phase shift compared to RotateZ gate.
PhaseShiftState1Rotation around z-axis by angle \(\theta\) applied on state \( \left|1 \right> \) results in phase shift compared to RotateZ gate.
RotateAroundSphericalAxisImplements a rotation around an axis in spherical coordinates.
RotateXThe rotation gate around x-axis \( e^{-i \frac{\theta}{2} \sigma_x} \).
RotateXYImplements a rotation around an axis in the x-y plane, where the axis is defined by an angle/spherical coordinates.
RotateYThe rotation gate around y-axis \( e^{-i \frac{\theta}{2} \sigma_y} \).
RotateZThe rotation gate around z-axis \( e^{-i \frac{\theta}{2} \sigma_z} \).
SGateThe S gate.
SqrtPauliXThe square root of the PauliX gate \( e^{-i \frac{\theta}{4} \sigma_x} \).
TGateThe T gate.

Two-qubit gates

GateShort Description
BogoliubovThe Bogoliubov DeGennes interaction gate.
CNOTThe controlled not gate, e.g. to entangle two qubits.
ComplexPMInteractionThe complex hopping gate.
ControlledPauliYThe controlled PauliY gate.
ControlledPauliZThe controlled PauliZ gate.
ControlledPhaseShiftThe controlled phase shift gate.
FsimThe fermionic qubit simulation gate.
FSwapThe fermionic SWAP gate.
GivensRotationThe Givens rotation interaction gate in big endian notation: \(e^{-\mathrm{i} \theta (X_c Y_t - Y_c X_t)}\cdot e^{-i \phi Z_t/2} \).
GivensRotationLittleEndianThe Givens rotation interaction gate in little-endian notation: \(e^{-\mathrm{i} \theta (X_c Y_t - Y_c X_t)}\cdot e^{-i \phi Z_c/2} \).
InvSqrtISwapThe inverse square root of the ISwap gate.
ISwapThe complex swap gate.
MolmerSorensenXXThe fixed-phase Mølmer–Sørensen XX gate.
PhaseShiftedControlledZThe phased-shifted controlled-Z gate.
PMInteractionThe transversal interaction gate.
QsimThe qubit simulation gate.
SpinInteractionThe generalized, anisotropic XYZ Heisenberg interaction between spins.
SqrtISwapThe square root of the ISwap gate.
SWAPThe swap gate, to switch the positions of two qubits.
VariablesMSXXThe variable-angle Mølmer–Sørensen XX gate.
XYThe XY gate.

Multi-qubit gates

GateShort Description
MultiQubitMSThe Mølmer–Sørensen gate between multiple qubits.
MultiQubitZZThe multi-qubit PauliZ-product gate.