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:
- Return type:
TypeVar
(_LocalOperatorT
, bound=LocalOperatorBase
)- Returns:
An instance of {class}`nk.operator.LocalOperator`.