We're celebrating World Quantum Day 2022! Join us

openfermion.transforms.mccoy

Implement the McCoy formula on two operators of the

form op_a^m op_b^n.

mode (int): the mode number the two operators act on.
op_a the label of operator a. This can be any hashable type.
op_b the label of operator b. This can be any hashable type. m (int): the power of operator a. n (int): the power of operator b.