def METHOD_NAME(self, *, dtype: Optional[DType] = None):
    if dtype is None:
        dtype = self.dtype
    return type(self)(
        hilbert=self.hilbert, graph=self.edges, J=self.J, h=self.h, dtype=dtype
    )