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