qiskit.opflow.commutator¶
- commutator(op_a, op_b)[fuente]¶
Compute commutator of op_a and op_b.
\[AB - BA.\]- Parámetros
op_a (
OperatorBase
) – Operator Aop_b (
OperatorBase
) – Operator B
- Devuelve
the commutator
- Tipo del valor devuelto
Compute commutator of op_a and op_b.
op_a (OperatorBase
) – Operator A
op_b (OperatorBase
) – Operator B
the commutator