Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.opflow.commutator

commutator(op_a, op_b)

GitHub

Compute commutator of op_a and op_b.

ABBA.AB - BA.

Parameters

  • op_a (OperatorBase) – Operator A
  • op_b (OperatorBase) – Operator B

Returns

the commutator

Return type

OperatorBase

Was this page helpful?
Report a bug or request content on GitHub.