def make_hamiltonian(self, occupied_indices=None, active_indices=None, threshold=1e-08) -> QubitHamiltonian:
    ' '
    if ((occupied_indices is None) and (self.active_space is not None)):
        occupied_indices = self.active_space.frozen_reference_orbitals
    if ((active_indices is None) and (self.active_space is not None)):
        active_indices = self.active_space.active_orbitals
    fop = openfermion.transforms.get_fermion_operator(self.molecule.get_molecular_hamiltonian(occupied_indices, active_indices))
    try:
        qop = self.transformation(fop)
    except TypeError:
        qop = self.transformation(openfermion.transforms.get_interaction_operator(fop))
    qop.is_hermitian()
    return qop
def make_hamiltonian(self, occupied_indices=None, active_indices=None, threshold=1e-08) -> QubitHamiltonian:
    ' '
    if ((occupied_indices is None) and (self.active_space is not None)):
        occupied_indices = self.active_space.frozen_reference_orbitals
    if ((active_indices is None) and (self.active_space is not None)):
        active_indices = self.active_space.active_orbitals
    fop = openfermion.transforms.get_fermion_operator(self.molecule.get_molecular_hamiltonian(occupied_indices, active_indices))
    try:
        qop = self.transformation(fop)
    except TypeError:
        qop = self.transformation(openfermion.transforms.get_interaction_operator(fop))
    qop.is_hermitian()
    return qop