netket.utils.group.Permutation
netket.utils.group.Permutation#
- class netket.utils.group.Permutation[source]#
Bases:
netket.utils.group._semigroup.Element
- Inheritance
- __init__(permutation, name=None)[source]#
Creates a Permutation from an array of preimages of
range(N)
- Parameters
- Returns
a Permutation object encoding the same permutation
- Methods
- __call__(ket)#
Call self as a function.
- apply_to_id(x)[source]#
Returns the image of indices x under the permutation
- Parameters
x (Union[numpy.ndarray, jaxlib.xla_extension.DeviceArray, jax.core.Tracer]) –