qiskit.opflow.commutator¶
-
commutator
(op_a, op_b)[Quellcode]¶ Compute commutator of op_a and op_b.
\[AB - BA.\]- Parameter
op_a (
OperatorBase
) – Operator Aop_b (
OperatorBase
) – Operator B
- Rückgabe
the commutator
- Rückgabetyp
commutator
(op_a, op_b)[Quellcode]¶Compute commutator of op_a and op_b.
op_a (OperatorBase
) – Operator A
op_b (OperatorBase
) – Operator B
the commutator