parameters: (
          self, hilbert, alpha=None, use_visible_bias=True, use_hidden_bias=True
      )
docstring: r"""Constructs a new RBM.
  
          Args:
              hilbert: Hilbert space.
              alpha: `alpha * hilbert.size` is the number of hidden spins.
              use_visible_bias: specifies whether to use a bias for visible
                                spins.
              use_hidden_bias: specifies whether to use a bias for hidden spins.
docstring_summary: r"""Constructs a new RBM.
docstring_tokens: r Constructs a new RBM .
function: def __init__(
          self, hilbert, alpha=None, use_visible_bias=True, use_hidden_bias=True
      ):
          r"""Constructs a new RBM.
  
          Args:
              hilbert: Hilbert space.
              alpha: `alpha * hilbert.size` is the number of hidden spins.
              use_visible_bias: specifies whether to use a bias for visible
                                spins.
              use_hidden_bias: specifies whether to use a bias for hidden spins.
          """
          # NOTE: The following call to __init__ is important!
          super(PyRbm, self).__init__(hilbert, dtype=complex)
          n = hilbert.size
          if alpha < 0:
              raise ValueError("`alpha` should be non-negative")
          m = int(round(alpha * n))
          self._w = _np.empty([m, n], dtype=_np.complex128)
          self._a = _np.empty(n, dtype=_np.complex128) if use_visible_bias else None
          self._b = _np.empty(m, dtype=_np.complex128) if use_hidden_bias else None
function_tokens: def __init__ ( self , hilbert , alpha = None , use_visible_bias = True , use_hidden_bias = True ) : # NOTE: The following call to __init__ is important! super ( PyRbm , self ) . __init__ ( hilbert , dtype = complex ) n = hilbert . size if alpha < 0 : raise ValueError ( "`alpha` should be non-negative" ) m = int ( round ( alpha * n ) ) self . _w = _np . empty ( [ m , n ] , dtype = _np . complex128 ) self . _a = _np . empty ( n , dtype = _np . complex128 ) if use_visible_bias else None self . _b = _np . empty ( m , dtype = _np . complex128 ) if use_hidden_bias else None