We're celebrating World Quantum Day 2022! Join us

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