openfermion.transforms.get_boson_operator

Convert to BosonOperator.

Used in the notebooks

Used in the tutorials

operator QuadOperator.
hbar float

the value of hbar used in the definition of the commutator [q_i, p_j] = i hbar delta_ij. By default hbar=1.

boson_operator An instance of the BosonOperator class.