qiskit.opflow.commutator¶ commutator(op_a, op_b)[source]¶ Compute commutator of op_a and op_b. \[AB - BA.\] Paramètres op_a (OperatorBase) – Operator A op_b (OperatorBase) – Operator B Renvoie the commutator Type renvoyé OperatorBase