netket.operator.spin.identity# netket.operator.spin.identity(hilbert, dtype=None, *, cls=<class 'netket.operator._local_operator.jax.LocalOperatorJax'>)[source]# Builds the \(\mathbb{I}\) identity operator. Parameters: hilbert (DiscreteHilbert) – The hilbert space. dtype (Union[None, str, type[Any], dtype, _SupportsDType]) – The datatype to use for the matrix elements. cls (type[_LocalOperatorT]) Return type: _LocalOperatorT Returns: An instance of {class}`nk.operator.LocalOperator`.