pub fn commutator_kernel( a: &Operator, b: &Operator, ) -> Result<HilbertState, PhysicsError>
Calculates commutator $[A, B] = AB - BA$.
a
b
Result<HilbertState, PhysicsError>