qiskit-documentation/docs/api/qiskit/0.26/qiskit.opflow.anti_commutat...

32 lines
763 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: anti_commutator
description: API reference for qiskit.opflow.anti_commutator
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.opflow.anti_commutator
---
# qiskit.opflow\.anti\_commutator
<Function id="qiskit.opflow.anti_commutator" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.17/qiskit/opflow/utils.py" signature="anti_commutator(op_a, op_b)">
Compute anti-commutator of op\_a and op\_b.
$$
AB + BA.
$$
**Parameters**
* **op\_a** (`OperatorBase`) Operator A
* **op\_b** (`OperatorBase`) Operator B
**Returns**
the anti-commutator
**Return type**
[OperatorBase](qiskit.aqua.operators.OperatorBase "qiskit.aqua.operators.OperatorBase")
</Function>