qib.operator.gatesΒΆ

Classes

BlockEncodingGate

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>.

BlockEncodingMethod

Block encoding method.

ControlledGate

A controlled quantum gate with an arbitrary number of control qubits.

Gate

Parent class for quantum gates.

GeneralGate

General (user-defined) quantum gate, specified by a unitary matrix.

HadamardGate

Hadamard gate.

ISwapGate

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.

IdentityGate

Identity gate.

MultiplexedGate

Multiplexed gate (control qubits select a unitary), generalizing a controlled gate.

PauliXGate

Pauli-X gate.

PauliYGate

Pauli-Y gate.

PauliZGate

Pauli-Z gate.

PhaseFactorGate

Phase factor gate: multiplication by the phase factor \(e^{i \phi}\).

PrepareGate

Vector "preparation" gate.

RotationGate

General rotation gate; the rotation angle and axis are combined into a single vector ntheta of length 3.

RxGate

X-axis rotation gate.

RxxGate

Rxx gate.

RyGate

Y-axis rotation gate

RyyGate

Ryy gate.

RzGate

Z-axis rotation gate

RzzGate

Rzz gate.

SAdjGate

Adjoint of S gate - provides a phase shift of -pi/2.

SGate

S (phase) gate - provides a phase shift of pi/2.

SxGate

The square root of X gate.

TAdjGate

Adjoint of T gate - provides a phase shift of -pi/4.

TGate

T gate - provides a phase shift of pi/4.

TimeEvolutionGate

Quantum time evolution gate, i.e., matrix exponential, given a Hamiltonian h: \(e^{-i h t}\).