qib.operator.gatesΒΆ
Classes
Block encoding gate of a Hamiltonian h, assumed to be Hermitian and normalized such that its spectral norm is bounded by 1. Output state is Hamiltonian applied to principal input state if auxiliary qubit(s) is initialized to |0>. |
|
Block encoding method. |
|
A controlled quantum gate with an arbitrary number of control qubits. |
|
Parent class for quantum gates. |
|
General (user-defined) quantum gate, specified by a unitary matrix. |
|
Hadamard gate. |
|
A Clifford and symmteric 2-qubit iSWAP gate. It exchanges the states of two qubits and applies a phase of i to the |01> and |10> states. |
|
Identity gate. |
|
Multiplexed gate (control qubits select a unitary), generalizing a controlled gate. |
|
Pauli-X gate. |
|
Pauli-Y gate. |
|
Pauli-Z gate. |
|
Phase factor gate: multiplication by the phase factor \(e^{i \phi}\). |
|
Vector "preparation" gate. |
|
General rotation gate; the rotation angle and axis are combined into a single vector ntheta of length 3. |
|
X-axis rotation gate. |
|
Rxx gate. |
|
Y-axis rotation gate |
|
Ryy gate. |
|
Z-axis rotation gate |
|
Rzz gate. |
|
Adjoint of S gate - provides a phase shift of -pi/2. |
|
S (phase) gate - provides a phase shift of pi/2. |
|
The square root of X gate. |
|
Adjoint of T gate - provides a phase shift of -pi/4. |
|
T gate - provides a phase shift of pi/4. |
|
Quantum time evolution gate, i.e., matrix exponential, given a Hamiltonian h: \(e^{-i h t}\). |