def make_hardcore_boson_upccgd_layer(self, indices: list='UpCCGD', label: str=None, assume_real: bool=True, *args, **kwargs):
    if hasattr(indices, 'lower'):
        indices = self.make_upccgsd_indices(key=indices.lower())
    UD = QCircuit()
    for idx in indices:
        UD += self.make_hardcore_boson_excitation_gate(indices=idx, angle=(idx, 'D', label), assume_real=assume_real)
    return UD
def make_hardcore_boson_upccgd_layer(self, indices: list='UpCCGD', label: str=None, assume_real: bool=True, *args, **kwargs):
    if hasattr(indices, 'lower'):
        indices = self.make_upccgsd_indices(key=indices.lower())
    UD = QCircuit()
    for idx in indices:
        UD += self.make_hardcore_boson_excitation_gate(indices=idx, angle=(idx, 'D', label), assume_real=assume_real)
    return UD