commutator#

commutator(op_a, op_b)[fuente]#

Compute commutator of op_a and op_b.

\[AB - BA.\]
Parámetros:
Devuelve:

The computed commutator. If available for your kind of operator, you may want to normal_order() it.

Tipo del valor devuelto:

SparseLabelOp