qiskit.quantum_info.commutator¶
- commutator(a, b)[Quellcode]¶
Compute commutator of a and b.
\[ab - ba.\]- Parameter
a (OperatorTypeT) – Operator a.
b (OperatorTypeT) – Operator b.
- Rückgabe
The commutator
- Rückgabetyp
OperatorTypeT
Compute commutator of a and b.
a (OperatorTypeT) – Operator a.
b (OperatorTypeT) – Operator b.
The commutator
OperatorTypeT