commutator#
- commutator(op_a, op_b)[ソース]#
Compute commutator of op_a and op_b.
\[AB - BA.\]- パラメータ:
op_a (SparseLabelOp) – Operator A.
op_b (SparseLabelOp) – Operator B.
- 戻り値:
The computed commutator. If available for your kind of operator, you may want to
normal_order()
it.- 戻り値の型: