Module library

Module library 

Source

Functionsยง

ClassicallyControlled
Controlled
An arbitrary controlled gate.
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
SwapGate
The qudit swap gate. This is a two-qudit Clifford/Weyl-Heisenberg gate that swaps the state of two qudits.
U3Gate
XGate
The one-qudit shift (X) 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.