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.anti_commutator

anti_commutator(op_a, op_b)

GitHub

Deprecated: Compute anti-commutator of op_a and op_b.

AB+BA.AB + BA.
Deprecated since version 0.24.0

The function qiskit.opflow.utils.anti_commutator() is deprecated as of qiskit-terra 0.24.0. It will be removed no earlier than 3 months after the release date. For code migration guidelines, visit https://qisk.it/opflow_migration.

Parameters

Returns

the anti-commutator

Return type

OperatorBase

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