openfermion.transforms.opconversions.extractor

Applies the extraction superoperator to a binary expression to obtain the corresponding qubit operators.

binary_op BinaryPolynomial

the binary term

Returns (QubitOperator): the qubit operator corresponding to the binary terms