openfermion.transforms.opconversions.number_operator

Find the qubit operator for the number operator in bravyi_kitaev_fast representation

iop InteractionOperator
mode_number index mode_number corresponding to the mode for which number operator is required.

A QubitOperator