openfermion.transforms.get_quad_operator

Convert to QuadOperator.

Used in the notebooks

Used in the tutorials

operator BosonOperator. 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.

quad_operator An instance of the QuadOperator class.