def hcb_to_me(self, U=None):
    '\n        Transform a circuit in the hardcore-boson encoding (HCB)\n        to the encoding of this molecule\n        HCB is supposed to be encoded on the first n_orbitals qubits\n        Parameters\n        ----------\n        U: HCB circuit (using the alpha qubits)\n        Returns\n        -------\n\n        '
    if (U is None):
        U = QCircuit()
    consistency = [(x < self.n_orbitals) for x in U.qubits]
    if (not all(consistency)):
        warnings.warn('hcb_to_me: given circuit is not defined on the first {} qubits. Is this a HCB circuit?'.format(self.n_orbitals))
    alpha_map = {k: self.transformation.up(k) for k in range(self.n_orbitals)}
    alpha_U = U.map_qubits(qubit_map=alpha_map)
    UX = self.transformation.hcb_to_me()
    if (UX is None):
        raise TequilaException('transformation={} has no hcb_to_me function implemented'.format(self.transformation))
    return (alpha_U + UX)
Transform a circuit in the hardcore-boson encoding (HCB)
to the encoding of this molecule
HCB is supposed to be encoded on the first n_orbitals qubits
Parameters
----------
U: HCB circuit (using the alpha qubits)
Returns
-------
def hcb_to_me(self, U=None):
    '\n        Transform a circuit in the hardcore-boson encoding (HCB)\n        to the encoding of this molecule\n        HCB is supposed to be encoded on the first n_orbitals qubits\n        Parameters\n        ----------\n        U: HCB circuit (using the alpha qubits)\n        Returns\n        -------\n\n        '
    if (U is None):
        U = QCircuit()
    consistency = [(x < self.n_orbitals) for x in U.qubits]
    if (not all(consistency)):
        warnings.warn('hcb_to_me: given circuit is not defined on the first {} qubits. Is this a HCB circuit?'.format(self.n_orbitals))
    alpha_map = {k: self.transformation.up(k) for k in range(self.n_orbitals)}
    alpha_U = U.map_qubits(qubit_map=alpha_map)
    UX = self.transformation.hcb_to_me()
    if (UX is None):
        raise TequilaException('transformation={} has no hcb_to_me function implemented'.format(self.transformation))
    return (alpha_U + UX)