Skip to main content

Module library

Module library 

Source

Functionsยง

ClassicallyControlled
Controlled
An arbitrary controlled gate.
Dagger
Apply the conjugate transpose (dagger / adjoint) to a unitary expression.
HGate
The one-qudit Hadamard gate. This is a Clifford/Weyl-Heisenberg gate.
IGate
The identity or no-op gate.
Invert
Invert an expression
PGate
The single-qudit phase gate.
ParameterizedUnitary
Generates a fully parameterized unitary expression
RXGate
The single-qubit RX gate (rotation around the X-axis).
RXXGate
The two-qubit RXX gate (Ising XX coupling).
RYGate
The single-qubit RY gate (rotation around the Y-axis).
RYYGate
The two-qubit RYY gate (Ising YY coupling).
RZGate
The single-qubit RZ gate (rotation around the Z-axis).
RZZGate
The two-qubit RZZ gate (Ising ZZ coupling).
SGate
The one-qudit S gate (Clifford level 2).
SXGate
The single-qubit SX gate (square-root of X / square-root of Pauli-X).
SwapGate
The qudit swap gate. This is a two-qudit Clifford/Weyl-Heisenberg gate that swaps the state of two qudits.
TGate
The one-qudit T gate (Clifford level 3).
U1Gate
The single-qubit U1 gate (phase gate up to global phase).
U2Gate
The single-qubit U2 gate.
U3Gate
XGate
The one-qudit shift (X) gate. This is a Weyl-Heisenberg gate.
YGate
The one-qudit Y gate. This is a Weyl-Heisenberg gate.
ZGate
The one-qudit clock (Z) gate. This is a Weyl-Heisenberg gate.
ZMeasurement
A terminating z-basis measurement for a qudit.
ZeroState
A terminating z-basis measurement for a qudit.