netket.operator.spin.identity

Contents

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:

TypeVar(_LocalOperatorT, bound= LocalOperatorBase)

Returns:

An instance of {class}`nk.operator.LocalOperator`.