qiskit.quantum_info.commutator¶
- commutator(a, b)[código fonte]¶
Compute commutator of a and b.
\[ab - ba.\]- Parâmetros
a (OperatorTypeT) – Operator a.
b (OperatorTypeT) – Operator b.
- Retorno
The commutator
- Tipo de retorno
OperatorTypeT
Compute commutator of a and b.
a (OperatorTypeT) – Operator a.
b (OperatorTypeT) – Operator b.
The commutator
OperatorTypeT