Return the double commutator [op1, [op2, op3]].
openfermion.utils.double_commutator(
op1,
op2,
op3,
indices2=None,
indices3=None,
is_hopping_operator2=None,
is_hopping_operator3=None
)
Args |
op1, op2, op3 (FermionOperators or BosonOperators): operators for
the commutator. All three operators must be of the same type.
indices2, indices3 (set): The indices op2 and op3 act on.
|
is_hopping_operator2
|
bool
Whether op2 is a hopping operator.
|
is_hopping_operator3
|
bool
Whether op3 is a hopping operator.
|
Returns |
The double commutator of the given operators.
|