qiskit-documentation/docs/api/qiskit/0.43/qiskit.quantum_info.double_...

54 lines
1.4 KiB
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: double_commutator
description: API reference for qiskit.quantum_info.double_commutator
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.quantum_info.double_commutator
---
<span id="qiskit-quantum-info-double-commutator" />
# qiskit.quantum\_info.double\_commutator
<Function id="qiskit.quantum_info.double_commutator" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.24/qiskit/quantum_info/operators/utils/double_commutator.py" signature="double_commutator(a, b, c, *, commutator=True)">
Compute symmetric double commutator of a, b and c.
See also Equation (13.6.18) in \[1].
If commutator is True, it returns
$$
[[A, B], C]/2 + [A, [B, C]]/2
= (2ABC + 2CBA - BAC - CAB - ACB - BCA)/2.
$$
If commutator is False, it returns
$$
\lbrace[A, B], C\rbrace/2 + \lbrace A, [B, C]\rbrace/2
= (2ABC - 2CBA - BAC + CAB - ACB + BCA)/2.
$$
**Parameters**
* **a** (*OperatorTypeT*) Operator a.
* **b** (*OperatorTypeT*) Operator b.
* **c** (*OperatorTypeT*) Operator c.
* **commutator** (*bool*) If `True` compute the double commutator, if `False` the double anti-commutator.
**Returns**
The double commutator
**Return type**
*OperatorTypeT*
**References**
## \[1]: R. McWeeny.
Methods of Molecular Quantum Mechanics. 2nd Edition, Academic Press, 1992. ISBN 0-12-486552-6.
</Function>