34 lines
780 B
Plaintext
34 lines
780 B
Plaintext
---
|
||
title: anti_commutator
|
||
description: API reference for qiskit.quantum_info.anti_commutator
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: function
|
||
python_api_name: qiskit.quantum_info.anti_commutator
|
||
---
|
||
|
||
<span id="qiskit-quantum-info-anti-commutator" />
|
||
|
||
# qiskit.quantum\_info.anti\_commutator
|
||
|
||
<Function id="qiskit.quantum_info.anti_commutator" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.24/qiskit/quantum_info/operators/utils/anti_commutator.py" signature="anti_commutator(a, b)">
|
||
Compute anti-commutator of a and b.
|
||
|
||
$$
|
||
ab + ba.
|
||
$$
|
||
|
||
**Parameters**
|
||
|
||
* **a** (*OperatorTypeT*) – Operator a.
|
||
* **b** (*OperatorTypeT*) – Operator b.
|
||
|
||
**Returns**
|
||
|
||
The anti-commutator
|
||
|
||
**Return type**
|
||
|
||
*OperatorTypeT*
|
||
</Function>
|
||
|