qiskit.opflow.commutator¶
-
commutator
(op_a, op_b)[código fonte]¶ Compute commutator of op_a and op_b.
\[AB - BA.\]- Parâmetros
op_a (
OperatorBase
) – Operator Aop_b (
OperatorBase
) – Operator B
- Retorna
the commutator
- Tipo de retorno
commutator
(op_a, op_b)[código fonte]¶Compute commutator of op_a and op_b.
op_a (OperatorBase
) – Operator A
op_b (OperatorBase
) – Operator B
the commutator