pub enum Gate {
}
Expand description
Quantum Logic Gates See https://en.wikipedia.org/wiki/Quantum_logic_gate for more info
Variants§
H
Hadamard gate. See https://en.wikipedia.org/wiki/Quantum_logic_gate#Hadamard_gate
M
Measurement ‘gate’
X
The Pauli-X gate is the quantum equivalent of the NOT gate for classical computers with respect to the standard basis |0>, |1>. See https://en.wikipedia.org/wiki/Quantum_logic_gate#Pauli_gates_(X,Y,Z)
Y
Z
P(Float)
Phase shift gate. See https://en.wikipedia.org/wiki/Quantum_logic_gate#Phase_shift_gates
RX(Float)
Rx gate for rotation about the x-axis. See https://en.wikipedia.org/wiki/List_of_quantum_logic_gates#Rotation_operator_gates
RY(Float)
Ry gate for rotation about the y-axis. See https://en.wikipedia.org/wiki/List_of_quantum_logic_gates#Rotation_operator_gates
RZ(Float)
Rz gate for rotation about the z-axis. See https://en.wikipedia.org/wiki/List_of_quantum_logic_gates#Rotation_operator_gates
SWAP(usize, usize)
Swap gate swaps two qubits. See https://en.wikipedia.org/wiki/Quantum_logic_gate#Swap_gate
U(Float, Float, Float)
General single qubit rotation. See https://en.wikipedia.org/wiki/List_of_quantum_logic_gates#Other_named_gates
Unitary(Unitary)
A Unitary matrix. See https://mathworld.wolfram.com/UnitaryMatrix.html
BitFlipNoise(Float)
A gate to simulate a bit flip based on the provided probability.