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- three-, four- 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, two-qubit gates, three-qubit gates, four-qubit gates and multi-qubit gates, depending on the number of qubits involved in the operation.

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
GPiImplements a pi-rotation with an embedded phase.
GPi2Implements a pi/2-rotation with an embedded phase.
HadamardThe Hadamard gate.
IdentityThe Identity gate.
InvSGateThe InvS gate.
InvSXGateThe inverse SX gate.
InvSqrtPauliXThe inverse square root of the XPower gate: exp(i * π/4 * σ^x).
InvSqrtPauliYThe inverse square root of the YPower gate: exp(i * π/4 * σ^x).
InvTGateThe InvT gate.
PauliXThe Pauli X gate.
PauliYThe Pauli Y gate.
PauliZThe Pauli Z gate.
PhaseShiftState0The phase shift gate applied on state
PhaseShiftState1The phase shift gate applied on state
RotateAroundSphericalAxisImplements a rotation around an axis in the x-y plane in spherical coordinates.
RotateXThe XPower gate exp(-i * θ/2 * σ^x).
RotateXYImplements a rotation around an x- and y-axis in spherical coordinates.
RotateYThe YPower gate exp(-i * θ/2 * σ^y).
RotateZThe ZPower gate exp(-i * θ/2 * σ^z).
SGateThe S gate.
SXGateThe SX gate, equivalent to SqrtPauliX with a pi/4 global phase factor added.
SingleQubitGateThe most general unitary operation acting on one qubit.
SqrtPauliXThe square root of the XPower gate exp(-i * π/4 * σ^x).
SqrtPauliYThe square root of the PauliY gate exp(-i * π/4 * σ^y).
TGateThe T gate.

Two-qubit gates

GateShort Description
BogoliubovThe Bogoliubov DeGennes interaction gate.
CNOTThe CNOT controlled not gate.
ComplexPMInteractionThe complex hopping gate.
ControlledPauliYThe controlled-PauliY gate.
ControlledPauliZThe controlled-PauliZ gate.
ControlledPhaseShiftImplements the controlled PhaseShift gate.
ControlledRotateXImplements the controlled RotateX operation.
ControlledRotateXYImplements the controlled RotateX operation.
EchoCrossResonanceImplements the controlled RotateX operation.
FSwapThe Fermionic SWAP gate.
FsimThe fermionic qubit simulation gate.
GivensRotationThe Givens rotation interaction gate in big endian notation: exp(-i * θ * [X_c Y_t - Y_c X_t]) * exp(-i * φ * Z_t/2).
GivensRotationLittleEndianThe Givens rotation interaction gate in little endian notation: exp(-i * θ * [X_c Y_t -Y_c X_t]) * exp(-i * φ * Z_c/2).
ISwapThe ISwap gate.
InvSqrtISwapThe inverse square root ISwap gate.
KakDecompositionThe KAK decomposition of a two-qubit gate.
MolmerSorensenXXThe fixed phase MolmerSorensen XX gate.
PMInteractionThe transversal interaction gate.
PhaseShiftedControlledPhaseImplements the phase-shifted controlled PhaseShift gate.
PhaseShiftedControlledZImplements the phased-shifted controlled-Z gate.
QsimThe qubit simulation gate.
SWAPThe SWAP gate.
SpinInteractionThe generalized, anisotropic XYZ Heisenberg interaction between spins.
SqrtISwapThe square root ISwap gate.
VariableMSXXThe variable-angle MolmerSorensen XX gate.
XYThe XY gate.

Three-qubit gates

GateShort Description
ControlledControlledPauliZImplements the double-controlled PauliZ gate.
ControlledControlledPhaseShiftImplements the double-controlled PhaseShift gate.
ControlledSWAPImplements the controlled SWAP gate.
PhaseShiftedControlledControlledPhaseImplements the double-controlled phase-shifted PhaseShift gate.
PhaseShiftedControlledControlledZImplements the double-controlled phase-shifted PauliZ gate.
ToffoliImplements the Toffoli gate.

Four-qubit gates

GateShort Description
TripleControlledPauliXThe triple-controlled PauliX gate.
TripleControlledPauliZThe triple-controlled PauliZ gate.
TripleControlledPhaseShiftThe triple-controlled PhaseShift gate.

Multi-qubit gates

GateShort Description
CallDefinedGateThe gate to be replaced by a gate defined with GateDefinition gate.
MultiQubitMSThe Molmer-Sorensen gate between multiple qubits.
MultiQubitZZThe multi qubit Pauli-Z-Product gate.

Bosonic operations

GateShort Description
BeamSplitterThe 2-mode beam splitter which splits a beam with a transmission amplitude cos(θ) and a reflection amplitude exp(i * φ) * sin(θ).
PhaseDisplacementThe single-mode phase-displacement gate with variable magnitude and phase.
PhaseShiftThe single-mode phase-shift gate with variable phase, given by R(θ) = exp(i * θ * 𝑁̂).
PhotonDetectionThe photon number-resolving detector measurement for bosons.
SqueezingThe single-mode squeezing gate with tunable squeezing.

Spin-Boson operations

GateShort Description
CZQubitResonatorControlled-Z operation between a qubit and a bosonic mode.
JaynesCummingsThe Jaynes-Cummings gate exp(-i * θ * (σ^- * b^† + σ^+ * b))
LongitudinalCouplingLongitudinal coupling gate exp(-i * θ * Z * (b^† + b))
QuantumRabiThe quantum Rabi interaction exp(-i * θ * X * (b^† + b))
SingleExcitationLoadLoads a single excitation from a bosonic mode into a qubit.
SingleExcitationStoreStores a single excitation from the involved qubit into the involved bosonic mode.