Constants Reference

Pauli Matrices

OperatorAlgebra.PAULI_XConstant
PAULI_X

Sparse Pauli X (σₓ) matrix: [[0, 1], [1, 0]]

The bit-flip operator. Exchanges |0⟩ ↔ |1⟩.

source
OperatorAlgebra.PAULI_ZConstant
PAULI_Z

Sparse Pauli Z (σᵧ) matrix: [[1, 0], [0, -1]]

The phase-flip operator. Maps |0⟩ → |0⟩, |1⟩ → -|1⟩.

source

Fermionic Operators

OperatorAlgebra.RAISEConstant
RAISE

Sparse raising (creation) operator: [[0, 1], [0, 0]]

Maps |0⟩ → |1⟩, |1⟩ → 0. Also called σ₊ or a†.

source
OperatorAlgebra.LOWERConstant
LOWER

Sparse lowering (annihilation) operator: [[0, 0], [1, 0]]

Maps |1⟩ → |0⟩, |0⟩ → 0. Also called σ₋ or a.

source

Occupation Operators

OperatorAlgebra.OCC_PARTConstant
OCC_PART

Sparse occupation number operator for particles: [[1, 0], [0, 0]]

Projects onto the occupied state |1⟩.

source

Index