qiskit.quantum_info.commutator¶ commutator(a, b)[source]¶ Compute commutator of a and b. \[ab - ba.\] Paramètres a (OperatorTypeT) – Operator a. b (OperatorTypeT) – Operator b. Renvoie The commutator Type renvoyé OperatorTypeT