qiskit.opflow.anti_commutator¶
-
anti_commutator
(op_a, op_b)[Quellcode]¶ Compute anti-commutator of op_a and op_b.
\[AB + BA.\]- Parameter
op_a (
OperatorBase
) – Operator Aop_b (
OperatorBase
) – Operator B
- Rückgabe
the anti-commutator
- Rückgabetyp