qiskit.opflow.commutator¶
- commutator(op_a, op_b)[ソース]¶
Deprecated: Compute commutator of op_a and op_b.
\[AB - BA.\]バージョン 0.24.0 で非推奨: The function
qiskit.opflow.utils.commutator()
is deprecated as of qiskit-terra 0.24.0. It will be removed no earlier than 3 months after the release date. For code migration guidelines, visit https://qisk.it/opflow_migration.- パラメータ
op_a (OperatorBase) – Operator A
op_b (OperatorBase) – Operator B
- 戻り値
the commutator
- 戻り値の型