openfermion.transforms.mccoy

Implement the McCoy formula on two operators of the form op_a^m op_b^n.

Main aliases

openfermion.mccoy, openfermion.transforms.repconversions.mccoy, openfermion.transforms.repconversions.weyl_ordering.mccoy

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.