commutator(op_a, op_b)
Compute commutator of op_a and op_b.
Parameters
OperatorBase
Returns
the commutator
Return type