Constants Reference
Pauli Matrices
OperatorAlgebra.PAULI_X — Constant
PAULI_XSparse Pauli X (σₓ) matrix: [[0, 1], [1, 0]]
The bit-flip operator. Exchanges |0⟩ ↔ |1⟩.
OperatorAlgebra.PAULI_Y — Constant
PAULI_YSparse Pauli Y (σᵧ) matrix: [[0, -i], [i, 0]]
The phase-flip and bit-flip operator.
OperatorAlgebra.PAULI_Z — Constant
PAULI_ZSparse Pauli Z (σᵧ) matrix: [[1, 0], [0, -1]]
The phase-flip operator. Maps |0⟩ → |0⟩, |1⟩ → -|1⟩.
Fermionic Operators
OperatorAlgebra.RAISE — Constant
RAISESparse raising (creation) operator: [[0, 1], [0, 0]]
Maps |0⟩ → |1⟩, |1⟩ → 0. Also called σ₊ or a†.
OperatorAlgebra.LOWER — Constant
LOWERSparse lowering (annihilation) operator: [[0, 0], [1, 0]]
Maps |1⟩ → |0⟩, |0⟩ → 0. Also called σ₋ or a.
Occupation Operators
OperatorAlgebra.OCC_PART — Constant
OCC_PARTSparse occupation number operator for particles: [[1, 0], [0, 0]]
Projects onto the occupied state |1⟩.
OperatorAlgebra.OCC_HOLE — Constant
OCC_HOLESparse occupation number operator for holes: [[0, 0], [0, 1]]
Projects onto the empty state |0⟩.