We're celebrating World Quantum Day 2022! Join us

openfermion.utils.double_commutator

Return the double commutator [op1, [op2, op3]].

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.

The double commutator of the given operators.