Represents quantum operators as matrices, supports addition, multiplication, and adjoint. 2. **`commutator(A, B)` function** — Computes $[\hat{A}, \hat{B}] = \hat{A}\hat{B} - \hat{B}\hat{A}$. 3. **`uncertainty_product(state, A, B)` function** — Computes $\sigma_A \sigma_B$ for a given state and veri