Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK. Go to the latest version.

qiskit.opflow.commutator

commutator(op_a, op_b)

GitHub

Compute commutator of op_a and op_b.

ABBA.AB - BA.

Parameters

Returns

the commutator

Return type

OperatorBase

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