qiskit.opflow.anti_commutator¶
- anti_commutator(op_a, op_b)[source]¶
Compute anti-commutator of op_a and op_b.
\[AB + BA.\]- Parameters
op_a (
OperatorBase
) -- Operator Aop_b (
OperatorBase
) -- Operator B
- Returns
the anti-commutator
- Return type
Compute anti-commutator of op_a and op_b.
op_a (OperatorBase
) -- Operator A
op_b (OperatorBase
) -- Operator B
the anti-commutator